You may like to use TCPMon (http://ws.apache.org/commons/tcpmon/) which was part of Axis1 earlier and is available separately now. I am not too sure if it meets your needs exactly.

 

-----Original Message-----
From: Kees de Kooter [mailto:[EMAIL PROTECTED]
Sent: Friday, September 08, 2006 3:37 PM
To: [email protected]
Subject: Re: [Axis2] Writing soap message to stdout or file

 

On 9/8/06, Jha, Satyajit <[EMAIL PROTECTED]> wrote:

> OMElement result = serviceClient.sendReceive(payload);

> StringWriter writer = new StringWriter();

> result.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(wr

> iter));

> writer.flush();

> String value = writer.toString();

> System.out.println(value); // You can write value to some file also..

 

Thanks Satyajit,

 

Would it also be possible to do a "dry run". I mean, inspect the

message that Axis is going to send, but without actually sending it?

 

I am trying to build a unit test that verifies the validity of the

message produced.

 

Kees

 

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]

 

This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.

Reply via email to