wood burning stoves 2.0*
The moose likes Web Services and the fly likes SAAJ API: recovering the SOAPMessage object from a soap message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SAAJ API: recovering the SOAPMessage object from a soap message" Watch "SAAJ API: recovering the SOAPMessage object from a soap message" New topic
Author

SAAJ API: recovering the SOAPMessage object from a soap message

P Chandrasekaran
Greenhorn

Joined: May 11, 2005
Posts: 13
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?

Thanks
Chandra
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SAAJ API: recovering the SOAPMessage object from a soap message