I have a web service in asmx e.g.

public void Create(classA objA)
{
   //Some code here
}

Now client has asked me to make it work with Basic Authentication.

I did this.

public Credentials Credentials;

[WebMethod]
[SoapHeader("Credentials")]
public void Create(classA objA)
{
   //Some code here

   Call a method to check a username and password with database.

}

The credentials class:

public class Credentials:SoapHeader
{
    public string UserName { get; set; }

    public Credentials()
    {

    }}

But client says that they don't want it, it requires them to pass extra parameter. They only want basic authentication.

So how do I make it good for basic authentication?

and how would client authenticate it using basic authentication?

Related posts

Recent Viewed