开发者

Overwrite msg in mirth

开发者 https://www.devze.com 2022-12-22 20:19 出处:网络
I have two destinations now and the first calls a SOAP webservice. I want to take the response of that destination by:

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消