在不添加服务引用的情况下调用Web方法

时间:2016-08-17 12:53:40

标签: c# asp.net web-services

您好我有一个Web服务方法,我必须从我的项目调用;但是我不允许在我的visual studio中添加服务引用。能否请您建议我如何实现它。我给出了以下链接来访问AuthenticateUser()方法

http://devaspserver.dev.local/IntegrationSerive/Services/GlobalService.svc?wsdl

   [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public string AuthenticateUser(string RequestingUser, string UserPassword, out bool Output) 
{

      // Web service methods code here checking the users authentication

}

以下方法尝试调用

public bool IsValidUser(string UserID, string Password)
{
   // Here call web service method to validate user

}

0 个答案:

没有答案
相关问题