untitled

wsdl/xmethods.org/vs.net redux

Tony Hong, who runs xmethods.org, wrote asking for details on the problems I reported. I should've taken better notes the first time. Tonight, I had much better luck. Here's a commented transcript; all the code snippets shown below are working.

When the WSDL does work with VS.NET, the effect is magical. APIs become discoverable in the nicest possible way. Exciting!


// implementation: glue 
// wsdl:
http://www.geographynetwork.com/geoservices/v1/PlaceFinder.wsdl

// acquire web reference? yes com.geographynetwork.www.PlaceFinder
ws1 = 
   new com.geographynetwork.www.PlaceFinder(); 
com.geographynetwork.www.LocationInfo l = ws1.findPlace("New
York"); 
Console.WriteLine(l.candidates[0].description1); 
Console.WriteLine(l.candidates[0].x.ToString()); 
Console.WriteLine(l.candidates[0].y.ToString()); 
// namespace completion? yes (and complex return types are no
problem) 
// invoke successfully? yes 
// implementation: delphi 
// wsdl:
http://developerdays.com/cgi-bin/tempconverter.exe/wsdl/ITempConverter

// acquire web reference? yes 
com.developerdays.ITempConverterservice ws2 = 
    new com.developerdays.ITempConverterservice(); 
Console.WriteLine(ws2.FtoC ( 99 )); 
// namespace completion? yes 
// invoke successfully? yes 
// implementation: ?? 
// wsdl: http://soaptest.activestate.com:8080/PSDBService.wsdl

// acquire web reference? no 
// namespace completion? n/a 
// invoke successfully? n/a 
// implementation: apache soap 
// wsdl:
http://www.mybubble.com:8080/mybubbleEntServer/MyBubbleSoapServices.wsdl
// acquire web reference? yes 
// namespace completion? no 
// invoke successfully? n/a 
// implementation: ms.net 
// wsdl:
http://www.perfectxml.net/WebServices/SalesRankNPrice/BookService.asmx?WSDL
// acquire web reference? yes 
// namespace completion? yes 
// invoke successfully? yes 
net.perfectxml.www.SalesRankNPrice ws4 = 
  new net.perfectxml.www.SalesRankNPrice(); 
Console.Write(ws4.GetAmazonAndBNSalesRank("0596001193").AmazonSalesRank);
// implementation: SqlData 
// wsdl: http://www.soapclient.com/xml/SQLDataSoap.WSDL 
// acquire web reference? yes 
// namespace completion? yes 
// invoke successfully? no, but not a wsdl issue ("error opening
SRL file") 
com.soapclient.www.SQLDataSoap ws5 = new
com.soapclient.www.SQLDataSoap();
Console.WriteLine(ws5.ProcessSRL("WEB.SRI","wsdl","AltaVista"));


Former URL: http://weblog.infoworld.com/udell/2002/02/15.html#a68