Using reflection to call an ASP.NET web service

前端 未结 8 1556
一向
一向 2021-02-04 17:25

Say I have an ASMX web service, MyService. The service has a method, MyMethod. I could execute MyMethod on the server side as follows:

MyService service = new          


        
8条回答
  •  难免孤独
    2021-02-04 17:54

    @Kibbee: I need to avoid the HTTP performance hit. It won't be a remote call, so all of that added overhead should be unnecessary.

    @Daren: I definitely agree with that design philosophy. The issue here is that I'm not going to be in control of the service or its underlying business logic.

    This is for a server control that will need to execute against an arbitrary service/method, orthogonally to how the web service itself is implemented.

提交回复
热议问题