Implementing a callback in XML-RPC or SOAP

前端 未结 3 1195
感动是毒
感动是毒 2021-02-09 16:27

I am trying to get an understanding of how I can use SOAP or XML-RPC to create a remote, open API for my product. Problem is, part of my API will require me to be able to get ev

3条回答
  •  萌比男神i
    2021-02-09 17:02

    Ok, eventually the decision made was to deal with callbacks as APIs that don't return immediately.

    Basically, an RPC-XML request will be sent, asking to be notified on a given list of events. Our server would wait until one of the events happen and then report it back as a response or timeout after a set amount of time, notifying that nothing happened. The caller will be able to try and send the request over again to continue waiting.

提交回复
热议问题