I want to set SessionType in soap header as following.

<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";<http://schemas.xmlsoap.org/soap/envelope/>
>
<soap:Header>
     <UsernameToken
xmlns="http://example.com/webservices";<http://example.com/webservices>
>*user*</UsernameToken>
     <PasswordText
xmlns="http://example.com/webservices";<http://example.com/webservices>
>*hello123*</PasswordText>
     <SessionType
xmlns="http://example.com/webservices";<http://example.com/webservices>
>*None*</SessionType>
</soap:Header>
<soap:Body>
     <!-- data goes here -->
</soap:Body>
</soap:Envelope>

I am using WSHandlerConstants to set user name and password.

I little help is highly appreciated.

-Thanks
Nishantha

Reply via email to