Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Biz Talk General > Mapping a MIME ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 13600 of 13845
Post > Topic >>

Mapping a MIME Message to XML

by =?Utf-8?B?TS4gSmFua2U=?= <M. Janke@[EMAIL PROTECTED] > Aug 6, 2008 at 11:04 AM

hi, 

i want to map a multipart mime message to an xml. the mime message looks 
like this:

Message-ID: <...>
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_0_7859095.988367938056"

------=_Part_0_7859095.988367938056
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Description: InfoPart

Q1JFQVRFRHxudWxsfEZyIEFwciAyNyAxMjozODo1MCBDRVNUIDIwMDEjaiNEb2t1
bWVudCBlcnpldWd0I0Rva3VtZW50IGVyemV1Z3Q=
------=_Part_0_7859095.988367938056
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Description: HeaderPart

RElELWotOTg4MzY3OTMwMDM5LTY0NTc3MjM4Mjk0NzMyMTY0OTh8RFQ6U0lDT0VN
QUlMLTEuMHxqfHFxcXF8OTg4MzY3OTMwMDMx
------=_Part_0_7859095.988367938056
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Description: DataPart
[...]

so what i want to accomplish is maping this mime to a xml that would look 
like this:

<root>
<InfoPart>Q1JFQVRFRHxudWxsfEZyIEFwciAyNyAxMjozODo1MCBDRVNUIDIwMDEjaiNEb2t1bWVudCBlcnpldWd0I0Rva3VtZW50IGVyemV1Z3Q=
</InfoPart>
<HeaderPart>RElELWotOTg4MzY3OTMwMDM5LTY0NTc3MjM4Mjk0NzMyMTY0OTh8RFQ6U0lDT0VNQUlMLTEuMHxqfHFxcXF8OTg4MzY3OTMwMDMx
</HeaderPart>
<DataPart>PD94bWwgdmVyc2lvbj0iMS4wIj8+Cgo8IURPQ1RZUEUgU2ljb0VtYWlsIFNZU1RFTSAnaHR0cDovL3d3dy5qdXN0c2ltcGxlLm5ldC9kdGQvZG9jdW1lbnRzL3NpY29lbWFpbC5kdGQnPgoKPFNpY29FbWFpbD4KCiAgPGhlYWRlcj4KCiAgICA8c3ViamVjdD50ZXN0PC9zdWJqZWN0PgoKICA8L2hlYWRlcj4KCiAgPGJvZHkgLz4KCjwvU2ljb0VtYWlsPgoK
</DataPart>
  ...
</root>

what i did so far is create a receive and a send ****t and add a 
receivepipeline with the mime decoder. propably i have to create a flat
file 
schema for the mime message and a xml schema for the xml output, then a
map. 
i'm not quite sure about the flatfile schema. any ideas, suggestions?

 regards

m.janke
 




 2 Posts in Topic:
Mapping a MIME Message to XML
=?Utf-8?B?TS4gSmFua2U=?=   2008-08-06 11:04:33 
Re: Mapping a MIME Message to XML
"Tomas Restrepo [MVP  2008-08-06 21:05:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 14:04:20 CST 2008.