Unfortunately no.   This is per spec.  :-(

I'm NOT sure  if you move the "header" element to it's own message and then 
pass " -exsh  true" to wsdl2java what it would generate.    

Dan



On Thursday, July 14, 2011 8:12:07 AM stlecho wrote:
> Based on the following definition:
> <message name="consultEntityResponse">
>       <part name="return" element="cbe:cbeEntityReply"></part>
>       <part name="header" element="fsb:SyncResponseHeader"/>
> </message>
> 
> 
> cxf-codegen-plugin v2.4.0 generates 2 WebParam.Mode.OUT parameters:
>     @WebParam(partName = "return", mode = *WebParam.Mode.OUT*, name =
> "cbeEntityReply", targetNamespace =
> "http://economie.fgov.be/KBO/WSConsultKBO/Enterprise/v1_00";)
> 
> javax.xml.ws.Holder<be.fgov.economie.kbo.wsconsultkbo.enterprise.v1_00.Entit
> yReply> _return,
>     @WebParam(partName = "header", mode = *WebParam.Mode.OUT*, name =
> "SyncResponseHeader", targetNamespace = "http://fsb.belgium.be/v1_00";,
> header = true)
>     javax.xml.ws.Holder<be.belgium.fsb.v1_00.SyncResponseHeader> header1
> 
> 
> Is there a way to configure cxf-codegen-plugin so that it generates 1 return
> type instead of 2 WebParam.Mode.OUT parameters ?
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/How-to-avoid-that-multiple-WebParam-Mode-OU
> T-params-are-generated-tp4587065p4587065.html Sent from the cxf-user mailing
> list archive at Nabble.com.
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to