HttpWebRequest vs. web reference

C

cj

I'm trying to understand the difference between sites like Google that
offer web references (a .wsdl file) that I can add into my program and
those sites like USPS I have to create a HttpWebRequest to access.

Is the .wsdl file just a way to make it easier for us to user the
services of their sites in our programs?
 
G

Guest

WSDL file is from a "true" web service. All services must have one and it
describes it's methods, paramaters and return types along with location of
the service.

The HttpWebRequest you are speaking about with UPS just means they don't
have true web services (don't get me started). Just a legacy application that
expects certian data and then returns data. Pain to use.

======================================
David McCarter [Microsoft VB.NET MVP]
www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at:
www.cafepress.com/vsdntips.20412485
 
S

Steven Cheng[MSFT]

Hi Cj,

As David has mentioned, a standard qualified XML webservice should has its
well defined WSDL document so that any client consumer can get the
service's interface and contract. Sure, there are some servcie providers
which doen't provide WSDL but provide a simple sample XML document(of the
SOAP REQUEST, RESPONSE) and the client-side can also consume it by manually
constructing such XML request and send it through some network
component(such as HttpWebRequest), however, this is surely not the
recommended approach.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

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

Top