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 "Fred Preston (JIRA)" <ax...@ws.apache.org> on 2004/12/22 14:52:04 UTC
[jira] Resolved: (AXISCPP-260) To have the ability to NULL an array element in an array of complex type
[ http://nagoya.apache.org/jira/browse/AXISCPP-260?page=history ]
Fred Preston resolved AXISCPP-260:
----------------------------------
Resolution: Fixed
> 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