0

I have a WSDL that does not expose the SOAP headers, but I need to add the following in to the header:

   <soapenv:Header>
    <UsernameToken xmlns="http://siebel.com/webservices">ANONYMOUS</UsernameToken>
    <PasswordText xmlns="http://siebel.com/webservices">ANONYMOUS</PasswordText>
    <SessionType xmlns="http://siebel.com/webservices">None</SessionType>
   </soapenv:Header>

Is there anyway to do this in C# if these header values are not exposed?

John Arlen
  • 6,539
  • 2
  • 33
  • 42
bgeveritt
  • 303
  • 5
  • 18

1 Answers1

0

Use MessageContract for control over Soap header/body

How to add custom soap headers in wcf?

Community
  • 1
  • 1
Tilak
  • 30,108
  • 19
  • 83
  • 131