Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 95526 invoked from network); 9 Feb 2005 07:29:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Feb 2005 07:29:15 -0000 Received: (qmail 49360 invoked by uid 500); 9 Feb 2005 07:29:15 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 49342 invoked by uid 500); 9 Feb 2005 07:29:15 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 49328 invoked by uid 99); 9 Feb 2005 07:29:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of samisa.abeysinghe@gmail.com designates 64.233.184.202 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.202) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 08 Feb 2005 23:29:14 -0800 Received: by wproxy.gmail.com with SMTP id 68so1014402wra for ; Tue, 08 Feb 2005 23:29:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Q03Ci7RcYzUUiKYECzGQFXcg6IgUL7sZjZCpFMt9fb3tfk3lHg9xssNxUQcsC/KRDRyQwei6DsjTPklQ0o6ZZi7sJAAYqm1Pqy+k8w8ZgsKedY66S8let49iROvGXdL+XwIrNUOPq2YuRDsyObE87iIP/xFOmvUbxCUtCZoqYTY= Received: by 10.54.42.76 with SMTP id p76mr145407wrp; Tue, 08 Feb 2005 23:29:12 -0800 (PST) Received: by 10.54.28.26 with HTTP; Tue, 8 Feb 2005 23:29:12 -0800 (PST) Message-ID: Date: Wed, 9 Feb 2005 07:29:12 +0000 From: Samisa Abeysinghe Reply-To: Samisa Abeysinghe To: Apache AXIS C User List Subject: Complex array testing [was: Re: Array serialization?] In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Do we have a test case to test complex arrays in the test suite? I had a look and could not find any :( Samisa... On Wed, 9 Feb 2005 15:24:15 +1000, Tim Bartley wrote: > > I am an Axis C++ newbie so please bare with me ... > > I am having trouble with serialization of an array parameter on the client > side. > > The array is of a complex type. > > The generated stubs create: > > typedef struct Complex { > xsd__string value1; > xsd__string value2; > xsd__string value3; > xsd__int value4; > Complex(); > ~Complex(); > }; > > typedef struct Complex_ArrayTag { > Complex** m_Array; > int m_Size; > }; > > I can't find any Axis C++ samples using arrays of complex types. > > I have code similar to the following to initialize the array. > > Complex* data = new Complex[size]; > > > > Complex_Array array; > array.m_Array = new Complex*[size]; > array.m_Size = size; > for (int i = 0; i < size; ++i) { > array.m_Array[i] = &data[i]; > } > > when I step through the generated Axis_Serialize_Complex function the > "Complex* param" parameter appears to really be a "Complex** param". This > results in horrible binary data being included in the request which is then > generally rejected by the server. > > Am I setting up my Complex_Array incorrectly or is this a bug? I'm using the > 1.4 stable release on Linux and have just tried this with the new 1.5 alpha > with the same result. > > Regarsd, > > Tim Bartley > -- > IBM Tivoli Access Manager Development > Gold Coast Development Lab, Australia > +61-7-5552-4001 phone > +61-7-5571-0420 fax