By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,077 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,077 IT Pros & Developers. It's quick & easy.

creating a Web Service from a WSDL file

P: n/a
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

Aug 6 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

Jesse
Aug 6 '07 #2

P: n/a
BillB wrote:
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/lib...b6(VS.80).aspx.

You might also be interested in the WSCF tool from thinktecture,
available at
http://www.thinktecture.com/resource...-software/wscf.
Basically does the same thing as command line wsdl.exe, but with a GUI.
--
Tom Porterfield
Aug 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.