0
美好的一天!WSO2。如何獲得編碼轉義字符的標籤xml的值?
客戶端向代理服務器發送SOAP消息Xml編碼的轉義字符。如何從Xml中獲得價值?
例子。 SOAP請求
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetPhone xmlns="http://ProxyService">
<xml><xml><phone>8888888888</phone></xml></xml>
</GetPhone>
</s:Body>
</s:Envelope>
我需要得到一個電話號碼,並將其發送到XSLT調解員。
這裏是我的代理服務:
<inSequence>
<script language="js">mc.setPayloadXML(new XML(mc.getPayloadXML()..*::xml.toXMLString()));</script>
<property xmlns:ns="http://ProxyService"
name="phoneValue"
expression="//ns:xml/ns:phone"
scope="default"
type="STRING"/>
<log level="custom">
<property name="logValue" expression="get-property('phoneValue')"/>
</log>
<xslt key="in_xslt">
<property name="phone" expression="get-property('phoneValue')"/>
</xslt>
<log level="full"/>
<send>
<endpoint>
<address uri="http://localhost:322/"/>
</endpoint>
</send>
</inSequence>
我到底做錯了什麼?
非常感謝你,作品! –