Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes How to refer the current SOAP message? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to refer the current SOAP message?" Watch "How to refer the current SOAP message?" New topic
Author

How to refer the current SOAP message?

Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Hi

I have seen some code for accessing SOAP msg at web service side is as follows,

But how can I get "message" from the SOAP request??
I am new to J2EE please help.


Praveen
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
Why do you need to access the message at the service side?

Some APIs (like JAX-WS and JAX-RPC, but not SAAJ) have the notion of "message handlers". See here for how that works with JAX-WS.

Which API, and which SOAP engine, are you using?
[ October 07, 2008: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Hi Ulf Dittmer,

Thanks for the reply.
I am using SAAJ API.

My problem is how do I parse SOAP message at service for attachments and save them at some location?

If you have a sample working code please share both service and client.

Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
This article explains both sides of a SOAP-with-attachments service.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to refer the current SOAP message?
 
Similar Threads
How to process SOAP attachment at web service??
How to read Object data and List of Objects data through SOAP?
Attaching an XML Message to the SoapBody
ayyappa1
webservice package javax.xml.soap does not exist