Sharad Gupta

Sharad Gupta

  • 92
  • 19.7k
  • 8.5m

how to pass SoapHeader parameter in postman app of chrome

Aug 1 2016 7:37 AM
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)