4
Answers

how to pass SoapHeader parameter in postman app of chrome

Sharad Gupta

Sharad Gupta

8y
703
1
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 
Answers (4)