axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chinthana Danapala (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-772) Deserialization error when XSD_language type used as an array element.
Date Tue, 02 Aug 2005 08:52:39 GMT
    [ http://issues.apache.org/jira/browse/AXISCPP-772?page=comments#action_12317401 ] 

Chinthana Danapala commented on AXISCPP-772:
--------------------------------------------

I'm also getting the following exception with Axis C++ service.
AxisEngineException:Web Service failed

So I have checked the SOAP message and seems to me it send wrong message. It's not serialized
the array elements.

Sending....................................................

POST /axis/XSD_language HTTP/1.1 
Host: localhost:8888 
Content-Type: text/xml; charset=UTF-8 
SOAPAction: "XSD_language#asArray" 
Content-Length: 364 

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:asArrayRequest xmlns:ns1="http://xsd_language.test.apache.org">
</ns1:asArrayRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Received.........................................................

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Webservice failed</faultstring>
<faultactor>server name:listen port</faultactor>
<detail><appSpecific>AxisEngineException:Web Service failed</appSpecific>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



> 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

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


Mime
View raw message