axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Nüßler <mark.nuess...@9elements.com>
Subject adb - codegeneration - missing return in response
Date Mon, 10 Sep 2007 19:30:00 GMT
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


Mime
View raw message