views:

16

answers:

0

I'm working on this client developed entirely using the SAAJ [1.3.4] library. To optimise the transfer of data as attachments, i'm working on adding MTOM support to my client application. However, after much trying and failing, i've managed to create a multipart request but the web-service server couldn't extract the attachment. on reading the mtom specs i realised that the issue might lie in the fact that the content-type of my soap message [where this message encapsulates the MIME parts of the soap envelope and the attachment] is set to "text/xml" whereas it should be "application/xop+xml".

i've been looking around but can't find any particular property, flag, etc, that i can set on the SOAPConnection object to make it adhere to the MTOM way of sending attachments.