You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Scott Parnell (JIRA)" <ax...@ws.apache.org> on 2005/06/29 14:48:00 UTC
[jira] Created: (AXIS-2093) XPathAPI cannot find namespace nodes in Axis dom
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
[jira] Assigned: (AXIS-2093) XPathAPI cannot find namespace nodes in Axis dom
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2093?page=all ]
Davanum Srinivas reassigned AXIS-2093:
--------------------------------------
Assign To: Venkat Reddy
> 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
> Assignee: Venkat Reddy
>
> 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
[jira] Commented: (AXIS-2093) XPathAPI cannot find namespace nodes in Axis dom
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ 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
[jira] Commented: (AXIS-2093) XPathAPI cannot find namespace nodes in Axis dom
Posted by "Venkat Reddy (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2093?page=comments#action_12315302 ]
Venkat Reddy commented on AXIS-2093:
------------------------------------
Do you have a WSDL which i can use to generate the webservice and reproduce the problem?
-venkat
> 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
[jira] Commented: (AXIS-2093) XPathAPI cannot find namespace nodes in Axis dom
Posted by "Venkat Reddy (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2093?page=comments#action_12315328 ]
Venkat Reddy commented on AXIS-2093:
------------------------------------
yes dims. i could reproduce the problem using an existing test case. Seems that the XPathAPI.getNodeList call is not even entering any MessageElement methods. That seems strange. This also happens also while seearching for attribute nodes - (//attribute::*). However it does enter MessageElement if the XPath expression looks for child nodes. I also tried replacing DocumentElement with SOAPEnvelope as root node for search. Still looking into the issue.
-venkat
> 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