Basic question about C# Web Services

D

DomoChan

I have developed a small class and generated a proxy class for it
using the wsdl.exe utility. I dont understand how an actual wsdl file
ties into this. It appears that I can create a c# webservice and
operate without a wsdl file, but that doesnt realy make sense to me.
Does the SoapHttpClientProtocol class hide the wsdl xml file?

Any help Appreciated!
-Velik
 
A

Alex Meleta

Hi

WSDL describes the external public interfaces of your web services (facade).
To refer the service it fairly enough to use just the file, without having
an access to the service itself.

Regards, Alex
 
P

Peter Bromberg [C# MVP]

When you create a .NET webservice and set a Webreference to it from a client
application, it uses the webservice - generated WSDL contract to create a
client proxy class to make webmethod calls to the service.
The WSDL utility does the same thing, it just has some additional utility
switches.
Peter
 
A

Arne Vajhøj

I have developed a small class and generated a proxy class for it
using the wsdl.exe utility. I dont understand how an actual wsdl file
ties into this. It appears that I can create a c# webservice and
operate without a wsdl file, but that doesnt realy make sense to me.
Does the SoapHttpClientProtocol class hide the wsdl xml file?

the server side developer writes the web service and deploy it

ASP.NET generates the WSDL from the web service

the wsdl utility generated a stub from the WSDL

the client side developer write client code that calls
the stub

Arne
 
C

Cor Ligthert[MVP]

DomoChan,

From the first version of Visual Studio 2K+ there is a WebService project
template.

As you use that a webservice is created which contains all your WSDL and
SOAP wrappers for you.
(It shows up as a kind of Hello World application it it, what you just have
to tailor to your needs)

Cor
 

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