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
{
# wsn = EASLogin.login(username, password, slnName, dcName, language, dbType, authPattern);
//到了这一句出现问题
}
catch(Exception e)
{
throw new Exception("登录出现错误", e);
}
if (wsn.sessionId != null&&wsn.sessionId!="")
{
}
}