Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 1048 invoked from network); 2 Jun 2005 03:34:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2005 03:34:10 -0000 Received: (qmail 5310 invoked by uid 500); 2 Jun 2005 03:34:09 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 5286 invoked by uid 500); 2 Jun 2005 03:34:09 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 5251 invoked by uid 99); 2 Jun 2005 03:34:08 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp.erunway.com (HELO mailhost.virtusa.com) (12.40.51.197) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Jun 2005 20:34:04 -0700 Received: from cs-mailsvr.Virtusa.com ([10.2.1.11]unverified) by mailhost.virtusa.com with InterScan Messaging Security Suite; Wed, 01 Jun 2005 23:32:26 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C56724.2CDA2B8A" Subject: SimpleArray test returns garbage values Date: Thu, 2 Jun 2005 09:33:42 +0600 Message-ID: <403DD48EAE182940B89ECEAFE03F9690054B2897@cs-mailsvr.Virtusa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SimpleArray test returns garbage values Thread-Index: AcVnI99tBMAsr0IpRD2+hNNI5ROzpg== From: "Dushshantha Chandradasa" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C56724.2CDA2B8A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, Did anyone notice that the service of the test SimpleArray returns garbage. =20 Following are the client request and the server response. =20 Request ------------ =20 POST /axis/Array HTTP/1.1 Host: localhost:8080 Content-Type: text/xml; charset=3DUTF-8 SAOPAction: Array#echoIntArray SOAPAction: "array#echoIntArray" Content-Length: 584 =20 0 1 =20 =20 Response --------------- =20 HTTP/1.1 200 OK Date: Thu, 02 Jun 2005 03:05:25 GMT Server: Apache/2.0.52 (Win32) Content-Length: 612 Content-Type: text/xml =20 9406464 9406464 =20 =20 The client code also has some problems.=20 =20 //testing echoIntArray intArrayType arrin; arrin.intItem.m_Array =3D new int*[ARRAYSIZE]; arrin.intItem.m_Size =3D ARRAYSIZE; for (x=3D0;x=20 =20 =20 =20 Regards, =20 Marcus Dushshantha Chandradasa Team Virtusa dchadradasa@virtusa.com =20 ------_=_NextPart_001_01C56724.2CDA2B8A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,

Did anyone notice that the service of the test = SimpleArray returns garbage.

 

Following are the client request and the server = response.

 

Request

------------

 

POST /axis/Array = HTTP/1.1

Host: localhost:8080

Content-Type: text/xml; = charset=3DUTF-8

SAOPAction: = Array#echoIntArray

SOAPAction: = "array#echoIntArray"

Content-Length: 584

 

<?xml version=3D'1.0' encoding=3D'utf-8' = ?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">

<SOAP-ENV:Body>

<ns1:echoIntArray xmlns:ns1=3D"http://soapinterop.org/">

<intArrayType = xsi:type=3D"ns2:intArrayType" xmlns:ns2=3D"http://soapinterop.org/xsd"><intItemArray xmlns:enc=3D"http://www.w3.org/2001/06/soap-encoding" enc:arrayType=3D"xsd:int[2]">

<item>0</item>

<item>1</item>

</intItemArray>

</intArrayType></ns1:echoIntArray>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

Response

---------------

 

HTTP/1.1 200 OK

Date: Thu, 02 Jun 2005 03:05:25 = GMT

Server: Apache/2.0.52 = (Win32)

Content-Length: 612

Content-Type: text/xml

 

<?xml version=3D'1.0' encoding=3D'utf-8' = ?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance">

<SOAP-ENV:Body>

<ns1:echoIntArrayResponse xmlns:ns1=3D"http://soapinterop.org/">

<intArrayType = xsi:type=3D"ns2:intArrayType" xmlns:ns2=3D"http://soapinterop.org/xsd"><intItemArray xmlns:enc=3D"http://www.w3.org/2001/06/soap-encoding" enc:arrayType=3D"xsd:int[2]">

<item>9406464</item>

<item>9406464</item>

</intItemArray>

</intArrayType></ns1:echoIntArrayResponse>=

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

The client code also has some problems. =

 

//testing echoIntArray

         intArrayType arrin;

         arrin.intItem.m_Array =3D new = int*[ARRAYSIZE];

         arrin.intItem.m_Size =3D ARRAYSIZE;

         for (x=3D0;x<ARRAYSIZE;x++)

         = {

         =   arrin.intItem.m_Array[x] =3D&x; //here the array is not initializing correctly

         = }

 

The segment in the for loop should be corrected as = follows.

 

         for (x=3D0;x<ARRAYSIZE;x++)

         = {

         =   arrin.intItem.m_Array[x]  =3D new int;

*(arrin.intItem.m_Array[x]) =  =3D x;

         = }

 

There is a Jira on this

AXISCPP-608=

 

 

 

Regards,

 

Marcus Dushshantha = Chandradasa

Team Virtusa

dchadradasa@virtusa.com

 

------_=_NextPart_001_01C56724.2CDA2B8A--