I am trying to send an precreated XML document via the soap messaging 
service.  The client takes as an input parameter the host soap is 
running on, the service, and the XML document to send.  I have created 
the envelope using Envelope.unmarshall() as the messaging example shows 
mine looks like this

DocumentBuilder xdb = XMLParserUtils.getXMLDocBuilder();
StringReader reader = new StringReader(XMLData);   //XMLData = input XML doc
Document doc = xdb.parse(new InputSource(reader));
Envelope msgenv = Envelope.unmarshall(doc.getDocumentElement());

then I send the message.  Currently all the service does is extract the 
body and send it back like this

Body body = env.getBody()  // env is the Envelope sent to the service
resctx.setRootPart(body.toString(), "text/xml");

I've used the TcpTunnelGui and it show that the XML document is indeed 
getting sent to the service, but then from the service all I get back is 
this

[Attributes={}] [BodyEntries=
[(0)=[purchaseOrder: null]]
]

Can someone tell me what I'm doing wrong or point me in the direction to 
figure it out.
Thanks.

Rich Catlett

Reply via email to