how to pass SoapHeader parameter in postman app of chrome
suppose i have
public class AuthSoapHd : SoapHeader
{
public string AuthUserName;
public string AuthUserPassword;
}
public AuthSoapHd AuthenticationHeader;
[SoapHeader("AuthenticationHeader")]
[WebMethod(enableSession: true)]
public void CardType()
{
if (AuthenticationHeader.AuthUserName == "Sharad" &&AuthenticationHeader.AuthUserPassword) == "Gupta")
{
}
else
{
//code
}
}
I tested it in my postman chrome app but i am not able to access else part code due to object execption error