[ 
https://issues.apache.org/jira/browse/AXIS-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Veithen updated AXIS-2093:
----------------------------------

    Labels: dom-compatibility  (was: )
    
> XPathAPI cannot find namespace nodes in Axis dom
> ------------------------------------------------
>
>                 Key: AXIS-2093
>                 URL: https://issues.apache.org/jira/browse/AXIS-2093
>             Project: Axis
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>         Environment: Xerces 2.6.2, Xalan 2.6.0, Websphere v5.1 JRE
>            Reporter: Scott Parnell
>            Assignee: Venkat Reddy
>              Labels: dom-compatibility
>
> 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, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to