Hi guys,
There is some strange behavior (for me at least).
I use a wsdl2java cxf maven plugin to generate a Java client code.
The strange thing happens in the following:
In the wsdl is the output type, however in the generated code it is not
shown at all.
For example, the method in wsdl may look like that:
CustomType getProduct(SomeRequest someRequest) ...
in the generated code I get:
void getProduct(SomeRequest someRequest)
The part of my wsdl:
[code]
<wsdl:operation name="LockStateChanged">
<soap12:operation
soapAction="
http://www.noname.com/abc/2008/05/Mall/Contracts/Service/LockStateChanged"
style="document"/>
<wsdl:input name="LockStateChangedReportRequest">
<soap12:header
message="i0:LockStateChangedReportRequest_Headers" part="SubscriptionTopic"
use="literal"/>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output name="LockStateChangedResponse">
<soap12:body use="literal"/>
</wsdl:output>
<wsdl:fault name="MallFault">
<soap12:fault name="MallFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
[/code]
And the part of maven "task"
[code]
<wsdlOption>
<wsdl>
${basedir}/src/main/resources/wsdl/ver10/MALL_CENTER/MallCenter.wsdl
</wsdl>
<extraargs>
<extraarg>-fe</extraarg>
<extraarg>jaxws21</extraarg>
<extraarg>-clientjar</extraarg>
<extraarg>siplaceSetupCenter.${project.version}.jar</extraarg>
<extraarg>-exsh</extraarg>
<extraarg>true</extraarg>
<extraarg>-p</extraarg>
<extraarg>com.noname.ws</extraarg>
</extraargs>
</wsdlOption>
[/code]
Why does it happen? What is a possible workaround if any can be?
Thank you in advance,
Oleg