[ 
http://issues.apache.org/jira/browse/AXIS-2093?page=comments#action_12315304 ] 

Davanum Srinivas commented on AXIS-2093:
----------------------------------------

Venkat,

you don't need a WSDL, this will happen with any soap envelope. just pick one 
test case in our harness that creates a soap envelope and you will be able to 
repro the problem.

-- dims

> XPathAPI cannot find namespace nodes in Axis dom
> ------------------------------------------------
>
>          Key: AXIS-2093
>          URL: http://issues.apache.org/jira/browse/AXIS-2093
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2.1
>  Environment: Xerces 2.6.2, Xalan 2.6.0, Websphere v5.1 JRE
>     Reporter: Scott Parnell

>
> XPathAPI is unable to locate any namespace nodes in the DOM representing a 
> SOAPEnvelope when used like this:
> // message/connection stuff omitted
> SOAPMessage reply = connection.call(msg, serviceEndpoint);
> Element root = reply.getSOAPPart().getDocumentElement();
> try {
>       NodeList nodeList = XPathAPI.selectNodeList(root, "//namespace::*");
>       System.out.println("Found "+nodeList.getLength()+" namespace nodes.");
> } catch (TransformerException e) {
>       e.printStackTrace();
> }
> Serializing the SOAPPart using Xalan to do an identity transform results in:
> <?xml version="1.0" encoding="UTF-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> <soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/>
> <soap:Body>
> <SomeElement  xmlns="http://my.namespace.uri/";>
> .
> .
> .
> </SomeElement>
> </soap:Body>
> </soap:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to