.Net访问SAP发布的WebService问题
源程序:
public string GetSapData() {
string ret = string.Empty;
SAP.Z2017fib7301 a = new SAP.Z2017fib7301();
SAP.Zsfi0001 b = new SAP.Zsfi0001();
SAP.Z2017FIB7301EP c = new SAP.Z2017FIB7301EP();
b.Cashflow = "X";
a.Input = b;
c.Credentials = new NetworkCredential("web", "abcd1234");
SAP.Zsfi0002[] data;
data = new SAP.Zsfi0002[0];
c.Timeout = 102400;
try
{
data = c.Z2017fib7301(a).TCashflow;
string aa = c.Z2017fib7301(a).EvMsg;
string bb = c.Z2017fib7301(a).EvTyp;
}
catch (Exception ex)
{
throw ex;
}
return ret;
}
程序运行到红色那行的时候就提示“System.Net.WebException: 请求被中止: 请求已被取消”。
求教大神们帮忙解答哪里有问题,还有调用过程是否正确。