473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Getting C# code from a WSDL file

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
2 8783
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jim.long | last post by:
I am trying to write a custom WSDL file to interface with a SOAP::Lite server. I am comming from an IIS server running ASP. I have network snoops if they are needed. Could someone with more...
0
by: Dave | last post by:
Hi, If anyone could help with this, I would greatly appreciate it! I've created my own WSDL file and referenced an XSD file too. I've generated a service side interface using wsdl /server, and...
3
by: Dee | last post by:
I dont have much experience with wsdl's, but I am currently producing asmx web services, for c# dot net projects. All the project files are stored in souresafe, including the wsdl files. Each...
2
by: pronto | last post by:
Hi all. I created simple web service with C# and run it on Win2000 XP sp2. Service has two simple . I test it with my C# client and IE. Now I want to create VC++ 6 application and talk to web...
2
by: Greg Decos | last post by:
I was given a DISCO and WSDL file and a url in order to call a web service (not written in dot net) I am not sure what to do this information. I could code the request by building a sope xml...
0
by: Andreas | last post by:
Hi, Im trying to consume a webservice described by the WSDL below, however When i try to add the WSDL it does not work, tried to run it through WSDL.EXE It validates in XMLSpy, but WSDL.exe...
2
by: SteveChamp | last post by:
I have been experimenting with .Net web services for a while and have a few questions about the schema in the automatically generated WSDL file, and whether its content can be manipulated...
2
by: BillB | last post by:
Hi, I've got a WSDL file that I need to use to create a Web Service from, I have managed to create the client side of the app using the generated .cs file that WSDL.exe creates. Does anyone know...
0
by: keziakristina | last post by:
Hi all, I want to edit the attribute of a WSDL file and then save it. My WSDL look like below : <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.