Following code snippet should serve your purpose...
org.apache.axis.client.Call call;
......
org.apache.axis.MessageContext mc = call.getMessageContext();
org.apache.axis.Message reqm = mc.getRequestMessage();
org.apache.axis.Message repm = mc.getResponseMessage();
reqm.writeTo(System.out);
repm.writeTo(System.out);
suresh narsimhan wrote:
> Hi ,
> I am creating client stubs to invoke a webservice. How do i
> retreive the request and response SOAPMessages from with my class??.I
> just need print the soap xml from with my class.
>
> thanks in advance,
> suresh
>
>