search

Home  >  Q&A  >  body text

数据同步 - C#调用java的接口有时候接口没有返回信息

这个同步数据的程序大致流程是

其实就是一来一回,我是写这个java接口的人,C#程序我不熟,但是写C#程序的哥们在程序里判断,如果我服务器没有返回内容,就会再次执行上一条数据的插入操作

我有几个疑问

谢谢

大家讲道理大家讲道理2892 days ago381

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-18 09:40:54

    This is obviously his problem. As long as the connection is successful, there will definitely be a status, at least there will be an http header.
    If there is nothing, there is either a problem with his code or a network problem.
    But no matter what, he must consider this possibility and make fault tolerance.

    The interface is a passive service, what else can be done? Free shipping~~~

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 09:40:54

    The person above is right, there is a problem with C#. Use wireshark to capture the packets on the C# program and it will be clear.
    Fiddler seems to be unable to capture the program socket link. Fiddler can only capture http.

    reply
    0
  • Cancelreply