Return-Path: X-Original-To: apmail-axis-c-user-archive@www.apache.org Delivered-To: apmail-axis-c-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D0F8741E for ; Wed, 21 Dec 2011 16:50:12 +0000 (UTC) Received: (qmail 45925 invoked by uid 500); 21 Dec 2011 16:50:12 -0000 Delivered-To: apmail-axis-c-user-archive@axis.apache.org Received: (qmail 45906 invoked by uid 500); 21 Dec 2011 16:50:11 -0000 Mailing-List: contact c-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C User List" Delivered-To: mailing list c-user@axis.apache.org Received: (qmail 45898 invoked by uid 99); 21 Dec 2011 16:50:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 16:50:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HK_LOTTO_NAME,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jayawark@gmail.com designates 209.85.213.45 as permitted sender) Received: from [209.85.213.45] (HELO mail-yw0-f45.google.com) (209.85.213.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 16:50:07 +0000 Received: by yhgg71 with SMTP id g71so5679774yhg.32 for ; Wed, 21 Dec 2011 08:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=oszf7JCMmbMvjZQjg75KeDBz7nJposaAB6UVncgEXPo=; b=CTMYYUcuybcqx5bT4bp/m/oQz9r1W/W6N+H4jHWHK5psUlW3acAvqYgAWefTSzW+h6 H5ITUH4d0NVzOL68b+qTwIahVxRXF8i/o3jDiE0KJckAc5SVLsBl7X0nUWpDbH7entfe OiGnAlGLyYsdb5T+3NWhZs6XWDNMM6i9MS1DE= Received: by 10.236.150.134 with SMTP id z6mr10696352yhj.42.1324486186180; Wed, 21 Dec 2011 08:49:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.63.5 with HTTP; Wed, 21 Dec 2011 08:49:25 -0800 (PST) In-Reply-To: <4EF20C06.6040001@stummi.org> References: <4EF20C06.6040001@stummi.org> From: Nandika Jayawardana Date: Wed, 21 Dec 2011 22:19:25 +0530 Message-ID: Subject: Re: [axis2c/wsdl2c/adb] problem with deserialize method To: Apache AXIS C User List Content-Type: multipart/alternative; boundary=20cf302efb0aa322ad04b49cf855 --20cf302efb0aa322ad04b49cf855 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable What is the parameters you used when code generating using wsdl2c. Regards Nandika On Wed, Dec 21, 2011 at 10:10 PM, Michael Stummvoll wro= te: > Hi, > > i am not sure if the problem accords to axis2c, wsdl2c or adb. > > First (i am not sure, if this has to do my real problem) > I generated a client stub from a wsdl and a couple of xsd files using > wsdl2c, but on compiling this files i get some gcc errors: > > ---- SNIP --- > adb_SpecificationType.c:33:31: error: duplicate member =91property_Type= =92 > adb_SpecificationType.c: In function =91adb_SpecificationType_** > serialize_obj=92: > adb_SpecificationType.c:972:**82: warning: passing argument 1 of > =91adb_Type_type1_serialize=92 from incompatible pointer type [enabled by > default] > adb_Type_type1.h:272:9: note: expected =91struct adb_Type_type1_t *=92 bu= t > argument is of type =91axis2_char_t *=92 > adb_SpecificationType.c: In function =91adb_SpecificationType_get_**Type= =92: > adb_SpecificationType.c:1324:**17: warning: return from incompatible > pointer type [enabled by default] > adb_SpecificationType.c: In function =91adb_SpecificationType_set_**Type= =92: > adb_SpecificationType.c:1342:**34: warning: comparison of distinct > pointer types lacks a cast [enabled by default] > adb_SpecificationType.c:1362:**51: warning: assignment from incompatible > pointer type [enabled by default] > adb_SpecificationType.c: In function =91adb_SpecificationType_reset_**Typ= e=92: > adb_SpecificationType.c:1392:**20: warning: passing argument 1 of > =91adb_Type_type1_free=92 from incompatible pointer type [enabled by defa= ult] > adb_Type_type1.h:64:9: note: expected =91struct adb_Type_type1_t *=92 but > argument is of type =91axis2_char_t *=92 > ---- SNAP --- > > this error affected to xsd-complextypes, which had a field "Type", cause > "property_type" seems also be used "intern" for the type identifier of th= e > objects. Cause i could not find anything to this i taked this as a bug an= d > fixed it for me by editing this files and changing the property_type fiel= d > (+ all references to this) to property__type. > > Now to my problem: > on calling a soap method, i get follow messages in my log: > > [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_LearningModeType.c(**371) > failed in building adb object for element LearningModeTypeChoice_type0 > [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_LearningModeType.c(**381) > failed in setting the value for LearningModeTypeChoice_type0 > [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_** > AlarmConfigDetailsXmlType.c(**1051) failed in building adb object for > element LearningMode > [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_** > AlarmConfigDetailsXmlType.c(**1061) failed in setting the value for > LearningMode > [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_** > CharacteristicValueConfigType.**c(1869) failed in building adb object for > element AlarmConfigDetails > [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_** > CharacteristicValueConfigType.**c(1879) failed in setting the value for > AlarmConfigDetails > [Wed Dec 21 17:01:25 2011] [error] /[...]//adb_**ConfigurationReadType.c(= 732) > failed in building element CharacteristicValueConfig > [Wed Dec 21 17:01:25 2011] [error] /[...]//adb_**ConfigurationReadType.c(= 741) > failed in setting the value for CharacteristicValueConfig > [Wed Dec 21 17:01:25 2011] [error] /[...]//adb_** > loadConfigurationResponse.c(**290) failed in building adb object for > element Configuration > [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_** > loadConfigurationResponse.c(**300) failed in setting the value for > Configuration > [Wed Dec 21 17:01:25 2011] [error] /[...]/axis2_stub_project.c(**2388) > NULL returnted from the adb_loadConfigurationResponse_**deserialize: This > should be due to an invalid XML > > i couldn't find anything about this error message. Which XML is meaned > here? The WSDL/XSD-Files, from where i generated my stub? The Response-Bo= dy > from the service? Or something else? > > If the response-body is meaned: Is there a way to dump the raw data? The > body looks right for me (grabbed via wireshark), so may it was tampered > somewhere between. > > Hope somebody can help me. > > Thanks, > Michael > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: c-user-unsubscribe@axis.**apache.org > For additional commands, e-mail: c-user-help@axis.apache.org > > --20cf302efb0aa322ad04b49cf855 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable What is the parameters you used when code generating using wsdl2c.

R= egards
Nandika

On Wed, Dec 21, 2011 at= 10:10 PM, Michael Stummvoll <michael@stummi.org> wrote:
Hi,

i am not sure if the problem accords to axis2c, wsdl2c or adb.

First (i am not sure, if this has to do my real problem)
I generated a client stub from a wsdl and a couple of xsd files using wsdl2= c, but on compiling this files i get some gcc errors:

---- SNIP ---
adb_SpecificationType.c:33:31: error: duplicate member =91property_Type=92<= br> adb_SpecificationType.c: In function =91adb_SpecificationType_serial= ize_obj=92:
adb_SpecificationType.c:972:82: warning: passing argument 1 of =91ad= b_Type_type1_serialize=92 from incompatible pointer type [enabled by defaul= t]
adb_Type_type1.h:272:9: note: expected =91struct adb_Type_type1_t *=92 but = argument is of type =91axis2_char_t *=92
adb_SpecificationType.c: In function =91adb_SpecificationType_get_Ty= pe=92:
adb_SpecificationType.c:1324:17: warning: return from incompatible p= ointer type [enabled by default]
adb_SpecificationType.c: In function =91adb_SpecificationType_set_Ty= pe=92:
adb_SpecificationType.c:1342:34: warning: comparison of distinct poi= nter types lacks a cast [enabled by default]
adb_SpecificationType.c:1362:51: warning: assignment from incompatib= le pointer type [enabled by default]
adb_SpecificationType.c: In function =91adb_SpecificationType_reset_= Type=92:
adb_SpecificationType.c:1392:20: warning: passing argument 1 of =91a= db_Type_type1_free=92 from incompatible pointer type [enabled by default] adb_Type_type1.h:64:9: note: expected =91struct adb_Type_type1_t *=92 but a= rgument is of type =91axis2_char_t *=92
---- SNAP ---

this error affected to xsd-complextypes, which had a field "Type"= , cause "property_type" seems also be used "intern" for= the type identifier of the objects. Cause i could not find anything to thi= s i taked this as a bug and fixed it for me by editing this files and chang= ing the property_type field (+ all references to this) to property__type.
Now to my problem:
on calling a soap method, i get follow messages in my log:

[Wed Dec 21 17:01:25 2011] [error] /[...]/adb_LearningModeType.c(371= ) failed in building adb object for element LearningModeTypeChoice_type0 [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_LearningModeType.c(381= ) failed in setting the value for LearningModeTypeChoice_type0
[Wed Dec 21 17:01:25 2011] [error] /[...]/adb_AlarmConfigDetailsXmlT= ype.c(1051) failed in building adb object for element LearningMode [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_AlarmConfigDetailsXmlT= ype.c(1061) failed in setting the value for LearningMode
[Wed Dec 21 17:01:25 2011] [error] /[...]/adb_CharacteristicValueCon= figType.c(1869) failed in building adb object for element AlarmConfi= gDetails
[Wed Dec 21 17:01:25 2011] [error] /[...]/adb_CharacteristicValueCon= figType.c(1879) failed in setting the value for AlarmConfigDetails [Wed Dec 21 17:01:25 2011] [error] /[...]//adb_ConfigurationReadType= .c(732) failed in building element CharacteristicValueConfig
[Wed Dec 21 17:01:25 2011] [error] /[...]//adb_ConfigurationReadType= .c(741) failed in setting the value for CharacteristicValueConfig
[Wed Dec 21 17:01:25 2011] [error] /[...]//adb_loadConfigurationResp= onse.c(290) failed in building adb object for element Configuration<= br> [Wed Dec 21 17:01:25 2011] [error] /[...]/adb_loadConfigurationRespo= nse.c(300) failed in setting the value for Configuration
[Wed Dec 21 17:01:25 2011] [error] /[...]/axis2_stub_project.c(2388)= NULL returnted from the adb_loadConfigurationResponse_deserialize: = This should be due to an invalid XML

i couldn't find anything about this error message. Which XML is meaned = here? The WSDL/XSD-Files, from where i generated my stub? The Response-Body= from the service? Or something else?

If the response-body is meaned: Is there a way to dump the raw data? The bo= dy looks right for me (grabbed via wireshark), so may it was tampered somew= here between.

Hope somebody can help me.

Thanks,
Michael


-------------------------------------------------------------= --------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


--20cf302efb0aa322ad04b49cf855--