我有JMS消息处理JMS在ESB WSO2消息
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<content>
<entry type="1">
<textMessage JMSDeliveryMode="2" JMSDestination="queue:///QUEUE" JMSExpiration="0" JMSMessageID="ID:c3e2d840d8e3c1f14040404040404040cf1eba01c4eff036" JMSPriority="4" JMSRedelivered="false" JMSTimestamp="1434705226223" fromQueue="true" codec="Base64">
<text>dGVzdA==</text>
</textMessage>
</entry>
</content>
但是当我把它变成WSO2 ESB它进入SOAP信封,我不能够检索在这里的属性,如JMSDestination等
我想读取WSO2 ESB中的这些细节。有没有办法? 从JMS获取消息后,我得到以下SOAP消息,并且正在进行日志记录,或者xPath仅在此消息中起作用。
[2015-06-22 11:08:33,632] INFO - LogMediator To: , WSAction: urn:mediate, SOAPA
ction: urn:mediate, MessageID: ID:c3e2d840d8e3c1f14040404040404040cf224f7f3bbf47
25, Direction: request, Envelope: <?xml version="1.0" encoding="utf-8"?><soapenv
:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Bod
y>test1</soapenv:Body></soapenv:Envelope>
感谢
你能告诉我们你从队列中读取的wso2代理吗?然后你可以用这样的XPath表达式访问你的元素:' ' –
FiveO