axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Gamage" <dimut...@gmail.com>
Subject Re: adb - codegeneration - missing return in response
Date Wed, 12 Sep 2007 06:23:51 GMT
Hi Mark,

The above issue was there in some days ago  and now it is fixed.
Actually the use of "if (has_parent)" was a temporary fix and now it
is handled from the templates.

Please download the latest snapshot in
http://people.apache.org/dist/axis2/nightly/axis2-SNAPSHOT-bin.zip
(not thaxis2-1.3-SNAPSHOT-bin.zip which may not have the fix) and
check your code.

Thanks
Dimuthu

On 9/11/07, mark.nuessler@9elements.com <mark.nuessler@9elements.com> wrote:
> hello Samisa,
>
> i have created AXIS2C-690.
>
> mfg derMark
>
>
> Hi Mark,
>    Your solution makes sense to me.
>    Would it be possible to post the WSDL in a Jira so that I can have a look at
> the generated code please?
> Thanks,
> Samisa...
>
> Mark Nüßler wrote:
> > hi users,
> >
> > seems to me that the adb-codegen has a little failure,
> > but maybe i am wrong.
> >
> > i generate with axis2-1.3-SNAPSHOT-bin.zip, 04-Sep-2007 03:29
> >
> > in my wsdl i have a 'Person' with 'Name' and 'Age',
> > i have a method 'getPerson' that returns a Person-Object
> > in its Response.
> >
> > response of java-server :
> >
> > <ns2:getPersonResponse xmlns:ns2="http://ws.apache.org/axis2">
> >  <ns2:return>
> >   <ns1:age xmlns:ns1="http://ws.apache.org/axis2/xsd">123</ns1:age>
> >   <ns1:name xmlns:ns1="http://ws.apache.org/axis2/xsd">aName</ns1:name>
> >  </ns2:return>
> > </ns2:getPersonResponse>
> >
> > both, my c- and java-client work fine with this response
> >
> > response of c-server :
> >
> > <ns3:getPersonResponse xmlns:ns1="http://ws.apache.org/axis2/xsd"
> >      xmlns:ns3="http://ws.apache.org/axis2">
> >  <ns1:alter>123</ns1:alter>
> >  <ns1:name>einName</ns1:name>
> > </ns3:getPersonResponse>
> >
> > seems to me that the return element iss missing !
> >
> > solution :
> >
> > adb_getPersonResponse.c, function adb_getPersonResponse_serialize
> > last few lines, replace both if statements :
> >
> > "if (has_parent)"
> > with
> > "if (!has_parent)"
> >
> > after this the response of the c-server :
> >
> > <ns3:getPersonResponse xmlns:ns1="http://ws.apache.org/axis2/xsd"
> >      xmlns:ns3="http://ws.apache.org/axis2">
> >  <ns3:return xmlns:ns1="http://ws.apache.org/axis2/xsd">
> >   <ns1:age>123</ns1:age>
> >   <ns1:name>einName</ns1:name>
> >  </ns3:return>
> > </ns3:getPersonResponse>
> >
> >
> > if this is not a correct solution or i missed something,
> > please correct me.
> >
> > mfg derMark
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >
> >
>
>
> --
> Samisa Abeysinghe - Apche Axis2/C
> "http://ws.apache.org/axis2/c/?Apache&nbsp;Axis2/C&nbsp;The&nbsp;Web&nbsp;Services&nbsp;Engine"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.14/999 -
> Release Date: 10.09.2007 17:43
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message