Mule 即使有404响应,也要继续执行流
我有以下http请求:Mule 即使有404响应,也要继续执行流,mule,Mule,我有以下http请求: <http:request config-ref="FlowVarsHostAndPort" path="/rest/bpo/evento" method="POST" doc:name="Envia movimentacoes para Elaw Correspondente"> <http:request-builder> <http:header h
<http:request config-ref="FlowVarsHostAndPort" path="/rest/bpo/evento" method="POST" doc:name="Envia movimentacoes para Elaw Correspondente">
<http:request-builder>
<http:header headerName="Content-Type" value="application/json"/>
</http:request-builder>
</http:request>
在HTTP调用之前,需要禁用该行为,以便状态代码异常不会抛出。在这种情况下,我们可以使用状态代码查看HTTP的响应,并根据需要执行逻辑操作
<set-variable variableName="http.disable.status.code.exception.check" value="true" />
参考文献:。检查此参考url中的HTTP响应验证部分。在HTTP调用之前,需要禁用该行为,以便状态代码异常不会引发。在这种情况下,我们可以使用状态代码查看HTTP的响应,并根据需要执行逻辑操作
<set-variable variableName="http.disable.status.code.exception.check" value="true" />
参考文献:。检查此参考url中的HTTP响应验证部分
<http:request config-ref="" path="/rest/bpo/evento" method="POST" doc:name="Envia movimentacoes para Elaw Correspondente">
<http:request-builder>
<http:header headerName="Content-Type" value="application/json"/>
</http:request-builder>
<http:success-status-code-validator values="200,404"/>
</http:request>