users@jax-ws.java.net

Re: capturing the SOAP files at Client end in JAX-WS

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Mon, 15 May 2006 15:58:25 -0700

Vasanth Bhat wrote:

> Hi All,
>
> In JAX-RPC we could capture the SOAP messages in a File,
> on the client side by using the following code.
>
> FileOutputStream log = new FileOutputStream("<dir>/<file>");
> ((StubBase)stub)._setTransportFactory(
> new HttpClientTransportFactory(log));

Note that above code in JAXRPC is implementation specific(one could
something similar in JAXWS, but it's not portable). There are many ways
to do this. Oneway to do is add a SOAPHandler. Also you could use some
traffic sniffer.

We are adding a dump pipe in the rearch branch which will help you
capture the soap messages in future.

Jitu

>
> However this stuff won't work in JAX-WS as the stub, which is the
> portType class *cannot* be casted to the Stub class. So how do this
> using JAX-WS?
>
> Thanks
> Vasanth
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>