Getting C# code from a WSDL file

  • Thread starter Thread starter BillB
  • Start date Start date
B

BillB

Hi,
I've been given a WSDL file and need to convert it to C# so that I can use
the procedures it creates, can anyone tell me how to do this?
I'm looking at doing it using Visual Studio 2005 Command Prompt with
following line of code
wsdl /l:cs /protocol:SOAP mywsdl.wsdl

any help is appreciated.
Thanks
 
BillB,

WSDL.exe is the tool you want to use. You will want to use the /o
switch (or /out if you like to be verbose) to specify the output filename,
like so:

wsdl /l:cs /protocol:SOAP /o:MyProxy.cs mywsdl.wsdl
 
Hi,
Thanks for that, I'm new to C#, been doing Delphi for way too long, lol,
another few questions for you.

If the wsdl file refers to an XSD file do I need this to use WSDL.exe?
Also if the target name space is pointing to something like
targetNamespace="http://WS/mywsdl.wsdl" do I need to create an iis reference
to the http://ws part of it?


Thanks


Nicholas Paldino said:
BillB,

WSDL.exe is the tool you want to use. You will want to use the /o
switch (or /out if you like to be verbose) to specify the output filename,
like so:

wsdl /l:cs /protocol:SOAP /o:MyProxy.cs mywsdl.wsdl


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

BillB said:
Hi,
I've been given a WSDL file and need to convert it to C# so that I can
use the procedures it creates, can anyone tell me how to do this?
I'm looking at doing it using Visual Studio 2005 Command Prompt with
following line of code
wsdl /l:cs /protocol:SOAP mywsdl.wsdl

any help is appreciated.
Thanks
 
Back
Top