[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Love Tunnel




Joe G. spotted a new little treat in the box of chocolates : SOAP Resource Representation Header [1]


As Joe points out [2], this is tunnelling a HTTP representation of a resource through SOAP over (*cough*) HTTP. But it looks very close to the kind of suggestions that have been appearing recently for passing binary objects around (example below). At first sight it seems an awfully clunky system, but then it's possible to use it over any protocol, so presumably HTTP representations could be sent fairly cleanly via SMTP for example.

It seems to me that there's a conflict over primacy between XML and HTTP, which should be the envelope:

Is Atom primarily an XML format for packaging log-like material?
Or is Atom primarily a web system for transporting log-like material?

Once these have been answered, perhaps the choice of approach for blob handling may be easier.

Cheers,
Danny.

<soap:Envelope xmlns:soap='http://www.w3.org/2002/12/soap-envelope'
              xmlns:rep='http://www.w3.org/2004/02/representation'
              xmlns:xmime='@@@@'>

 <soap:Header>
   <rep:Representation resource='http://example.org/me.png'>
     <rep:Data xmime:media-type='image/png'>
       /aWKKapGGyQ=
     </rep:Data>
   </rep:Representation>
 </soap:Header>

 <soap:Body>
   <x:MyData xmlns:x='http://example.org/mystuff'>
     <x:name>John Q. Public</x:name>
     <x:img src='http://example.org/me.png'/>
   </x:MyData>
 </soap:Body>

</soap:Envelope>


[1] http://www.w3.org/TR/2004/WD-soap12-rep-20040428/ [2] http://bitworking.org/news/Tunnel_of_Love

--
----
Raw
http://dannyayers.com