Thomas
Thomas

Reputation: 297

How do I consume an existing webservice in ASP.NET?

I need to consume an existing web service in ASP.net.

The documentation of the website that provides the web servicesays that I have to use WSDL.exe to generate a stub, but I can't find this tool.

I also tried the Add web reference wizard in Visual Studio 2010 (VS2010), but if I paste the URL in, VS2010 doesn't work anymore.

What am I missing?

Upvotes: 0

Views: 1050

Answers (3)

Dennis Röttger
Dennis Röttger

Reputation: 1985

You might also try using the Add Service Reference Wizard instead - worked for me for WebServices the Web Reference Wizard did not like quite as much. Make sure to use the link to either the asmx (if it's one) or the .wsdl

Upvotes: 0

mlusiak
mlusiak

Reputation: 1054

As far as I know, you can't create SOAP webservice with .net 4. When you creating new project, you need to choos .net 3.5 or earlier first, and then create project.

As for creating stub from existing wsdl, I don't know how to do it.

Upvotes: 0

Elalfer
Elalfer

Reputation: 5338

As far as I remember there should be a choice between .net 2.0 and WCF services.

Try to select .net 2.0 web service type. We had to do it for using SOAP web services running on Python.

Upvotes: 1

Related Questions