Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

capturing SOAP envelope in axis

 
Rishi Renjith
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic