I am New to window Store app,
I have web service like below
public AuthHeader AuthHeaderValue;
[SoapHeader("AuthHeaderValue", Required = true)]
[WebMethod]
public bool Authentiction()
{
if (AuthHeaderValue.Username == "anji" && AuthHeaderValue.Password == "anji")
{
return true;
}
return false;
}
public class AuthHeader: SoapHeader
{
public string Username;
public string Password;
}
---------------------------------------------------------------------
and My web service method soap requset like below ,
And I wanna pass values to Authheader
when add reference to my app,
It is not allowing me to pass values through webservice reference object.......................
ServiceReference1.AuthenticationSoapClient service = new ServiceReference1.AuthenticationSoapClient();
ServiceReference1.AuthHeader authentication = new ServiceReference1.AuthHeader();
authentication.Username = "anji";
authentication.Password = "anji";
service.AuthHeaderValue= authentication;
Is there any other way to pass values through metro app.....
please provide the solution struggling with 3 days...Please Help.........................
Thanks,
Anji
Replies
Know the answer? Post it — somebody with the same question will find it here.