axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <bharath.krishna...@rsa.com>
Subject Error while trying to add a DOM element directly under the SoapBody
Date Tue, 27 Jan 2009 12:14:47 GMT
> Hi,
> 
> I am trying to create an axis2 JAX-WS dispatch client with
> Service.Mode.MESSAGE. I am getting the following error while trying to
> construct the SOAPBody. Could someone please explain a proper way to
> add a valid org.w3c.dom.Element directly under the SoapBody.
> 
> Code snippet:
>      SOAPFactory sf = SOAPFactory.newInstance();
> //     no option to add an element, hence passing a document. 
>      body.addDocument(validw3cDocument);
> 
> Exception in thread "main" java.lang.IllegalArgumentException:
> Namespace URI may not be null
> 	at
> org.apache.axiom.om.impl.dom.NamespaceImpl.<init>(NamespaceImpl.java:3
> 2)
> 	at
> org.apache.axiom.om.impl.dom.NamespaceImpl.<init>(NamespaceImpl.java:3
> 8)
> 	at
> org.apache.axis2.saaj.SOAPBodyImpl.toSAAJNode(SOAPBodyImpl.java:424)
> 	at
> org.apache.axis2.saaj.SOAPBodyImpl.addDocument(SOAPBodyImpl.java:303)
> 
> Regards,
> Bharath

Mime
View raw message