【问题标题】:Delphi soap client - no response from serverDelphi soap客户端 - 服务器没有响应
【发布时间】:2014-05-28 11:31:52
【问题描述】:

我的应用程序使用了一些 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”,也没有异常。

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

03/01/2014 14:32:35.453 交易发送:tid=266996 authid=0000001958472 prod=86

03/01/2014 14:36:09.046 **** 事务:与服务器的连接已重置

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

可能有人知道在哪里搜索?

【问题讨论】:

    标签: delphi soap webservice-client


    【解决方案1】:

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

    【讨论】:

    • 24*7 运行,一个月内出现一次问题。
    猜你喜欢
    • 1970-01-01
    • 2021-03-19
    • 2018-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多