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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2006/11/08 00:34:52 UTC

[jira] Resolved: (AXIS2-1625) Axis2 OMElement navigation is broken

     [ http://issues.apache.org/jira/browse/AXIS2-1625?page=all ]

Davanum Srinivas resolved AXIS2-1625.
-------------------------------------

    Resolution: Invalid

see prev comment.

-- dims

> Axis2 OMElement navigation is broken
> ------------------------------------
>
>                 Key: AXIS2-1625
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1625
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: om
>            Reporter: Gul Onural
>         Assigned To: Eran Chinthaka
>            Priority: Blocker
>         Attachments: simpleclient.zip, simpleservice.zip
>
>
> What I am trying to do is really simple: 
> I have a service method takes OMElement as input and returns 
> an OMElement as output. 
> At the beginning of the method, I print the OMElement input parameter 
> and I see it as expected. But when I try to iterate elements of the 
> OMElement using following code I don't see the child elements but get 
> null pointer instead. 
> Is this a known issue ? This code was working couple of weeks ago. 
> Gul 
> Xml snippet 
> ========== 
> <tns:CreateSimpleXXXRequest xsi:schemaLocation="http://www.example.com CommonTypes.xsd" xmlns:tns="http://www.example.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <tns:simpleXXX> 
>       <tns:name>String</tns:name> 
>    </tns:simpleXXX> 
> </tns:CreateSimpleXXXRequest> 
> Code snippet 
> ========== 
> Iterator children = element.getChildren(); 
> while (children.hasNext()) { 
> OMElement root = (OMElement) children.next(); 
>   System.out.println("ELEMENT = " + root.toString()); 
>     OMElement temp = root.getFirstChildWithName(new QName( 
>        "http://example.com", "name")); 
>         if (temp != null) { 
>                 System.out.println("NAME = " + temp.getText()); 
>         } 
> } 

-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org