Basic question about C# Web Services

  • Thread starter Thread starter DomoChan
  • Start date Start date
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
 
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
 
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
 
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
 
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
 
Back
Top