China Syndrome
China Syndrome

Reputation: 993

How to: Migrate ASP.NET Web Service Code to the Windows Communication Foundation

I am trying to migrate an ASP.net ASMX web service to WCF per the article below http://msdn.microsoft.com/en-us/library/aa738697.aspx

I am not sure what to do on the first part of step 9 or the add to solution part.

9.Run ServiceModel Metadata Utility Tool (Svcutil.exe) to generate a WCF client class from the WSDL. Add the generated class module to the solution.

enter code heremy URL is http://mysite.edu/northwind.asmx?wsdl

Can someone please clarify for me.

Upvotes: 0

Views: 507

Answers (1)

Karl Anderson
Karl Anderson

Reputation: 34844

Running svcutil will generate an interface that you can build your service from.

So running this:

svcutil http://mysite.edu/northwind.asmx?wsdl

will ouput a .cs file that contains the interface that you need to implement in your WCF service class.

Finally, you will need to host your service somewhere, a local process, IIS, etc.

Upvotes: 1

Related Questions