ways to connect to web service

G

GaryDean

This question is about alternate ways to hook into a web service. If we
just add web reference in VS 2003 we got a wsdl, reference.cs, and
reference.map. In vs2005 we get a wsdl and a discomap. If we use wsdl.exe
we get a service.cs and then include it in our project. The first two gave
us entries in the web config. The third does not. They all work.

Why the difference? what's the difference? What are the pros and cons?
Thanks,
Gary
 
S

Steven Cheng [MSFT]

Hi Gary,

As for accessing webservice , the two means you mentioned( VS Add
webreference and wsdl.exe) are identical.

For general usage, both of them are ok and the VS "Add WebReference"
provide a more clean and convenient user interface.

The WSDL.exe is a commandline utility which can help you specify some more
advanced command options:

#Web Services Description Language Tool (Wsdl.exe)
http://msdn.microsoft.com/en-us/library/7h3ystb6(VS.80).aspx

Also, for those files generated in VS project(after add webreference), most
of them are used by IDE. For actual webservice method call, the generated
proxy class is enough.

Hope this help clarify some. If you have any further questions on this,
please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: (e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response

from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take

approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution.

The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump

analysis issues. Issues of this nature are best handled working with a
dedicated Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
S

Steven Cheng [MSFT]

Hi Gary,

How are you doing?

Do you still have any question on this issue?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top