Exemplo n.º 1
0
 /// <summary>
 /// 测试WebService连接
 /// </summary>
 /// <returns></returns>
 private static bool TestWebServiceConnection()
 {
     try
     {
         CommonServiceClient commonService = SoapClientFactory.CreateCommonServiceClient();
         byte[] validationTicket           = WebServiceSecurity.GetLoginTicket();
         return(commonService.TestConnection(validationTicket));
     }
     catch (Exception ex)
     {
         Msg.ShowException(ex);
         return(false);
     }
 }