0

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.

China Syndrome
  • 953
  • 12
  • 24

1 Answers1

1

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.

Karl Anderson
  • 34,606
  • 12
  • 65
  • 80
  • 1
    keep in mind that svcutil is a COMMAND LINE tool, not a instruction in your code – Mauricio Gracia Gutierrez Sep 09 '13 at 04:15
  • ok I have used svcutil and I have a .cs and output, how to I add this .cs to my solution? do I create anew project in the solution and add it or just add it to the main webservice solution? – China Syndrome Sep 09 '13 at 10:57
  • ok I have used svcutil and I have a .cs and output, how to I add this .cs to my solution? do I create anew project in the solution and add it or just add it to the main webservice solution? – China Syndrome Sep 09 '13 at 14:20
  • If you have a service project already, add it to that, if not then create a new project for the service itself. – Karl Anderson Sep 09 '13 at 14:21
  • I have a solution with 1 webservice project and 3 class library projects for the business layer and data access. and one windows form as a test harness so create a new project ? – China Syndrome Sep 10 '13 at 01:50