• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Enabling MTOM when using SAAJ

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I've been working on a SAAJ-based client, and am almost done except for the handling of attachment. What i've managed to figure out is that the attachment data does get appended to the SOAP message, but the structure is NOT conforming to the MTOM specs. By intercepting the HTTP request, I was able to see that the entire request body's content-type is set to 'text/xml'. as per the MTOM specs, this should 'application/xop+xml'. Is there any specific way to enable MTOM for dispatching SOAP requests using SAAJ's SOAPConnection object?

Something like the way we can do so using Apache Axiom's 'Options' instance. [i can't use axiom migrating to a third party library is not an option at this point of development].

thanks
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
i am looking for the same answer . so please share it if you already know it .

thanks in advance
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic