Alex Rivera | Logout

Generate webservice from wsdl

Asked 2009-08-03T07:55:14.873
12

This is maybe a really simple question, but I couldn't locate an answer:

For a client I need to HOST a webservice. The client has sent me a wsdl file that the webservice should 'implement'. How do I go about that? I've generated any number of client-rpoxies but this is the other way around. I can use both ASP.NET 2.0 webservices or Windows Communication Foundation.

Edit
Report

1 Answer

15

wsdl.exe /server.

Generates an abstract class for an XML Web service based on the contracts. The default is to generate client proxy classes. When using the /parameters option, this value is a element that contains "server".

You can do a similar thing with svcutil.exe for WCF- something like:

svcutil.exe thewsdl.wsdl /language:c# /out:ITheInterface.cs (I've not tested this).

Edit- John Saunders makes a good point in his answer to favour the WCF approach- I recommend this too.

answered 2009-08-03T08:00:14.910

Your Answer