You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Eric Middleton <er...@diagonal-solutions.co.uk> on 2001/01/22 14:48:30 UTC
Problem using Xalan DOMResult in SOAP
I'm attempting to use Xalan 2 to transform incoming XML into a SOAP 2.0
call, using a DOMResult object to return the result of the transform in a
DOM tree.
However, the SOAP method Envelope.unmarshall throws a NullPointerException
at org.apache.soap.util.xml.QName.setNamespaceURI(QName.java:108)
at org.apache.soap.util.xml.QName.<init>(QName.java:102)
at org.apache.soap.AttributeHandler.unmarshall(AttributeHandler.java:231)
when I call it as follows:
Document doc = (Document)domResult.getNode();
Envelope e = Envelope.unmarshall(doc.getDocumentElement());
The SOAP envelope is as follows:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/
<http://schemas.xmlsoap.org/soap/envelope/> " xmlns:xsd="
http://www.w3.org/1999/XMLSchema <http://www.w3.org/1999/XMLSchema> "
xmlns:xsi=" http://www.w3.org/1999/XMLSchema-instance
<http://www.w3.org/1999/XMLSchema-instance> ">
Does anyone have any ideas?
Eric
Eric Middleton
Technical Consultant
Diagonal Solutions
Tel: 0113 220 8377
Fax: 0113 220 8378
www.diagonal-solutions.co.uk <http://www.diagonal-solutions.co.uk/>
eric.middleton@diagonal-solutions.co.uk
<ma...@diagonal-solutions.co.uk>
This communication contains information which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient(s) please note that any form of
distribution, copying or use of this communication or the information in it
is strictly prohibited and may be unlawful. If you have received this
communication in error please return it to the sender.