Business processes often require Business Documents to be transmitted together with attachments of various sorts, ranging from facsimile images of legal documents to engineering drawings. The attachments are often in some binary format. This section specifies the following:
Most Internet transports are capable of transporting MIME encoded content, although some special considerations are required for HTTP as described in the HTTP binding section.
The compound content of a BizTalk Message, consisting of a primary BizTalk Document and one or more attachments, must be carried in a MIME structure that follows the rules for the multipart/ related MIME media type as described in RFC 2387.
The following example shows a BizTalk Document with two attachments that constitutes an automobile insurance claim. The primary BizTalk Document contains the claim data, and is transmitted along with a facsimile image of the signed claim form (Claim.tiff) and a digital photo of the damaged car (Car.jpeg).
MIME-Version:1.0 Content-Type:Multipart/Related; boundary=biztalk_2_0_related_boundary_example; type=text/xml; start="<claim.xml@claiming-it.com>" Content-Description:Thisistheoptionalmessagedescription. --biztalk_2_0_related_boundary_example Content-Type:text/xml;charset=UTF-8 Content-Transfer-Encoding:8bit Content-ID:<claim.xml@claiming-it.com> <?xmlversion='1.0'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header> <!--deliveryandpropertiesheaderentriesomittedforbrevity--> <manifestxmlns="http://schemas.biztalk.org/btf-2-0/manifest"> <referenceuri="#insurance_claim_document_id"> <description>InsuranceClaim</description> </reference> <referenceuri="CID:claim.tiff@claiming-it.com"> <description>FacsimileofSignedClaimDocument </description> </reference> <referenceuri="CID:car.jpeg@claiming-it.com"> <description>PhotoofDamagedCar</description> </reference> </manifest> </SOAP-ENV:Header> <SOAP-ENV:Body> <claim:Insurance_Claim_Autoid="insurance_claim_document_id" xmlns:claim="http://schemas.risky-stuff.com/Auto-Claim"> <!--...claimdetails...--> </claim:Insurance_Claim_Auto> </SOAP-ENV:Body> </SOAP-ENV:Envelope> --biztalk_2_0_related_boundary_example Content-Type:image/tiff Content-Transfer-Encoding:base64 Content-ID:<claim.tiff@claiming-it.com> ...Base64encodedTIFFimage... --biztalk_2_0_related_boundary_example Content-Type:image/jpeg Content-Transfer-Encoding:binary Content-ID:<car.jpeg@claiming-it.com> ...RawJPEGimage... --biztalk_2_0_related_boundary_example-- |
The rules for the structure of the <attachment> elements describing the attachments in the <manifest> header entry of the primary BizTalk Document are explained in the next section. The rules for the use of the multipart/related media type are given in RFC 2387. The additional rules for the usage of the multipart/related media type in a BizTalk Message with attachments are as follows:
The relationship of the <reference> elements within the <manifest> header entry that denotes MIME part attachments is simple. The uri attribute of such <reference> element contains the location of the associated attachment in the form of the Content-ID URL based on the Content-ID of the MIME part that constitutes the attachment. The URL formed in accordance with RFC 2111 that defines Content-ID URLs.
|
|
Authors: Travis B.E. ISBN: 0735611262 Current page: 123 from 150 This Free ebooks are presented on flylib.comOur library present to you materials from book XML and SOAP Programming for BizTalk Servers. Warning! The page 9. BizTalk Documents with Attachments from this book is informational only! Do not print out this page! Do NOT SUBMIT this page as part of your website or work without confirmation from the authors. You can read the contents of the book, but we strongly recommend that you purchase. or example, you can Buy this book on Amazon.com |