Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Interest »

Re: SOAP message tracing tools?

Ramesh Ramachandran

2003-12-11

Replies:

Look at the API Docs for the following classes in JWSDP.

javax.xml.rpc.handler.GenericHandler
javax.xml.rpc.handler.HandlerInfo
javax.xml.rpc.handler.MessageContext
javax.xml.rpc.handler.soap.SOAPMessageContext
javax.xml.soap.SOAPMessage


In your server side code you have to extend GenericHandler class and
dump out the messages.

-Ramesh


Tim Wood wrote:
> I have a Java Web service client and a server that talk to each other successfully. The server implements a JAX-RPC-based Web service and offers a WSDL file for download so the client can create dynamic client-side objects. All tests pass. I just need a way to capture the SOAP messages going between client and server. I cannot find any such tools around java.sun.com and I don't see a way to get at the SOAPMessage object during an RPC to write the message somewhere.
>
> I want to trace this because I am going to interface a Perl SOAP::Lite client to the server and want to verify that the right SOAP is being exchanged.
>
> Someone in another discussion suggested the MS SOAP Toolkit v3, which I have. It seems to get confused by the initial WSDL download by the client, before the SOAP calls are made. (I got it to crash during my test suite sometime after. :)
>
> Thanks in advance,
> TW
>
> ===========================================================================
> To unsubscribe, send email to listserv@(protected)
> of the message "signoff J2EE-INTEREST". For general help, send email to
> listserv@(protected)".

===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".


©2008 junlu.com - Jax Systems, LLC, U.S.A.