users@jax-ws.java.net

capturing the SOAP files at Client end in JAX-WS

From: Vasanth Bhat <vasanth_at_sun.com>
Date: Mon, 15 May 2006 16:17:38 +0530

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));

 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