PDA

View Full Version : چرا وقتی دو تا webmethod دارم توی وب سرویسم نمیتونم از soap بهش کانکت بشم؟



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;
}

saeedhushmand
یک شنبه 07 اردیبهشت 1393, 14:22 عصر
لطفا کمک کنید

saeedhushmand
سه شنبه 09 اردیبهشت 1393, 14:20 عصر
یعنی این همه برنامه نویس یکی به من کمک نمیکنه؟:گریه: