473,406 Members | 2,467 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.

Web Service question

This is only my 2nd time consuming a webservice and it has been 2 years
since my last experience. When adding a web reference to the WSDL isn't
there a way to generate the source for the WSDL? I cannot remember how I
did this so that the web service source is generated and Visual Studio isn't
simply referencing the WSDL.

I could of swore that is what I did the first time around.

Thanks

Gary
Sep 2 '08 #1
5 1025
Gary Miller wrote:
This is only my 2nd time consuming a webservice and it has been 2 years
since my last experience. When adding a web reference to the WSDL isn't
there a way to generate the source for the WSDL? I cannot remember how I
did this so that the web service source is generated and Visual Studio isn't
simply referencing the WSDL.

I could of swore that is what I did the first time around.
The .NET framework SDK has a command line tool wsdl.exe that you can use
to generate a proxy class for your web service:
http://msdn.microsoft.com/en-us/libr...b6(VS.80).aspx
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Sep 2 '08 #2
Do you mean wsdl.exe? wse3wsdl.exe? svcutil.exe? One of those?

Marc
Sep 2 '08 #3
Oops; I meant wsewsdl3.exe (which supports MTOM etc):
http://msdn.microsoft.com/en-us/library/aa529578.aspx
Alternatively: scvutil.exe: http://msdn.microsoft.com/en-us/library/aa347733.aspx
or as Martin already posted, wsdl.exe: http://msdn.microsoft.com/en-us/library/7h3ystb6.aspx

Marc
Sep 2 '08 #4
Thanks Martin
That is exactly what I was looking for. It has been too long since I last
had to consume a web service.

Gary
"Martin Honnen" <ma*******@yahoo.dewrote in message
news:OV**************@TK2MSFTNGP06.phx.gbl...
Gary Miller wrote:
>This is only my 2nd time consuming a webservice and it has been 2 years
since my last experience. When adding a web reference to the WSDL isn't
there a way to generate the source for the WSDL? I cannot remember how I
did this so that the web service source is generated and Visual Studio
isn't simply referencing the WSDL.

I could of swore that is what I did the first time around.

The .NET framework SDK has a command line tool wsdl.exe that you can use
to generate a proxy class for your web service:
http://msdn.microsoft.com/en-us/libr...b6(VS.80).aspx
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

Sep 2 '08 #5
Martin Honnen wrote:
Gary Miller wrote:
>This is only my 2nd time consuming a webservice and it has been 2
years since my last experience. When adding a web reference to the
WSDL isn't there a way to generate the source for the WSDL? I cannot
remember how I did this so that the web service source is generated
and Visual Studio isn't simply referencing the WSDL.

The .NET framework SDK has a command line tool wsdl.exe that you can use
to generate a proxy class for your web service:
http://msdn.microsoft.com/en-us/libr...b6(VS.80).aspx
That is what VS does behind the scene for add ref I believe.

And it is a stub/proxy, which is not the same as the source.

Arne
Sep 2 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Liza | last post by:
Hello, can you guys help me out here....? this is part of my masters degree and hence is very important to me..... my supervisor doesn't seem to be too interested in helping me and infact is...
2
by: Tom Simpson | last post by:
I have set up a Windows service in VB.NET, and created a 'Service Manager' Windows Forms app that can 'get' information from that service. The service consists of the basic service 'framework'...
2
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
2
by: =?Utf-8?B?bXVyYWRqYW1lcw==?= | last post by:
Yes, sorry I tried to make it clear in the original question that I want to get the user token of the service - ie. the account the service is running under. I know services don't have user tokens...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.