wsdl2c question

2008-09-04 Thread Raghu Udupa
Hi,

 

I am using wsdl2c tool to generate C code for model object with ADB
bindings. For each XML element, I see 3 sets of files like

adb_UserCode.c

adb_UserCode.h

adb_UserCode_type0.c

adb_UserCode_type0.h

adb_UserCode_type1.c

adb_UserCode_type1.h

 

I would like to know how what each combination of files, adb_UserCode,
adb_UserCode_type0 and adb_UserCode_type 1 is used for?

 

Thanks,

Raghu



Re: wsdl2c question

2008-09-04 Thread Dimuthu Gamage
Hi Raghu,

This can be due to 'UserCode' name is used for an element and 2 types (in
different namespaces but with same name) in your WSDL.

Just try to build the adb model depending on what is actually required.

For an example if you generating stub you can start with the
axis2_stub_your_service.h and identify the required adb objects for the
parameter types of the operation. Then follow the header of that perticular
adb object (you only need to concentrate on getters and setters) and
identify the adb object in the parameters of their getters and setters. You
can continue like this until the parameters of getters and setters are
simple types.

Thanks
Dimuthu

On Fri, Sep 5, 2008 at 2:25 AM, Raghu Udupa [EMAIL PROTECTED] wrote:

  Hi,



 I am using wsdl2c tool to generate C code for model object with ADB
 bindings. For each XML element, I see 3 sets of files like

 adb_UserCode.c

 adb_UserCode.h

 adb_UserCode_type0.c

 adb_UserCode_type0.h

 adb_UserCode_type1.c

 adb_UserCode_type1.h



 I would like to know how what each combination of files, adb_UserCode,
 adb_UserCode_type0 and adb_UserCode_type 1 is used for?



 Thanks,

 Raghu




-- 
Thanks,
Dimuthu Gamage

http://www.dimuthu.org
http://www.wso2.org