50 likes | 67 Views
SOAP Attachments in 4 slides. An example of a SOAP binding. We have a SOAP Message.
E N D
SOAP Attachments in 4 slides An example of a SOAP binding
We have a SOAP Message <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP:Header> <m:MessageInfo xmlns:m="http://www.info.org/soap/message"> <m:to href="mailto:you@your.com"/> <m:from href="mailto:me@my.com"/> <m:contact href="mailto:someone@my.com"> </m:MessageInfo> </SOAP:Header> <SOAP:Body> <msg:Message xmlns:m="http://www.info.org/soap/message"> <msg:subject>Your house is on fire!</msg:subject> <msg:picture href="http://info.org/yourhouse"/> </msg:Message> </SOAP:Body></SOAP:Envelope>
SOAP Messages can contain Links mailto:someone@my.com <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope" SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP:Header> <m:MessageInfo xmlns:m="http://www.info.org/soap/message"> <m:to href="mailto:you@your.com"/> <m:from href="mailto:me@my.com"/> <m:contact href="mailto:someone@my.com"> </m:MessageInfo> </SOAP:Header> <SOAP:Body> <msg:Message xmlns:m="http://www.info.org/soap/message"> <msg:subject>Your house is on fire!</msg:subject> <msg:picture href="http://info.org/yourhouse"/> </msg:Message> </SOAP:Body></SOAP:Envelope> mailto:you@your.com http://info.org/yourhouse mailto:me@my.com
Links can point to MIME bodies MIME-Version: 1.0 Content-Type: Multipart/Related; … --MIME_boundary <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope" SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP:Header> <m:MessageInfo xmlns:m="http://www.info.org/soap/message"> <m:to href="mailto:you@your.com"/> <m:from href="mailto:me@my.com"/> <m:contact href="mailto:someone@my.com"> </m:MessageInfo> </SOAP:Header> <SOAP:Body> <msg:Message xmlns:m="http://www.info.org/soap/message"> <msg:subject>Your house is on fire!</msg:subject> <msg:picture href="cid:fire1234@info.org"/> </msg:Message> </SOAP:Body></SOAP:Envelope> --MIME_boundary Content-Type: image/tiff Content-Transfer-Encoding: binary Content-ID: < cid:fire1234@info.org > …Photo… --MIME_boundary--
The Science Bit… • Links can be expressed in different ways • SOAP encoding, XLink etc. • Does not imply any link relationship • Attachment, index, see also, must check etc. • This is left to the application • What you link to is up to you • Written as a protocol binding • Can be nested