更新时间:2023-02-15 21:32:03
您的项目必须包含服务引用。
或者这里的URL是唯一重要的。请参阅此链接 -
http://***.com/问题/ 12378386 / webservice-method-to-call-a-url [ ^ ]
http://www.diogonunes.com/blog/calling-a-web-method-in-c-without-a-service-reference/ [ ^ ]
这可能也有帮助 -
http://www.aspsnippets.com/Articles/Call-Consume-Web- Service-ASMX-in-ASPNet-web-application-using-C-and-VBNet.aspx [ ^ ] br />
-KR
my web service is hosted in iis server and my .net application is hosted in other server in iis , now how to use web service in my .net application
Thanks in advance
Divya
Your project must have the service reference in it.
Or here the URL is the only thing that matters. Refer this links-
http://***.com/questions/12378386/webservice-method-to-call-a-url[^]
http://www.diogonunes.com/blog/calling-a-web-method-in-c-without-a-service-reference/[^]
This might help too-
http://www.aspsnippets.com/Articles/Call-Consume-Web-Service-ASMX-in-ASPNet-web-application-using-C-and-VBNet.aspx[^]
-KR