public void Get(string username, string password, string dcName,string DataJson)
{
WebReference.EASLoginProxyService EASLogin = new WebReference.E ASLoginProxyService();
WebReference.WSContext wsn;
string username = "user";
string password = "njt110831";
string dcName = "T001";
string slnName = "eas";
string language = "L2";
int dbType = 1;
string authPattern = "BaseDB";
ServicePointManager.Expect100Continue = false;
//金蝶的这个接口的http 1.1 C#引用服务自动生成的是http 1.0 , 由引用方和目标服务接口协议不一致,导到webservice调用失败。
try
{
}
catch(Exception e)
{
throw new Exception("登录出现错误", e);
}
if (wsn.sessionId != null&&wsn.sessionId!="")
{
}
}
你不能调试到远程服务器上去。
你先直接运行,看看输出什么异常的信息。
高版本的vs里面添加服务引用有两种方式,其中添加老版本的,按照这样添加