Current 1.7.0 snapshot does not generate correct operation return types
-----------------------------------------------------------------------
Key: AXIS2-5014
URL: https://issues.apache.org/jira/browse/AXIS2-5014
Project: Axis2
Issue Type: Bug
Components: codegen
Affects Versions: 1.7.0
Reporter: Harald Rieder
See https://issues.apache.org/jira/browse/AXIS2-5007 for the WSDL where the
problem occurs.
This second problem occurs with this WSDL. For example consider this operation:
<operation name="setData">
<documentation>Loads persistent data into the LTU.</documentation>
<input message="tns:setLTUDataRequest"/>
<output message="epm:standardResponse"/>
</operation>
The response should be a standardResponse which is of type StandardResponse:
<message name="standardResponse">
<part name="result" type="xsd_epm:StandardResponse"/>
</message>
However it is not possible to set a StandardResponse in the Java code, because
the generated classes to not allow this. Observed with ADB and XML beans. For
example XML beans:
SetDataResponseDocument respDoc =
SetDataResponseDocument.Factory.newInstance();
SetDataResponse resp = respDoc.addNewSetDataResponse();
return respDoc;
SetDataResponse does not have any specific members, that can be set. So there
is no way to give back a correct response.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]