Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 439 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
MTOM response parsing through Java code

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