Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-772

Deserialization error when XSD_language type used as an array element.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6 Beta
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              cdinapala Chinthana Dinapala
              cmanohar Manohar Kumar Chintala
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: