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..
HTH, Satyajit -----Original Message----- From: Kees de Kooter [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 3:21 PM To: [email protected] Subject: [Axis2] Writing soap message to stdout or file I would like to write the message that Axis generates (serviceClient.sendReceive(payload)) to stdout of a file for testing purposes. How can this be done? -- Cheers, Kees de Kooter http://www.boplicity.net --------------------------------------------------------------------- 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
