在欢乐中覆盖消息

发布于 2024-08-25 09:56:18 字数 407 浏览 3 评论 0原文

我现在有两个目的地,第一个目的地调用 SOAP Web 服务。 我想通过以下方式获取该目标的响应:

msg = new XML(responseMap.get('Destination1').getMessage());

并将其转换为可变 XML 对象。 正在做:

logger.error(msg);

<S:Body><PRPA_IN201306UV02> ... </PRPA_IN201306UV02></S:Body>

显示我想要的有效消息,但是当我这样做时:

msg['S:Body'] 它什么也不返回。

任何建议都会有所帮助。

I have two destinations now and the first calls a SOAP webservice.
I want to take the response of that destination by:

msg = new XML(responseMap.get('Destination1').getMessage());

and convert it to a mutable XML object.
Doing:

logger.error(msg);

<S:Body><PRPA_IN201306UV02> ... </PRPA_IN201306UV02></S:Body>

Shows the valid msg as I want it, but when I do:

msg['S:Body'] it returns nothing.

Any suggestions would help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

走走停停 2024-09-01 09:56:18

msg.S::Body 就是你想要的。确保在使用S 命名空间之前定义它。

msg.S::Body is what you want. Make sure you define the S namespace before you use it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文