Hi, I have a webservice endpoint(implemented with CXF and dataFormat as "MESSAGE").. the endpoint receives RAW xml message always instead of POJO object and the input request is a MTOM message. Now I want to extract the SOAPBody and attachments (MTOM based) from this RAW XML. Can someone tell me what is the best way to achieve this? I am getting raw xml in exchange.getIn().getBody(), I am able to print this object and here is the output: (you can also observe that with MTOM enabled, the SOAP message and attachements are going as mime parts). I really appreciate any help on this.
=================================================== ------=_Part_0_18152502.1245358049140 Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml; action=\"DocumentRepository_ProvideAndRegisterDocumentSet-b\"" Content-Transfer-Encoding: 8bit Content-ID: <rootp...@soapui.org> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:ihe:iti:xds-b:2007" xmlns:urn1="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0" xmlns:urn2="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:urn3="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"> <soap:Header/> <soap:Body> <urn:ProvideAndRegisterDocumentSetRequest> <urn:Document id="?"><inc:Include href="cid:965235575520" xmlns:inc="http://www.w3.org/2004/08/xop/include"/></urn:Document> </urn:ProvideAndRegisterDocumentSetRequest> </soap:Body> </soap:Envelope> ------=_Part_0_18152502.1245358049140 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-ID: <965235575520> this is trivedi ------=_Part_0_18152502.1245358049140-- ======================================================= Thanks, Trivedi -- View this message in context: http://www.nabble.com/RAW-xml-to-SOAPMessage-convertion-in-CXF-WS-endpiont-tp24099613p24099613.html Sent from the Camel - Users mailing list archive at Nabble.com.