Need to remove the soap header prefix

Using handlers I have added soap header to the soap request. But “tns:” prefix is added to it automatically and the header looks like :

tns:BasicSecurityToken
xxxxxxxxxxxxxxx
yyyyyyyyyyyyy
3333333333333
</tns:BasicSecurityToken>

And Is is required stricly to have header as :


xxxxxxxxxxxxxxx
yyyyyyyyyyyyy
3333333333333


In short “tns:” prefix infront of BasicSecurityToken has to be removed. Please help on this regard.

Did you try replace service after adding header entry to the soapData?

tns:BasicSecurityToken

replace with BasicSecurityToken

HTH,
RMG

I already explained that I have used handlers to add the header so it is obvious that headers are represented in the form of document. Is there any point in using replace service with documents?

Moreover, for the soapClient service the soapHeaders document appears in the pipeline only when the header document is prefixed. Is it a bug in webmethod?

Also if values can be set in soapHeaders then why only key-value pair? Can’t I set the value of my header :

xxxxxxxxxxxxxxx
yyyyyyyyyyyyy
3333333333333

Why do I need to register the handleRequest service? When exactly it gets called in the soapClient service invocation process? What all possible things I can do inside it?