You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by Shahzad Younas <sh...@bananacomputers.com> on 2005/03/17 21:37:15 UTC

XmlObject to SOAPBody

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!