This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services and the fly likes capturing SOAP envelope in axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "capturing SOAP envelope in axis" Watch "capturing SOAP envelope in axis" New topic
Author

capturing SOAP envelope in axis

Rishi Renjith
Greenhorn

Joined: Jan 09, 2009
Posts: 4
Hello,
I have a situation where i need to get the actual SOAP envelope (including the SOAP body ) before making a request. ie just before calling "call.invoke ( object )" in axis.

Is there any way to get the actual SOAP envelope request that is being sent?

I checked the APIs available for axis, but could not find any.

Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Rishi Renjith wrote:Is there any way to get the actual SOAP envelope request that is being sent?

No, the SOAP envelope doesn't exist until the call is made. However you can write (and register) a handler that has access to the SOAP envelope.

Axis 1.x
org.apache.axis.handlers
org.apache.axis.Handler.invoke(org.apache.axis.MessageContext)
org.apache.axis.MessageContext

Axis2
org.apache.axis2.handlers
org.apache.axis2.engine.Handler.invoke(org.apache.axis2.context.MessageContext)
org.apache.axis2.context.MessageContext
Migrating from Apache Axis 1.x to Axis2: Custom Deployment of Services, Handlers, and Modules
 
Consider Paul's rocket mass heater.
 
subject: capturing SOAP envelope in axis