Smirnova, Natalya wrote:
> 
> 
> Hi,
> 
>  
> 
> How I can set some information (username and password, for example) in
> header of soap message envelope on client side and get this information
> on service side (in handler)
> 
> Would you be so kind to share some pieces of code, please?

Create your SOAP Headers as OMElements.Add them one by one using
ServiceClient api.

ServiceClient.addHeader(OMElement).

In the server side, every handler has access to the message context. Get
access to the SOAP envelope thru the message context and you will have
all your headers with it.

SOAPEnvelope envelope = messageContext.getEnvelope();
envelope.getHeaders()


-- Chinthaka

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to