The following generated code is not valid C code because it does not declare all variables at the top of the scope:
------------- code generated from WSDL2C starts here ----------------------------- else { axiom_node_t *text_node = NULL; text_node = axiom_node_get_first_child(parent, env); axiom_text_t *text_element = NULL; ------------- code generated from WSDL2C ends here ----------------------------- The last line above is wrong - you can't declare a variable at that point in C. The XML that resulted in this generated code is this: <xsd:simpleType name="LoginAuthenticatorType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="LAT_MD5_NAMETIMEPASSWD_HASH"/> <xsd:enumeration value="LAT_3DESENCRYPTED_PASSWD"/> </xsd:restriction> </xsd:simpleType> The compile errors are: ----------------------------------------------------------------------------------- adb_LoginAuthenticatorType.c c:\code\incognito\ipcmdr-mainline\svc\src\incosvcwsdl\gensrc\adb_loginauthenticatortype.c(194) : error C2275: 'axiom_text_t' : illegal use of this type as an expression c:\code\incognito\axis2\include\axiom_text.h(38) : see declaration of 'axiom_text_t' c:\code\incognito\ipcmdr-mainline\svc\src\incosvcwsdl\gensrc\adb_loginauthenticatortype.c(194) : error C2065: 'text_element' : undeclared identifier c:\code\incognito\ipcmdr-mainline\svc\src\incosvcwsdl\gensrc\adb_loginauthenticatortype.c(197) : warning C4047: '=' : 'int' differs in levels of indirection from 'axiom_text_t *' c:\code\incognito\ipcmdr-mainline\svc\src\incosvcwsdl\gensrc\adb_loginauthenticatortype.c(199) : warning C4047: 'function' : 'axiom_text *' differs in levels of indirection from 'int' c:\code\incognito\ipcmdr-mainline\svc\src\incosvcwsdl\gensrc\adb_loginauthenticatortype.c(199) : warning C4024: 'axiom_text_get_value' : different types for formal and actual parameter 1 c:\code\incognito\ipcmdr-mainline\svc\src\incosvcwsdl\gensrc\adb_loginauthenticatortype.c(201) : warning C4047: 'function' : 'axiom_text *' differs in levels of indirection from 'int' c:\code\incognito\ipcmdr-mainline\svc\src\incosvcwsdl\gensrc\adb_loginauthenticatortype.c(201) : warning C4024: 'axiom_text_get_value' : different types for formal and actual parameter 1