Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Frits Walraven
  • Himai Minh

SAAJ API: recovering the SOAPMessage object from a soap message

Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to reconstruct a streamed-in SOAP message with attachmnets using SAAJ implementation in JWSDP 1.6.

After adding the attachments I make a call to the saveChanges() method of SOAPMessage. Then I stream the SOAPMessage object using the writeTo() method
after which I try to reconstruct the SOAPMessage.

But I find that the MessageFactory needs a set of MIMEHeaders and the input stream to reconstruct the SOAPMessage. But I do not have the headers in the first place since I am trying to feed the byte stream from outside a transport protocol.

Then how can I employ SAAJ as a pure SOAP manipulation tool to generate and process SOAP messages to be used outside a webservice context?

We're being followed by intergalactic spies! Quick! Take this tiny ad!
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic