Essays:

Userland -
-



Sam Ruby
< It's just data >

Updated: 9/1/2002; 6:56:29 PM.

Saturday, August 03, 2002

Tiberius OsBurn wrote a web service.  He claims it is not a web service, and perhaps it is not by some people's definition.  A few comments... I'm not sure he realizes it but by adding a soap envelope and body around the <authors> element, he would be creating a legal SOAP message (I'd suggest declaring a namespace for authors too, but why quibble?).  Why bother with an envelope?  It allows for future additions of headers.

In any case, these elements can be added without changing the C# client code one bit.

Now for a few quibbles.  The error processing on this service leaves much to be desired.  As the output is not well formed XML, the C# code will be a bit upset.  If you are going to make this XML anyway, consider making it a SOAP Fault - after all, it only has two required sub elements.  Just remember to properly encode any angle brackets that may be in the datastream (stack tracebacks often contain the string <init>).  In any case, the HTTP response code should be set to 500.  Finally, string concatenation is inefficient and not scalable.  If the response can't be written as it is produced, at least consider a StringBuffer.

If these changes are made, the result will be a well behaved document literal SOAP service.  Creation of WSDL would be entirely optional.  If, however, a WSDL file contains type information, there are tools for both Java  and .Net which will produce code which will automatically wrap this information into objects, dramatically simplifying both the client and server code as well as handling all of the messy fault processing.


  9:27:59 PM    

It's a Girl!  Congrats!
  8:37:44 PM    





August 2002
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Jul   Sep

Click to see the XML version of this web page.


Related: Help link
Jon's Radio
Simon Fell > Its just code
BitWorking
The .NET Guy
Better Living Through Software
KeithBa's Blog
Web Hosting
REST + SOAP

Click here to visit the Radio UserLand website.

currently subscribed to:

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. 0xDECAFBAD RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Be Blogging RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Bitworking RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Bright Eyed Mister Zen RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Chris Dix's Thoughtpost RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Clemens Vasters: Enterprise Development & Alien Abductions RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. deem RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. dive into mark RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. DJ's Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Don Box's Spoutlet RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Eclectic RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. ericfreeman.com RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Ernie the Attorney RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Glen Daniels : it's all just metadata... RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Gordon Weakliem's Radio Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Greg Reinacker's Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Guido Casper's Radio Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. IK.VM.NET Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Ingo Rammer's DotNetCentric RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. It's Like Déjà Vu All Over Again RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. James Duncan Davidson RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Joel on Software RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Jon's Radio RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Lambda the Ultimate RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Loosely Coupled weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Patrick Logan's Radio Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Peter Drayton's Radio Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. raelity bytes RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Ray Ozzie's Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Sam Gentile's Radio Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Sam Ruby RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Sanjiva Weerawarana's Radio Weblog RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. sellsbrothers.com: Windows Developer News RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Simon Fell RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. snellspace RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. The .NET Guy RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Tim Ewald's Ideas about XML and Web Services RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. toolbox RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. Wavicle RSS link

Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel. www.davidwatson.org RSS link

Here's how this works.


Last update: 1/25/2002; 7:23:12 AM

© Copyright 2002 Sam Ruby

-