axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kees de Kooter" <kdekoo...@gmail.com>
Subject Re: [Axis2] Writing soap message to stdout or file
Date Fri, 08 Sep 2006 10:06:41 GMT
On 9/8/06, Jha, Satyajit <SatyajitJha@fairisaac.com> 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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message