axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavani J <jpavan...@gmail.com>
Subject Re: Axis2c new user - xs:anyType issue
Date Fri, 03 May 2013 06:46:07 GMT
Hi Thomas,

My apologies if I am asking a dumb question.
Is XCCC2axiom_node() / XXX2axiom_node() from axis2c code or something you
wrote?
If it is in axis2c source code could you please point me the location.
If it is not, could you explain how you got real result from that API.

Thanks in advance.
Pavani


On Thu, May 2, 2013 at 10:46 PM, Thomas Baier <thomas.baier@gmx.net> wrote:

> 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-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
>

Mime
View raw message