creating a Web Service from a WSDL file

B

BillB

Hi,
I've got a WSDL file that I need to use to create a Web Service from, I have
managed to create the client side of the app using the generated .cs file
that WSDL.exe creates.
Does anyone know how I can create this Web Service from the the WSDL file?

Any help or info is appreciated.
Thanks
 
J

Jesse Houwing

Hello BillB,
Hi,
I've got a WSDL file that I need to use to create a Web Service from,
I have
managed to create the client side of the app using the generated .cs
file
that WSDL.exe creates.
Does anyone know how I can create this Web Service from the the WSDL
file?
Any help or info is appreciated.
Thanks

using the same tool (wsdl.exe) you can create a service interface (/serverInterface).
If you then create a new webservice project and import the generated cs file
into that project you can set the inheritace of the webservice class to:

public class MyServiceName : WebService, IMyGeneratedServiceInterface
{

}

if you're working in VS2005, you can then hit ctrl-. with your cursor on
the IMyGeneratedServiceInterface and visual studio will present you an option
to generate empty methods for the interface.

Jess
 
T

Tom Porterfield

BillB said:
Hi,
I've got a WSDL file that I need to use to create a Web Service from, I
have
managed to create the client side of the app using the generated .cs file
that WSDL.exe creates.
Does anyone know how I can create this Web Service from the the WSDL file?

Any help or info is appreciated.
Thanks

Use the wsdl.exe command line tool with the /serverInterface option to
generate the server code from WSDL. For more info see
http://msdn2.microsoft.com/en-us/library/7h3ystb6(VS.80).aspx.

You might also be interested in the WSCF tool from thinktecture,
available at
http://www.thinktecture.com/resourcearchive/tools-and-software/wscf.
Basically does the same thing as command line wsdl.exe, but with a GUI.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top