SOAP response content type multipart header (XOP)

My target application return multipart content-type as follows:

 

1- --MIMEBoundaryurn_uuid_795C7A95B114426B2C1626102672319
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary

2- --MIMEBoundaryurn_uuid_795C7A95B114426B2C1626102672319
Content-Type: application/pdf
Content-Transfer-Encoding: binary

 

I was trying to use the callout - https://github.com/DinoChiesa/Apigee-Java-XOP-Handler  but it has limitation where it can only read the 1st content-type application/soap+xml or text/xml and 2nd application/zip or application/octet-stream .
Is there any other callout which i can use to read the multipart header which support my above content-type?

Solved Solved
0 4 2,120
1 ACCEPTED SOLUTION

Yes, I see. 

i've updated the callout to accept that as a content-type for part1 by default. And also, you can now override the acceptable content types using a property.  

Get the latest JAR to try it out.   

View solution in original post

4 REPLIES 4

Yes, I enhanced the callout to also accept PDF. 

Can you try now?

ps: thanks for reading the documentation.

@dchiesa1 Thanks for updating code.  Now I am getting below error
java.lang.IllegalStateException: unexpected content-type for part #1 (application/xop+xml; charset=UTF-8; type="text/xml")

As i mentioned in my original question, my first content type is "application/xop+xml" , not sure if this call out can be enhanced to support "application/xop+xml"

Yes, I see. 

i've updated the callout to accept that as a content-type for part1 by default. And also, you can now override the acceptable content types using a property.  

Get the latest JAR to try it out.   

@dchiesa1  Thanks a lot . it worked..