saeedhushmand
شنبه 06 اردیبهشت 1393, 12:18 عصر
با عرض سلام
دوستان من وقتی یک webmethod دارم توی وب سرویسم از soap میتونم راحت بخونمش و باهاش ارتباط برقرار کنم ولی وقتی دوتا میشه ، برنامم ارور میده!
public final String SOAP_ACTION = "http://tempuri.org/AuthenticateUser";
public final String OPERATION_NAME = "AuthenticateUser";
public final String WSDL_TARGET_NAMESPACE = "http://tempuri.org/";
public final String SOAP_ADDRESS = "http://radyabi.com/masoovlwebservice/service.asmx";
نمونه وب متدم
[WebMethod(MessageName = "AuthenticateUserByUserID")]
public bool AuthenticateUser(string UserID, string Password, string Key)
{
IsActive = IsAdmin = WinUser = false;
UserPK = -1;
if (Key == SecurityKey)
{
try
{
return dal.User(UserID, Password);
}
catch
{
return false;
}
}
return false;
}
دوستان من وقتی یک webmethod دارم توی وب سرویسم از soap میتونم راحت بخونمش و باهاش ارتباط برقرار کنم ولی وقتی دوتا میشه ، برنامم ارور میده!
public final String SOAP_ACTION = "http://tempuri.org/AuthenticateUser";
public final String OPERATION_NAME = "AuthenticateUser";
public final String WSDL_TARGET_NAMESPACE = "http://tempuri.org/";
public final String SOAP_ADDRESS = "http://radyabi.com/masoovlwebservice/service.asmx";
نمونه وب متدم
[WebMethod(MessageName = "AuthenticateUserByUserID")]
public bool AuthenticateUser(string UserID, string Password, string Key)
{
IsActive = IsAdmin = WinUser = false;
UserPK = -1;
if (Key == SecurityKey)
{
try
{
return dal.User(UserID, Password);
}
catch
{
return false;
}
}
return false;
}