Some digging led me to the WSDLQueryHandler.updateDoc method.
I could add my header elements as a sibling of each input element in there;
now the question is how can I override WSDLQueryHandler with my
implementation? is it possible to give CXF my derived class that extends
WSDLQueryHandler?


vickatvuuch wrote:
> 
> Hi CXF gurus!
> 
> I need to add a custom header element to all my endpoints as a place for
> client to stick a session token.
> 
> For example I need to add this message xml element once: 
> 
>   <wsdl:message name="Authentication">
>     <wsdl:part name="Authentication" type="tns1:SessionInfo"/>
>   </wsdl:message><br/>
> 
> and a chunk of xml in bold below, to every port and every operation:<br/>
> 
> <wsdl:operation name="getFoo">
>       <wsdlsoap:operation soapAction="getFoo"/>
>       <wsdl:input name="getFoo">
>         <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; use="encoded"/>
>         <wsdlsoap:header message="impl:Authentication"
> part="Authentication"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; use="encoded"/>
>       </wsdl:input>
> 
> I'm debugging it at the WSDLManager level and wonder if there is a better
> way to do it?
> May be a plug in or through an interceptor?
> 
> Any help is very much appreciated.
> 
> Thanks,
> -Vitaly
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Custom-WSDL-header-tp26030841p26034038.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to