WSO2 ESB - 如何解开 REST 消息的 SOAP 信封 [英] WSO2 ESB - how to unwrap the SOAP envelope of REST messagess

查看:22
本文介绍了WSO2 ESB - 如何解开 REST 消息的 SOAP 信封的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到 REST 消息由 ESB 包装在 SOAP 信封中.有没有办法将消息作为 POX 保存在 ESB 中,而不会被 SOAP 信封包裹?我尝试使用 http 端点设置 format="rest".但是没有用.

I noticed that REST messages are wrapped in a SOAP envelope by the ESB. Is there a way to keep the message as POX even inside the ESB, without being wrapped by a SOAP envelope? I tried setting format="rest" by using an http endpoint. But it didn't work.

推荐答案

在 ESB 中,无论传入/传出的消息格式如何,消息都会转换为 soap 消息.这样做是为了向所有要使用的中介提供一致的消息格式.您可以做的是,通过设置 format="pox",在消息从 ESB 发出时移除soap 信封.

Within the ESB, message get converted to a soap message regardless of incoming/out going message format. That is happening to provide a consistent message format to all the mediators to work with. What you can do is, remove the soap envelope when message is going out from the ESB by setting the format="pox".

这篇关于WSO2 ESB - 如何解开 REST 消息的 SOAP 信封的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆