try
{
SinServicesGet.SinServices SinGet = new SinServicesGet.SinServices();
string url = SinGet.OpenSinNotMap(txtTaskId.Text.ToString(),texTaskQY.Text.ToString());//调用那个services
}
catch(WebException) //网络不通
{
}
catch(SoapException) //调用services出错,主要是这个,用soap就行了
{
}
catch(SqlException) //数据库连接失败
{
}
catch(TimeoutException)
{
}
catch(Exception)
{
}
关于c#调取webservice时候的错误
猜你喜欢
转载自blog.csdn.net/milijiangjun/article/details/81232316
今日推荐
周排行