Pavani, I have implemented this by hand without ADB. I can now successfully return any data types (including arrays of any types). When getting anyType parameters, things are getting more complicated as the two client frameworks I've been tested against (Java and .NET) do not agree on how to pass arrays of anyType.
What I did was more or less: axiom_node_t* axis2_skel_StatConnector_XXX(const axutil_env_t *env, axiom_node_t* _xXX ) { axiom_node_t* lResNode = NULL; axiom_element_t *lResponse = NULL; axiom_attribute_t *lAtt = NULL; axiom_element_t *lCurrentElement = NULL; lResponse = axiom_element_create(env,NULL,"XXXResponse", getNS(env),&lResNode); lAtt = axiom_attribute_create(env,"xmlns:xsd", "http://www.w3.org/2001/XMLSchema",NULL); axiom_element_add_attribute(lResponse,env,lAtt,lResNode); lCurrentElement = axiom_element_create(env, lResNode,"XXXResult", getNSStatConn(env),&lCurrentNode); XXX2axiom_node(lCurrentNode,env); return lResNode; } The real result is produced in XCXX2axiom_node(). Maybe there is also some way to do this easier with ADB yet, but for me my code is working :) Best, Thomas On 03.05.2013 05:54, Pavani J wrote: > Thank you for quick response. > > The problem is, result could be of type "SomeResult" or > "SomeOtherResult" or just a string, it can be know only before creating > "SomeInfo" ADB object using adb_SomeInfo_create_with_values(). I need > to create result node from one of the above listed types and pass that > result node to adb_SomeInfo_create_with_values(). > > Now how should I create result node (of type anyType) from either > "SomeResult" or "SomeOtherResult"? > I already know how to create node from string. > > And also I changing WSDL is not an option for my project. > > I greatly appreciate your help. > Thanks in advance for all your help. --------------------------------------------------------------------- To unsubscribe, e-mail: c-user-unsubscr...@axis.apache.org For additional commands, e-mail: c-user-h...@axis.apache.org