1

I had a .asmx web service that check parameters of soap header like this:

    public class Credential : SoapHeader
    {
        public string username;
        public string password;
    }

    [WebMethod]
    [SoapHeader("ClientCredential")]
    public BE78[] Get78(BE78Equal equal, ref ResponseInfo info)

now, i want to re-implement something like this with WCF service. How can I do that without adding ClientCredential as input parameter of the service?

M.Mohammadi
  • 1,558
  • 1
  • 13
  • 25

1 Answers1

1

This is a good explanation of how to achieve what you ask for: How to add a custom HTTP header to every WCF call?

Community
  • 1
  • 1
Per Kastman
  • 4,466
  • 24
  • 21