Axis: Way to look into a call.invoke() xml code?

A

Axel Bock

Hi all,

I am desperately trying to debug a web service call from axis. Problem
is: it is an SSL call, and I cannot look into the XML generated by axis
with a sniffer, and axis doesn't seem to provide an option to look into
this.

Does maybe anyone else know a way of doing this?


Greetings & thanks already,
Axel.
 
T

Thomas Weidenfeller

Axel said:
I am desperately trying to debug a web service call from axis. Problem
is: it is an SSL call

If you really need to look at the contents of the SSL connection, insert
an SSL proxy or similar into the connection. You will need to generate
(or buy) a certificate for the proxy, and install it (the public key) in
the client (the web browser).

/Thomas
 
A

Axel Bock

Well, that's one solution. I would like to see the XML code which Axis
sends to the HTTP layer. That would actually be the only thing which
helps me, cause I need this for logging purposes (later on), too :)

greetings & thanks,
Axel.
 
T

Thomas Kellerer

Well, that's one solution. I would like to see the XML code which Axis
sends to the HTTP layer. That would actually be the only thing which
helps me, cause I need this for logging purposes (later on), too :)

Axis 1.3 includes a TCP Monitor which does exactly that.

Thomas
 
A

Axel Bock

yes, right, I know, BUT that's an _external_ solution. I want to see
the code from _within_ my program.
Also the TCP monitor cannot ever look into SSL connections.
 
P

paulstaylor

Try this:

Message msg = msgContext.getCurrentMessage();
System.out.println("SOAP=>"+msg.getSOAPPartAsString());
 
A

Axel Bock

ah, code :))

Thanks a lot, I'll try that soon. Right now we discovered a blocker in
the code which short-stopped development :(

I will be coming back to you if it worked or not.
 
A

Axel Bock

hm. well, It didn't work :)

I have a call object, and its getCurrentContext() does return
something, but the getCurrentMessage() of that one does return null,
alas. I don't know why.

any other ideas? :))

cheers & thanks,
Axel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top