File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "capturing SOAP envelope in axis" Watch "capturing SOAP envelope in axis" New topic

capturing SOAP envelope in axis

Rishi Renjith

Joined: Jan 09, 2009
Posts: 4
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

Joined: Aug 19, 2005
Posts: 2906
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

Migrating from Apache Axis 1.x to Axis2: Custom Deployment of Services, Handlers, and Modules

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
I agree. Here's the link:
subject: capturing SOAP envelope in axis
Similar Threads
Newbie doubts on XML Signature
SOAP request from Client
SOAP with attachments, 3 questions
API to Decode base64 binary data
NullPointer Exception by apache axis stub at client side