[xgws-user] Re: XSUL and soap Header

Aleksander Slominski aslom_at_cs.indiana.edu
Wed, 15 Mar 2006 04:13:16 -0500


Vincent.LOMBART_at_external.thalesgroup.com wrote:
>
> Hi Alek,
>
> I have a wsdl file with operations containing headers. (See example at
> the end of the mail)
>
>  
>
> Following your samples, I would write a code like:
>
> _stub.operation(smthg)
>
>  
>
> where smthg would be the body of the request. But is there a way to
> fill in the headers ?
>
>  
>
hi Vincent,

there is currently not automatic support for headers declared by WSDL in
XWSIF however you can add your header manually by adding client-side (or
server side) handler - for example see StickySoapHeaderHandler which can
actually make it pretty simple to add automatically XML headers
(anything XmlElement) on client side (and server side) - see
tests/xsul/async_msg

HTH,

alek
>
>
>  
>
>  
>
> <wsdl:operation name="operation">
>
> <soap:operation/>
>
> <wsdl:input>
>
>       <soap:header message="tns:Header" part="Header" use="literal"/>
>
>       <soap:body use="literal"/>
>
> </wsdl:input>
>
> <wsdl:output>
>
>       <soap:header message="tns:Header" part="Header" use="literal"/>
>
>       <soap:body use="literal"/>
>
> </wsdl:output>
>
> </wsdl:operation>
>
>  
>
>  
>


-- 
The best way to predict the future is to invent it - Alan Kay