return Oracle 服务总线错误代码

return oracle service bus error code

我正在 Oracle Service Bus 11G 中为 Web 服务创建代理。收到请求后,当响应为200时,一切正常,OSB return 相同的200代码。

现在,在我的 WebService 中,我根据某些逻辑处理引发错误 400、406、403 等,但 OSB 总是引发错误 500。

有没有办法让 OSB 转发包含错误代码的简单答案?

谢谢。

向业务服务添加故障处理程序

data($fault//*:http-response-code)data($fault//*:reason) 中提取变量(或类似的东西

插入:

<http:http-response-code>$response_code_variable</http:http-response-code>
作为
的最后 child ./ctx:transport/ctx:response
在变量中 – $inbound

插入:

<tp:response-message>$response_reason_variable</tp:response-message>
./ctx:transport/ctx:response/ctx:response-code
在变量中 – $inbound