axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Stummvoll <mich...@stummi.org>
Subject [axis2c/wsdl2c/adb] problem with deserialize method
Date Wed, 21 Dec 2011 16:40:38 GMT
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 ‘property_Type’
adb_SpecificationType.c: In function ‘adb_SpecificationType_serialize_obj’:
adb_SpecificationType.c:972:82: warning: passing argument 1 of 
‘adb_Type_type1_serialize’ from incompatible pointer type [enabled by 
default]
adb_Type_type1.h:272:9: note: expected ‘struct adb_Type_type1_t *’ but 
argument is of type ‘axis2_char_t *’
adb_SpecificationType.c: In function ‘adb_SpecificationType_get_Type’:
adb_SpecificationType.c:1324:17: warning: return from incompatible 
pointer type [enabled by default]
adb_SpecificationType.c: In function ‘adb_SpecificationType_set_Type’:
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 ‘adb_SpecificationType_reset_Type’:
adb_SpecificationType.c:1392:20: warning: passing argument 1 of 
‘adb_Type_type1_free’ from incompatible pointer type [enabled by default]
adb_Type_type1.h:64:9: note: expected ‘struct adb_Type_type1_t *’ but 
argument is of type ‘axis2_char_t *’
---- 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 this i taked this as a 
bug and fixed it for me by editing this files and changing 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_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-Body 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


Mime
View raw message