0
試圖處理XML格式在WSO2 IMB MQ消息。WSO2 IBM MQ XML消息解析問題
我能夠從隊列中讀取消息。我的消息是這樣的:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<vi:Show xmlns:vi="urn:vehdpms.tms.t.com/vehinv">
<vi:VehicleInventoryBOD>
<emf:ApplicationArea xmlns:emf="http://ice.tms.t.com/EMF">
<emf:CreationDateTime>2017-01-09T11:18:04.622-08:00</emf:CreationDateTime>
<emf:BODID>daedfeed-a56c-4d4a-bf8d-77d0bcd00899</emf:BODID>
<emf:Sender>
<emf:ServiceName>Vehicle Inventory</emf:ServiceName>
<emf:ServiceVersion>GETSH</emf:ServiceVersion>
</emf:Sender>
<rtm:RTMHeader xmlns:rtm="urn:vehdpms.tms.t.com/rtmheader">
<rtm:Source>
<rtm:Company>TMS</rtm:Company>
<rtm:System>VROR</rtm:System>
</rtm:Source>
<rtm:Response>
<rtm:Name>Vehicle Inventory</rtm:Name>
</rtm:Response>
</rtm:RTMHeader>
</emf:ApplicationArea>
<vi:DataArea>
<vi:Verb>Show</vi:Verb>
<vi:VehicleInventory>
<vi:UnitId>122755280</vi:UnitId>
<vi:URN>NJ19555772</vi:URN>
<vi:WMI>5YF</vi:WMI>
<vi:VDSPrefix>BURHE</vi:VDSPrefix>
<vi:VIN>5YFAAAAE5HP765434</vi:VIN>
試圖把5YFAAAAE5HP765434財產。 我使用的財產中介從中提取XML VIN號碼......我點到XML,所以我得到這樣的
<inSequence>
<property expression="/soapenv:Envelope/soapenv:Body/vi:Show/vi:VehicleInventoryBOD/vi:DataArea/vi:VehicleInventory/vi:VIN" name="test" scope="default" type="STRING" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/>
<log level="custom">
<property expression="get-property('test')" name="Requested VIN"/>
</log>
</inSequence>
,但我依然沒有得到它......我的信息就要像
TID [-1234] [ESB] [2017年3月5日00:29:39641] INFO {org.apache.synapse.mediators.builtin.LogMediator} - 請求VIN =
所以有毛病表達財產...有人可以pount我正確的方向..
感謝讓 - 米歇爾·快速響應,但沒有運氣...還沒有VIN :( – lpastor