BYTE.com
RSS feed

Newsletter
Free E-mail Newsletter from BYTE.com
Email Address
First Name
Last Name




 
    
             
BYTE.com > Tangled in the Threads > 2002 > March

WSDL Interop Adventures

By Jon Udell

March 4, 2002

(WSDL Interop Adventures :  Page 1 of 1 )



I come neither to praise WSDL, nor to bury it, but only to better understand it. The Web Services Description Language, intended to make consumption of web services more frictionless, has itself lately generated a fair amount of friction. The concept, which can (sometimes) dramatically be seen in action in Visual Studio.NET, is that WSDL makes web services self-explanatory. You just walk up to a service (i.e., access its WSDL file), and it says: "Here are the services, methods, and types that I define." Consider, for example, a service called "PlaceFinder," available at xmethods.org. Naming its WSDL file in VS.NET's Add Web Reference dialog enables you to write code like this:

com.geographynetwork.www.PlaceFinder ws = new 
com.geographynetwork.www.PlaceFinder();
com.geographynetwork.www.LocationInfo l = ws.findPlace("New York");
Console.WriteLine(l.candidates[0].description1);
Console.WriteLine(l.candidates[0].x.ToString());
Console.WriteLine(l.candidates[0].y.ToString());

At each step along the way, VS.NET's IntelliSense (namespace completion) makes the API of this service quite magically discoverable. When you call ws.findPlace, for example, the UI shows you that a string argument is required, and a LocationInfo object will be returned. After assigning that object to a variable ("l"), typing its name plus a dot reveals that "candidates" is an available member, and that it is an array of Location objects. Accessing one of those location objects reveals that it has numeric members called "x" and "y", and a string called "description1."

Four SOAP Toolkits

This is just plain wonderful when it works, but it often doesn't. I'd heard conflicting reports as to why not, so I sat down with a collection of SOAP toolkits to see what I could discover. The toolkits, all of which can both produce and consume SOAP services, were:

Dr. Dobb's Media Center

What Zope Did Wrong (and How It's Being Fixed)
Dr. Dobb's talks with Lennart Regebro about the many things that Zope 2 did right and did wrong. Lennart has also been one of the driving forces behind Five, the integration of Zope 3 technologies into Zope 2.

Ubuntu and the Software Around It
Dr. Dobb's interviews Ubuntu's Gerry Carr about the Linux-based Ubuntu operating sytem and the application lifecycle tools -- such as the recently released Launchpad -- that surround it.

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE: Volume 2 - Heuristic Algorithms
The Best of BYTE: Volume 2 - Heuristic Algorithms
In this volume of Best of BYTE, we explore the emergence of some heuristic algorithms. Although we have only scratched the surface of this intriguing subject, we hope we've suggested the potential of the synthesis of heuristics and algorithms.

© 2008 Think Services, Privacy Policy, Terms of Service, United Business Media Limited
Site comments: webmaster@byte.com
Web Sites: BYTE.com, dotnetjunkies.com, Dr. Dobb's Journal, SD Expo, Sys Admin, sqljunkies.com, Unixreview



MarketPlace
simple helix is the most trusted name in the hosting industry! Join us and host with the experts!
HP network adapters help get the most from your virtualized servers. Learn more at HP.IntelVT.com.
and develop 10 times faster ! ALM, IDE, .Net, PDF, 5GL, Database, 64-bit, etc. Free Express version
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.
Evaluate expressions defined at runtime. See why customers prefer uCalc, and why you will too.
Wanna see your ad here?
 

web2