Forum Moderators: open

Message Too Old, No Replies

Create Code from WSDL files ?

         

aspdaddy

2:59 pm on Jun 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Anyone know how to easily create client code using these files?

I have been sent the wsdl file for a web service that is going live shortly, but is not there just yet, I was hoping i could just right click on it or something to create bare bones code to call to the methods.

In VS2003 I cannot add it as a web reference , I can browse to it locally and see its documentation and methods but the button is greyed out to add with "The proxy settings on this computer are not configured correctly for web discovery."

I can add web references to localhost for asmx files though, such as SQL reporting services.

Anyone know what to do with the wsdls file to create code ?

Thanks

sgietz

9:20 pm on Jun 23, 2008 (gmt 0)

10+ Year Member



The WSDL file is sort of like a blueprint describing the web service. The easiest way to access a web service is to use Visual Studio, or Visual Web Developer and add a web reference. You can then access the web service easily. The intellisense can help you out a great deal on that, because it will popup the various methods.

aspdaddy

9:03 pm on Jun 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks I have sorted it now anyway, its done using svcutil in .NET 2.0 with .NET 3.0 Web Service Extentions installed. Its neat, you just specify which langauge you want the Proxy class in and it creates the code for you to connect to all the API methods.

In visual stuudio I can only add a web reference to a published API not a local WSDL file. This is for a non-live web service that a merchant is developing to give me forward notice of the interfaces.