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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Samisa Abeysinghe - Apche Axis2/C
"http://ws.apache.org/axis2/c/?Apache Axis2/C The Web Services Engine"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]