Possible to invoke ASMX service with parameter via url query string?

后端 未结 2 1422
面向向阳花
面向向阳花 2020-12-08 20:17

I\'ve got a asmx service that takes a single int parameter. I can open the URL to the service and see the service description screen. From here I can enter the query paramet

2条回答
  •  醉梦人生
    2020-12-08 20:57

    ASMX web services use SOAP. SOAP requests use only POST to invoke methods. You will need to generate a proxy client in your aspx page to invoke the web service. If you really need to use GET verbs to invoke web services you might need to use a different approach such as WCF REST.

提交回复
热议问题