Passing custom token in http headers (webservice consumer)

Hi,

Has anyone tried passing cutom tokens in http headers while using weservice consumer.
There is nothing to add custom token to http headers using soapHTTP, soapClient, soapRPC.

We have to send a token (say xyz=123) in http headers.

Regards,
Sumit

Sumit,

Try some thing like this,

-soapDataToString (assuming you have soapData in pipeline)
-http (post, specify soapAction if there is any in headers, content type along with your custom headers)
-Branch\header\status
200- soapStatus-0
500-soapStatus-1
default-soapStatus-2
-streamToSoapData

Thanks,
Yarkar.

By using pub.soap.utils:addHeaderEntry, header information can be added to soapdata… It can hold custom header information also…

Yarkar,
What you have suggested is trying out with normal http post with soapData as http body.
I will try this but this would mean customising the webservice consumer.

Senthil,
addHeaderEntry will add token in SoapHeader, we want to add token in Http header

Thanks guys.

Regards,
Sumit