By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,152 Members | 1,837 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,152 IT Pros & Developers. It's quick & easy.

Getting C# code from a WSDL file

P: n/a
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

Jul 30 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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]
- mv*@spam.guard.caspershouse.com

"BillB" <no****@nospam.comwrote in message
news:0C**********************************@microsof t.com...
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

Jul 30 '07 #2

P: n/a
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:O1**************@TK2MSFTNGP04.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"BillB" <no****@nospam.comwrote in message
news:0C**********************************@microsof t.com...
>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

Jul 31 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.