You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mule 4.4.0发生SOAP Fault时,<soap:Header>存储于哪个变量?

SOAP Fault场景下获取soap:Header的方法

在Mule Runtime Engine 4.4.0中使用Web Service Consumer调用SOAP API时,error.muleMessage.payload仅封装了SOAP Body中的Fault核心信息(如你提供的SoapFault对象),并不会包含soap:Header内容。

要获取完整的SOAP Envelope(包括Header),需要访问error.muleMessage.rawPayload——这个变量存储了原始的XML响应内容。你可以用DataWeave对其进行解析,提取出Header部分:

%dw 2.0
output application/json
ns soap http://www.w3.org/2003/05/soap-envelope
ns se http://test/session
---
error.muleMessage.rawPayload soap#Envelope.soap#Header

解析后就能得到响应里的<se:Data>及内部字段数据。

内容的提问来源于stack exchange,提问作者fujisan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.23 21:13:19