my dog learned polymorphism*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
jQuery in Action, 2nd edition
 
subject: capturing SOAP envelope in axis