Nothing special needs to be done to generate the WSDL to your webservice. Just postfix your Webservice url with "?WSDL" and you will get it. For example:
http://localhost/HelloService.asmx?WSDL
Once you do that, save the WSDL as an XML file and add it as web-reference to your client .NET application where you want to call it.
The following command creates a client proxy class in the C# language for the XML Web service
wsdl http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL
The following command creates a client proxy class in the C# language for an XML Web service located at the specified URL. The tool saves the client proxy class in the file myProxyClass.cs.
No comments:
Post a Comment