You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2004/11/25 04:54:22 UTC

[jira] Closed: (AXISCPP-145) Deserializer fails to deal with a sequence with a single element

     [ http://nagoya.apache.org/jira/browse/AXISCPP-145?page=history ]
     
Samisa Abeysinghe closed AXISCPP-145:
-------------------------------------


Rgression tets are successful

> Deserializer fails to deal with a sequence with a single element
> ----------------------------------------------------------------
>
>          Key: AXISCPP-145
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-145
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization/Deserialization
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Samisa Abeysinghe
>      Fix For: 1.3 Beta

>
> The deserializer tries to pull a second element from the stream wehn only one elemnt of an unbounded sequence is available.
> e.g.
> For inquire_v2.wsdl get_businessDetail method; I get the following in the response SOAP message.
> <discoveryURLs>
> <discoveryURL useType="businessEntity">
> http://www-3.ibm.com/services/uddi/testregistry/uddiget?businessKey=D368F080-8423-11D6-9FFC-000C0E00ACDD
> </discoveryURL>
> </discoveryURLs>
> corrsponding to the xsd
> <xsd:element name="discoveryURLs" type="uddi:discoveryURLs"/>
>         <xsd:complexType name="discoveryURLs">
>                 <xsd:sequence>
>                         <xsd:element ref="uddi:discoveryURL" maxOccurs="unbounded"/>
>                 </xsd:sequence>
>         </xsd:complexType>
> While deserializing, the program correctly identifies the first discovery URL, however, it tries to read a second discovery URL without realizing there is only one available, and hence fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira