Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Delphi soap客户端-服务器无响应_Delphi_Soap_Webservice Client - Fatal编程技术网

Delphi soap客户端-服务器无响应

Delphi soap客户端-服务器无响应,delphi,soap,webservice-client,Delphi,Soap,Webservice Client,我的应用程序使用一些web服务。 下面是通话片段 try intf := getInterface(urlString); request := TransaccionWS1.VentaDispositivoConvenioWSINTO.Create; // here request field are initiated // // AddToLogFile(format('Transaction Send: tid=%s authid=%s prod=%s',

我的应用程序使用一些web服务。 下面是通话片段

try
  intf := getInterface(urlString);
  request := TransaccionWS1.VentaDispositivoConvenioWSINTO.Create;
  // here request field are initiated
  //
  //
  AddToLogFile(format('Transaction Send: tid=%s authid=%s prod=%s',
    [request.idExterno, request.nroReserva, elem.codProducto]), log_debug);

  rs := intf.ventaDispositivoConvenio(request);
  AddToLogFile(format('Transaction Recv: OK=%d result=%s auth_result=%s ' +
              'descr=%s ticketnr=%s amount=%s text=%s',
    [ord(rs.OK), rs.codigoRetorno, rs.codigoAutorizacion, rs.descripcionRetorno,
     rs.nroTicket, rs.importeTicket, rs.textoLegal]), log_debug);
except
  on e:exception do begin
    AddToLogFile(format('**** Transaction: %s', [e.message]), log_exceptions);
    raise;
  end
end;
一般来说,它工作正常 但有时我有个问题 我可以在日志“Transaction Send”中看到,但看不到任何“Transaction Recv”和异常

还有一件事我无法解释,有时我会在日志中看到

2014年1月3日14:32:35.453事务发送:tid=266996 authid=000000 1958472 prod=86

2014年1月3日14:36:09.046****事务:与服务器的连接已重置

此处异常在4分钟后引发,而客户端使用默认超时值30秒


可能有人有方向去哪里搜索?

您假设您的代码是错误的,但可能是环境问题?使用SoapUI使用WSDL并运行一些测试,以查看Web服务是否稳定且可访问

它24*7运行,一个月发生一次问题。