I use cxf wsdl2java to generate client code.but the method GetPaxListByFlight
which generate to be void.the output thing became into the method
parameters.
below is the part of the wsdl and the source code generated.Pls help
me.Thank you.
WSDL:
<wsdl:message name="GetPaxListByFlightRes">
<wsdl:part element="ns0:GetPaxListByFlightRes" name="part2"/>
<wsdl:part element="header:ResHeader" name="header2"/>
</wsdl:message>
<wsdl:portType name="iCMListingPax">
<wsdl:operation name="GetPaxListByFlight">
<wsdl:input message="tns:GetPaxListByFlightReq"/>
<wsdl:output message="tns:GetPaxListByFlightRes"/>
<wsdl:fault message="tns:Fault" name="fault1"/>
</wsdl:operation>
</wsdl:portType>
Java Client:
public void getPaxListByFlight(
@WebParam(partName = "part1", name = "GetPaxListByFlightReq",
targetNamespace = "http://xml.sq.com.sg/cm/listing/pax/getpaxlistbyflight")
sg.com.sq.xml.cm.listing.pax.getpaxlistbyflight.v1_0.GetPaxListByFlightReq
part1,
@WebParam(partName = "header1", name = "ReqHeader", targetNamespace
= "http://xml.sq.com.sg/common/header")
sg.com.sq.xml.common.header.ReqHeader header1,
@WebParam(partName = "part2", mode = WebParam.Mode.OUT, name =
"GetPaxListByFlightRes", targetNamespace =
"http://xml.sq.com.sg/cm/listing/pax/getpaxlistbyflight")
javax.xml.ws.Holder<sg.com.sq.xml.cm.listing.pax.getpaxlistbyflight.v1_0.GetPaxListByFlightRes>
part2,
@WebParam(partName = "header2", mode = WebParam.Mode.OUT, name =
"ResHeader", targetNamespace = "http://xml.sq.com.sg/common/header")
javax.xml.ws.Holder<sg.com.sq.xml.common.header.ResHeader> header2
) throws Fault;
--
View this message in context:
http://cxf.547215.n5.nabble.com/wsdl-output-s-message-have-two-parts-cause-to-generate-wrong-parameter-and-return-type-method-tp4598102p4598102.html
Sent from the cxf-user mailing list archive at Nabble.com.