SOAPBody body = responseEnvelope.getBody();
for ( int i = 0; i < responseBodyElems.size(); i++ )
{
XmlObject responseBodyElem = (XmlObject) responseBodyElems.get( i );
body.addChildElement( createSOAPBodyElement( responseBodyElem ) );
}
Ian
Shahzad Younas wrote:
Hi,
I was just wondering if anyone had managed to convert an xmlobject into a SOAPBody.
I have managed to construct a Document from the xml object:
Document doc = parse string of XMLObject.
But when i try adding this to the SOAPBody, i get a invalid QName local part exception:
SoapEnvelope env;
env.getBody().add(doc);
Does anyone know a quick and easy way to achieve this? Or can anyone help with resolving the QName error?
Many thanks all!
Shahzad
PS: There will be plenty more of these questions to this mailing list! :(
I'm currently working on a project at uni and right now I am hitting a VERY steep learning curve! Its due in very soon!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
