Parse/de serialize MTOM/XOP Data .NET

griffeyfuryzys

New Member
I have been trying around to find a way to parse/de-serialize a MTOM response that I get from a web service. I have the response on disk. And I need to figure out parsing/de-serializing that data. I am new to WCF and wonder if anyone can guide me on the basic steps. I am finding it difficult to grasp the classes that are required to perform the necessary de-serializing steps. I have the response below.\[code\]Date: Wed, 02 May 2012 09:38:57 GMTServer: Microsoft-IIS/6.0P3P:CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"X-Powered-By: ASP.NETX-AspNet-Version: 4.0.30319X-WindowsLive-Hydra: H: BLU165-ds6 V: 16.3.133.328 D: 2012-03-29T02:31:31X-Response-Time: 78.1245X-TransactionID: d491414e-46fd-47b2-82ce-e9cea9f564aa;BLU165-ds6;16.3.133.328;2012-05-02 09:38:57 UTC;78.1245 msSet-Cookie: HMDST=dGVhcG90ZG9tZYtZm3GzLm1r3f+/q8+gdzrAPYmy9kJ+SmDZuFmVgk3E983xNyeoTZkkdIr6t8y3P4V+vPzmytdaqqFwtI8vBuc=; domain=.mail.services.live.com; path=/Cache-Control: no-cachePragma: no-cacheExpires: -1Content-Type: application/xop+xmlContent-Length: 6386MIME-Version: 1.0Content-Type: Multipart/Related;boundary=DeltaSync91ABCB4AF5D24B8F988B77ED7A19733D?MTOM; type="application/xop+xml"; start="<[email protected]>";--DeltaSync91ABCB4AF5D24B8F988B77ED7A19733D?MTOMcontent-transfer-encoding: binarycontent-type: application/xop+xml; charset=utf-8; type="application/xop+xml"content-id: <[email protected]><ItemOperations xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:B="HMMAIL:" xmlns:D="HMSYNC:" xmlns="ItemOperations:"><Status>1</Status><Responses><Fetch><ServerId>E631966A-9439-11E1-8E7B-00215AD9A7B8</ServerId><Status>1</Status><Message><xop:Include href="http://stackoverflow.com/questions/10531128/cid:[email protected]" /></Message></Fetch></Responses></ItemOperations>--DeltaSync91ABCB4AF5D24B8F988B77ED7A19733D?MTOMcontent-transfer-encoding: binarycontent-type: application/octet-streamcontent-id: <[email protected]>....Binary Content--DeltaSync91ABCB4AF5D24B8F988B77ED7A19733D?MTOM--\[/code\]There must be a class/method that does what I am trying??Any help is much appreciated.Thanks
 
Back
Top