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 2006/04/05 15:07:26 UTC
[jira] Closed: (AXISCPP-772) Deserialization error when
XSD_language type used as an array element.
[ http://issues.apache.org/jira/browse/AXISCPP-772?page=all ]
Fred Preston closed AXISCPP-772:
--------------------------------
> Deserialization error when XSD_language type used as an array element.
> ----------------------------------------------------------------------
>
> Key: AXISCPP-772
> URL: http://issues.apache.org/jira/browse/AXISCPP-772
> Project: Axis-C++
> Type: Bug
> Reporter: Manohar
> Assignee: Chinthana Danapala
> Fix For: 1.6 Beta
>
> When XSD_language type is sent as an element of an array, it's not deserialized and following exception occured.
> org.xml.sax.SAXException: WSWS3368E: Error: The deserialization event characters for ( - I ) was unexpected in org.apache.test.xsd_language.AsArrayRequest_Deser.
> Here is the code snippet which shows the problem.
> xsd__language_Array arrayInput;
> arrayInput.m_Array = new xsd__language[2];
> arrayInput.m_Size = 2;
> for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
> {
> input = new char[25];
> strcpy (input, simplelanguage);
> arrayInput.m_Array[inputIndex] = input;
> }
> xsd__language_Array arrayResult = ws->asArray(arrayInput);
> cout << "array of " << arrayResult.m_Size << " elements" << endl;
> for (int index = 0; index < arrayResult.m_Size ; index++)
> {
> if (arrayResult.m_Array[index])
> {
> if (*(arrayResult.m_Array[index]))
> {
> cout << " element[" << index << "]=" << arrayResult.m_Array[index] << endl;
> }
> else
> {
> cout << " element[" << index << "]=<empty>" << endl;
> }
> delete arrayResult.m_Array[index];
> }
> else
> {
> cout << " element[" << index << "]=<nil>" << endl;
> }
> Testcase for this problem will be added soon.
> Regards
> Manohar
--
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