xpath with namespace

60 views
Skip to first unread message

fadi aljabali

unread,
May 10, 2018, 1:52:39 PM5/10/18
to Membrane SOA Model
i got the below XML request , and i need to do switch case using xPath as following :

<case xPath="//soapenv:Envelope" service="Order" />


or

<case xPath="//em:SendMessage" service="Order" />



but both cases failed , how should i do that , originaly i need to check if BankCode = 10 to be routed to certain service else to be routed to another one "Default"

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:SendMessage>
         <!--Optional:-->
         <tem:BankCode>10</tem:BankCode>
         <!--Optional:-->
         <tem:BankPWD>?</tem:BankPWD>
         <!--Optional:-->
         <tem:MobileNo>?</tem:MobileNo>
         <!--Optional:-->
         <tem:MsgText>?</tem:MsgText>
         <!--Optional:-->
         <tem:SenderID>?</tem:SenderID>
         <!--Optional:-->
         <tem:MsgOption>?</tem:MsgOption>
      </tem:SendMessage>
   </soapenv:Body>
</soapenv:Envelope>
Reply all
Reply to author
Forward
0 new messages