haansi
haansi

Reputation: 5750

making a web service ? How to make its WSDL?

I am making a web service and I am new to web services. Please guide me how to make WSDL for my .Net web service ( it is no WCF service).

Please also guide me where I will place WSDL file, on client or server side ? where I will place WSDL file.

Thanks

Upvotes: 0

Views: 2314

Answers (4)

JackAce
JackAce

Reputation: 1405

It sounds like you're just using ASMX based webservices, correct?

If you want to generate a WSDL on an ASP.NET/ASMX site, you can run the web application and hit the ASMX URL with the querystring "?WSDL". So if your service name is

http://myserver/myservice.asmx

then you can hit

http://myserver/myservice.asmx?wsdl

Save the page locally and you can send it to whomever needs it. Exposing the WSDL is enabled by default, the person or company who needs to consume the WSDL can generate it by hitting the URL as well.

Upvotes: 0

Be.St.
Be.St.

Reputation: 4181

Use Wsdl.exe as suggested by Pranay Rana and put it on the server.

To access web service on a client .Net side create a service reference in visual studio to get the client proxy.

Upvotes: 1

Vitaly Zemlyansky
Vitaly Zemlyansky

Reputation: 331

To generate wsdl file, you must use wsdl.exe from visual studio command prompt. But if you expect to use wsdl in your solution projects, in visual studio, you can click on project, choose add web service/service reference -> choose your service from solution or url and then VS automatically generate all file for you

Upvotes: 1

Pranay Rana
Pranay Rana

Reputation: 176946

MSDN : Web Services Description Language Tool (Wsdl.exe)

use Wsdl.exe utility in visual studio 2008 for web services

you must run that tool from command prompt ,

Start - > all programs -> Microsoft Visual Studio 2008 - > Visual Studio Tools -> Visual Studio 2008 Command Prompt

Upvotes: 1

Related Questions