Creating a .Net Web Service from WSDL in VS2019

Viewed 10369

For many years now I have been creating the WSDL for the web servers, implementing the web service in Axis2/C and consuming the services in C#. There is a tool in Axis2/C to generate the stub code for both client and server, I have been using the server version to implement the service. In the C# client projects, I follow the standard steps of adding a Service Reference for each of the web services.

It is now time to convert the Axis2/C Web services into C# Web Services. Is there some process to generate the stub code of the C# service from the WSDL similar to the process of consuming a service reference?

1 Answers

Under your project in Solution Explorer find "Connected Services". Double click and choose MS WCF Web Service Reference provider. Click on it and there you can browse to your WSDL file. Alternativelly if you are looking for some automation you can call wsdl.exe from command line to generate the stubs.

Related