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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/02/05 08:34:06 UTC

[jira] Resolved: (AXIS2-1747) Unexpected subelement Name

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

Amila Chinthaka Suriarachchi resolved AXIS2-1747.
-------------------------------------------------

    Resolution: Fixed

Now both sequence and all elements in complex type has implemented correctly.

> Unexpected subelement Name
> --------------------------
>
>                 Key: AXIS2-1747
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1747
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1
>         Environment: Windows
>            Reporter: jeff ling
>         Assigned To: Amila Chinthaka Suriarachchi
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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