You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Michael Stummvoll <mi...@stummi.org> on 2011/12/21 17:40:38 UTC
[axis2c/wsdl2c/adb] problem with deserialize method
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
AW: [axis2c] Problems with high payload? (was Re: [axis2c/wsdl2c/adb] problem with deserialize method)
Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
Make sure you use pointers of the proper type/size
i.e. pointers made as 16bit integers will certainly only allow 65kByte Buffers,
while pointers of 32bit integers or 64bit integers will be able to address a much larger range.
I had the same effects as you describe on a old Axiom/Axis2/C version 1.2 service. Since I am
using 32bit size pointers this problem is gone. Maybe in other routines one calls, deep inside
axis2 or axiom, there are still pointers around which are of a smaller than a 32bit size.
Josef
-----Ursprüngliche Nachricht-----
Von: Michael Stummvoll [mailto:michael@stummi.org]
Gesendet: Donnerstag, 22. Dezember 2011 13:19
An: Apache AXIS C User List
Betreff: Re: [axis2c] Problems with high payload? (was Re: [axis2c/wsdl2c/adb] problem with deserialize method)
Update: I just noticed, thats not everytime cut after 55kb, it seems
that the stream ist cut after a "random" count of bytes (i had some
values between 40kb and 140kb here)
Regards,
Michael
PS: I get an "Undelivered Mail Returned to Sender" response for each
mail here.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org
Re: [axis2c] Problems with high payload? (was Re: [axis2c/wsdl2c/adb]
problem with deserialize method)
Posted by Michael Stummvoll <mi...@stummi.org>.
Update: I just noticed, thats not everytime cut after 55kb, it seems
that the stream ist cut after a "random" count of bytes (i had some
values between 40kb and 140kb here)
Regards,
Michael
PS: I get an "Undelivered Mail Returned to Sender" response for each
mail here.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org
[axis2c] Problems with high payload? (was Re: [axis2c/wsdl2c/adb]
problem with deserialize method)
Posted by Michael Stummvoll <mi...@stummi.org>.
Hi,
Update to my problem: I was wrong Yesterday. The XML-Playload is NOT
correct. Exactly, it is incomplete, cause axis2c seems to hard close the
connection after 55kb of payload (65 kb inclusive TCP headers, i think).
I think this problem is on axis2c-site, because with another
soap-clientlib on the same machine, it works. Sorry for the confusion.
It was late Yesterday ;)
Any ideas?
Regards,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org
Re: [axis2c/wsdl2c/adb] problem with deserialize method
Posted by Michael Stummvoll <mi...@stummi.org>.
hi,
as described in the README
WSDL2C.sh -uri project.wsdl -d adb -u
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org
Re: [axis2c/wsdl2c/adb] problem with deserialize method
Posted by Nandika Jayawardana <ja...@gmail.com>.
What is the parameters you used when code generating using wsdl2c.
Regards
Nandika
On Wed, Dec 21, 2011 at 10:10 PM, Michael Stummvoll <mi...@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
> 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<c-...@axis.apache.org>
> For additional commands, e-mail: c-user-help@axis.apache.org
>
>