HighTechTalks DotNet Forums  

How to add a WSDL as Webservice Reference in Visual Studio

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss How to add a WSDL as Webservice Reference in Visual Studio in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Greg Jimson
 
Posts: n/a

Default How to add a WSDL as Webservice Reference in Visual Studio - 12-08-2007 , 07:07 AM






Hi,

I got from a friend just a WSDL file, how ever I do not have access to the
Web Service itself. I'd like program an app which needs to use this WS. What
steps need I to take?

Thanks for any hint
Greg

--
Greg Jimson



Reply With Quote
  #2  
Old   
Tiago Halm
 
Posts: n/a

Default Re: How to add a WSDL as Webservice Reference in Visual Studio - 12-08-2007 , 02:14 PM






If using VS2005 (best option), use svcutil.exe:

Quote:
svcutil.exe /?
(...)
svcutil *.wsdl *.xsd /language:C#
- Generate client code from local metadata documents.
(...)

Tiago Halm

"Greg Jimson" <nospam (AT) hotmail (DOT) com> wrote

Quote:
Hi,

I got from a friend just a WSDL file, how ever I do not have access to the
Web Service itself. I'd like program an app which needs to use this WS.
What steps need I to take?

Thanks for any hint
Greg

--
Greg Jimson




Reply With Quote
  #3  
Old   
Greg Jimson
 
Posts: n/a

Default Re: How to add a WSDL as Webservice Reference in Visual Studio - 12-11-2007 , 05:42 AM



Hi Tiago,

Quote:
svcutil *.wsdl *.xsd /language:C#
Great. I was able to create a proxy class. When I use the Add Web Reference
menu in Visual Studio the result looks different. How do I create the same
result with my proxy class and WDSL file? Or in other words how do I create
a Web Reference just having the WSDL file and the proxy class?

Thanks for any advice

Greg




Reply With Quote
  #4  
Old   
Tiago Halm
 
Posts: n/a

Default Re: How to add a WSDL as Webservice Reference in Visual Studio - 12-11-2007 , 05:53 PM



Use "Add Service Reference", available in VS 2008. Or use VS 2005 + "Visual
Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006
CTP" available in:
http://www.microsoft.com/downloads/d...displaylang=en

Tiago Halm

"Greg Jimson" <nospam (AT) hotmail (DOT) com> wrote

Quote:
Hi Tiago,

svcutil *.wsdl *.xsd /language:C#

Great. I was able to create a proxy class. When I use the Add Web
Reference menu in Visual Studio the result looks different. How do I
create the same result with my proxy class and WDSL file? Or in other
words how do I create a Web Reference just having the WSDL file and the
proxy class?

Thanks for any advice

Greg





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.