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 "Chinthana C. Dinapala" <CD...@virtusa.com> on 2005/08/02 11:08:57 UTC

RE: [jira] Commented: (AXISCPP-772) Deserialization error when XSD_languagetype used as an array element.

 

Hi Monohar,

 

It's not only these two there are more test failing to serialize array
elements.

I'm implementing the C++ services and I have observed this. I'll add an
issue for this after implementing all services.

E.G.

XSD_ENTITIES

XSD_ENTITY

XSD_language

XSD_Name

XSD_NCName

XSD_negativeInteger

 

I have observed this problem all in above tests.

 

Thanks

Chinthana

 

 

-----Original Message-----
From: Manohar K Chintala [mailto:cmanohar@in.ibm.com] 
Sent: Tuesday, August 02, 2005 3:06 PM
To: Chinthana Danapala (JIRA)
Subject: Re: [jira] Commented: (AXISCPP-772) Deserialization error when
XSD_languagetype used as an array element.

 

 

 

 

 

Chinthana,

 

FYI, the same problem happens with XSD_ID type too.

 

Regards

Manohar

 

 

 

 


             "Chinthana


             Danapala (JIRA)"


             <axis-c-dev@ws.ap
To 

             ache.org>                 Manohar K
Chintala/India/IBM@IBMIN  

 
cc 

             08/02/2005 02:22


             PM
Subject 

                                       [jira] Commented: (AXISCPP-772)


                                       Deserialization error when


                                       XSD_language type used as an
array  

                                       element.


 


 


 


 


 


 


 

 

 

 

    [

http://issues.apache.org/jira/browse/AXISCPP-772?page=comments#action_12
317401

 ]

 

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

 

 

 


RE: [jira] Commented: (AXISCPP-772) Deserialization error when XSD_languagetype used as an array element.

Posted by Manohar K Chintala <cm...@in.ibm.com>.



Hi,

XSD_languageClient test shows this problem.

Regards
Manohar



                                                                           
             "Chinthana C.                                                 
             Dinapala"                                                     
             <CDinapala@virtus                                          To 
             a.com>                    "Apache AXIS C Developers List"     
                                       <ax...@ws.apache.org>          
             08/02/2005 02:38                                           cc 
             PM                                                            
                                                                   Subject 
                                       RE: [jira] Commented: (AXISCPP-772) 
             Please respond to         Deserialization error when          
              "Apache AXIS C           XSD_languagetype used as an array   
             Developers List"          element.                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Hi Monohar,

It's not only these two there are more test failing to serialize array
elements.
I’m implementing the C++ services and I have observed this. I’ll add an
issue for this after implementing all services.
E.G.
XSD_ENTITIES
XSD_ENTITY
XSD_language
XSD_Name
XSD_NCName
XSD_negativeInteger

I have observed this problem all in above tests.

Thanks
Chinthana


-----Original Message-----
From: Manohar K Chintala [mailto:cmanohar@in.ibm.com]
Sent: Tuesday, August 02, 2005 3:06 PM
To: Chinthana Danapala (JIRA)
Subject: Re: [jira] Commented: (AXISCPP-772) Deserialization error when
XSD_languagetype used as an array element.





Chinthana,

FYI, the same problem happens with XSD_ID type too.

Regards
Manohar




             "Chinthana
             Danapala (JIRA)"
             <axis-c-dev@ws.ap                                          To
             ache.org>                 Manohar K Chintala/India/IBM@IBMIN
                                                                        cc
             08/02/2005 02:22
             PM                                                    Subject
                                       [jira] Commented: (AXISCPP-772)
                                       Deserialization error when
                                       XSD_language type used as an array
                                       element.










    [
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