axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jeff ling (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-1747) Unexpected subelement Name
Date Mon, 20 Nov 2006 02:49:01 GMT
Unexpected subelement Name
--------------------------

                 Key: AXIS2-1747
                 URL: http://issues.apache.org/jira/browse/AXIS2-1747
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.1
         Environment: Windows
            Reporter: jeff ling


When the generated stub processes response, it expects the nodes come in a specific order.
If the order is different, exception is thrown. 

The code is in parse() methods of different result processing factory. 

For example, the code:
/// process the "first" element "IsPrivacyChanged"
if (reader.isStartElement()
           ...
              "IsPrivacyChanged").equals(reader.getName())) {
read the value
}else
{
   throw exception
} 

///now it processes 2nd element.
if (reader.isStartElement()
           ...
              "Name").equals(reader.getName())) {
read the value
}else
{
   throw exception
} 

If "Name" came in before "IsPrivacyChanged", exception is thrown. 

A loop should be used, and any elements can appear in any order.



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


Mime
View raw message