简体   繁体   English

在 Microsoft Azure 逻辑应用程序中合并 HTTP 响应

[英]Merge HTTP Responses in Microsoft Azure Logic App

when my logic app got triggerd, i would like to merge two parallel executed HTTP Responses and send this back.当我的逻辑应用程序被触发时,我想合并两个并行执行的 HTTP 响应并将其发回。 Is it enough to tell the final response that it contains both bodys from the previous calls, as shown in the image?是否足以告诉最终响应它包含来自先前调用的两个主体,如图所示? Can this cause problems?这会导致问题吗?

Thank you in advance.先感谢您。

HTTP Get Calls and Responses HTTP 获取调用和响应

It looks ok, the response will contain both of the bodys from the previous two http requests.看起来没问题,响应将包含前两个 http 请求的两个正文。 I test it further, please refer to my testing logic app:我进一步测试它,请参考我的测试逻辑应用程序:

1. I created a logic app similar to yours, it works fine. 1.我创建了一个与您类似的逻辑应用程序,它运行良好。

2. Then I modified the logic app with adding a "Delay" action before the second http request and set it delay 5 seconds. 2.然后我修改了逻辑应用程序,在第二个 http 请求之前添加了“延迟”操作,并将其设置为延迟 5 秒。 在此处输入图像描述 Trigger the logic app, the request lasted a few seconds and response the result with both of the bodys from the two http request.触发逻辑应用,请求持续了几秒钟,并使用来自两个 http 请求的两个主体响应结果。

So I think the response will contain all of the body from the http requests even if one of the http request last more time than the other http request .因此,我认为响应将包含来自 http 请求的所有正文,即使其中一个 http 请求比另一个 http 请求持续时间更长 So I think your logic app is no problem.所以我认为你的逻辑应用程序没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM