At 06:02 PM 5/7/2003 -0700, Burdett, David wrote:
I've been following the recent thread reviewing the Proposed Infoset Addendum to SOAP Messages with interest particularly the differences between:
a) Treating attachments as if they were part of the XML Infoset (which PASWA proposes), vs
b) Treating attachments as first class citizens in their own right.
 
I can see benefits in both approaches in that efficiently putting a large "blob" in an attachment in a way that is transparent to the application can make the application processing simpler.
 
Alternatively, the idea of an attachment where the application is aware that is an attachment as a separate item is equally valid, for example an application that is processing an order that just happens to have terms and conditions attached to it as a PDF.

Perhaps these two paths are not quite as separate as they seem. I don't believe that *applications* can be defined that treat attachments transparently: applications need to know the format of the bits in an attachment.  That is why we need to inject attachment-description information like content-type into the xml (as your Manifest for example). Intermediates on the other hand can treat attachments transparently and the arrangement of attachments on the wire could be transparent to applications.  A good design for packaging can allow applications to concentrate on the analysis of the message content even if that analysis depends on decoding PDF.

 
I also have one concern (and also a question) over the way PASWA works as described below ...
 
USING CID: IN XBINC:INCLUDE
There's a catch 22 here as:
1. You can only create the XML when you know the cid values to put in the XML
2. You only know the cid values when you marshall XML into the SOAP Message, but
3. You can't marshall the SOAP message until you have created the XML.
 
I know that you can get around this problem IF the generation of the XML and the SOAP Message is done by the same software at the same time. Although this will often be both possible and desirable it is, I think, something that will often not be possible to do.

This problem is exactly why I argued for relative URLs for attachments in SwA 1.0.  Content-location does suffer the catch-22 dilemma you outline.


<snip>



______________________________________________________
John J. Barton          email:  John_Barton@hpl.hp.com
http://www.hpl.hp.com/personal/John_Barton/index.htm
MS 1U-17  Hewlett-Packard Labs                                   
1501 Page Mill Road              phone: (650)-236-2888
Palo Alto CA  94304-1126         FAX:   (650)-857-5100