axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fred Preston (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Assigned: (AXISCPP-260) To have the ability to NULL an array element in an array of complex type
Date Thu, 18 Nov 2004 14:53:29 GMT
     [ http://nagoya.apache.org/jira/browse/AXISCPP-260?page=history ]

Fred Preston reassigned AXISCPP-260:
------------------------------------

    Assign To: Fred Preston  (was: Mark Whitlock)

> To have the ability to NULL an array element in an array of complex type
> ------------------------------------------------------------------------
>
>          Key: AXISCPP-260
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-260
>      Project: Axis-C++
>         Type: Bug
>     Versions: unspecified
>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Fred Preston
>     Priority: Blocker
>      Fix For: unspecified

>
> Problem
> =======
> Assume that we have a 'nillable' DataType_Array that has been created from a WSDL as
follows:-
> DataType_Array.hpp
> ------------------
> class DataType;
> typedef struct DataType_ArrayTag
> {
> DataType * m_Array;
> int        m_Size;
> } DataType_Array;
> DataType.hpp
> ------------
> class DataType
> {
> public:
> xsd__int    index;
> xsd__string string;
> };
> In our implementation we have defined a variable array 'pDataType' of type DataType length
5.
> Test.cpp
> :
> DataType * pDataType = new DataType[5];
> :
> Now, we want to populate indexes 2 and 3 with data, but leave the remaining array indexes
(0, 1 and 4) empty (nill).
> >>>>>Q1. How is this done?
> NB: The serialised output should also look something like this...
> <ns2:DataType> 
> <ns2:Item xsi:nil="true"/> 
> <ns2:Item> 
> <ns2:Item xsi:nil="true"/> 
> <ns2:Item> 
> <ns2:index>2</ns2:index> 
> <ns2:string>String index 2</ns2:string> 
> </ns2:Item> 
> <ns2:Item> 
> <ns2:index>3</ns2:index> 
> <ns2:string>String index 3</ns2:string> 
> </ns2:Item> 
> <ns2:Item xsi:nil="true"/> 
> <ns2:Item> 
> </ns2:DataType> 
> >>>>>Q2. How would the deserialiser cope?

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


Mime
View raw message