Forum Discussion

Satish28's avatar
Satish28
New Contributor
4 years ago

MTOM Input Handling in Snaplogic

Hello All,

Scenario: We are getting a SOAP MTOM request in which there can be 0 or more attachments and we need to send this request along with the attachments to another SOAP Service using Soap Execute Snap.

Currently we are able to retrieve the XML part of the request with the help of Multipart Reader and Binary Router. The XML part only has reference of the file/attachment but not the actual raw binary data. So, is there a way to send the request along with the file/attachment raw binary data to the SOAP service?

XML part having only reference:
<fileBase64><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:*<some value>*"/></fileBase64>
Required:
<fileBase64> *raw Binary Data* </fileBase64>

  • nagrajps's avatar
    nagrajps
    New Contributor

    Hi, When can i expect the 4.15 build available, hence i can take the latest build and work.

    • tlikarish's avatar
      tlikarish
      Employee

      Not sure why the maven artifacts that went out Friday didn’t help, but the GA will be this Saturday.

      As a work around I’ll provide the jar and you can download and install that into your .m2 cache. To do that use this command, but substitute your path for the one I used in -Dfile=<path to downloaded jar>. I was able to build the demo snap pack after installing this, but let me know if you have more issues.

      $ mvn install:install-file -Dfile=/Users/tim/Downloads/commons-csv-1.0-SNAPSHOT.jar.zip -DgroupId=org.apache.commons -DartifactId=commons-csv -Dpackaging=jar -Dversion=1.0-SNAPSHOT
      
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
      [INFO] Installing /Users/tim/Downloads/commons-csv-1.0-SNAPSHOT.jar to /Users/tim/.m2/repository/org/apache/commons/commons-csv/1.0-SNAPSHOT/commons-csv-1.0-SNAPSHOT.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.463s
      [INFO] Finished at: Tue Nov 06 10:18:56 EST 2018
      [INFO] Final Memory: 7M/309M
      [INFO] ------------------------------------------------------------------------
      

      commons-csv-1.0-SNAPSHOT.jar.zip (34.1 KB)