Hi Folks ,
Once again I need your help guys as I am in need to parse a below MTOM response through java code so that I can get its XML data and send it to SOAP request further,
There are many links on google which is showing that it is easily can be done through java code but those are not working or perhaps I am not able to put that in place.
So please provide the solution in detail way so that I can better understand it.
Here is the MTOM response I have :
--c8deb935-4cf2-4b13-b7c5-ef035af282c0Content-Type: application/xop+xml; type="application/soap+xml"; charset=UTF-8Content-Transfer-Encoding: binary
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:dodfunc="http://dod.org/dodfunctions" xmlns:s="http://xml.defence.gov.au/soa/core/1.0" xmlns:v11="http://xml.defence.gov.au/Namespace/GenericFileTransfer/Core/V1.0" xmlns:v1="http://xml.defence.gov.au/Namespace/GenericFileTransfer/Service/V1.0" xmlns:ass="http://xml.defence.gov.au/soa/assertions" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<ass:HandlingAssertion>
<ass:HandlingStatement>
<ass:ProtectiveMarkings scope="v1:RetrieveFileResponse" TimeStamp="2017-06-01T16:09:35+10:00" ownerProducer="Defence">
<ass:ClassificationLabel>UNCLASSIFIED</ass:ClassificationLabel>
<ass:DisseminationControl>FOUO</ass:DisseminationControl>
</ass:ProtectiveMarkings>
</ass:HandlingStatement>
</ass:HandlingAssertion>
</soap:Header>
<soap:Body>
<v1:RetrieveFileResponse>
<v1:ReturnType>SUCCESS</v1:ReturnType>
<v11:FileName>20170420_service_masters.xml</v11:FileName>
<v1:RetrieveFileObject>
<v11:FileObject>
<xop:Include href="cid:acafc713-e1e5-4430-bcee-1ec2b386355d" xmlns:xop="http://www.w3.org/2004/08/xop/include"/></v11:FileObject>
</v1:RetrieveFileObject>
</v1:RetrieveFileResponse>
</soap:Body>
</soap:Envelope>
--c8deb935-4cf2-4b13-b7c5-ef035af282c0Content-ID: <acafc713-e1e5-4430-bcee-1ec2b386355d>Content-Transfer-Encoding: binaryContent-Type: application/binary
<?xml version="1.0" encoding="utf-8"?><tns:ServiceMasters xmlns:tns="http://xml.defence.gov.au/DSRG/MM/ExternalServices/Schema/ServiceMasters/V1.0">
<serviceRecord>
<activity>16001235</activity>
<serviceTower>90100000</serviceTower>
<description>Pre Mixed Spirits 340 ml Bottle.</description>
<unitOfMeasure>EA</unitOfMeasure><status/>
</serviceRecord>
<serviceRecord>
<activity>19101055</activity>
<serviceTower>90100000</serviceTower>
<description>S&Q Material</description>
<unitOfMeasure>PU</unitOfMeasure><status/>
</serviceRecord>
<serviceRecord>
<activity>19101185</activity>
<serviceTower>90100000</serviceTower>
<description>S&Q Labour.</description>
<unitOfMeasure>PU</unitOfMeasure><status/>
</serviceRecord></tns:ServiceMasters>
--c8deb935-4cf2-4b13-b7c5-ef035af282c0--
when I am going to post it in java community spaces but not able to start a new discussion, even start discussion link . ADF guys know Java very well that i know
Any help would be highly appreciated.
Thanks in advance
***Moderator action (Timo): moved from to .***