XPATH://requestHeader//*[local-name()='clientUsername']
的XPath無法正常工作
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:req="http://www.ABC.com/ws/requestHeader"
xmlns:web="http://com/ABC/XXX/YYY">
<soapenv:Header/>
<soapenv:Body>
<web:isServiceUp>
<web:requestHeader>
<req:clientUsername>GENT</req:clientUsername>
<req:languageCode>?</req:languageCode>
</web:requestHeader>
</web:isServiceUp>
</soapenv:Body>
</soapenv:Envelope>
它假設是返回GENT但它返回空字符串...
+1爲測試鏈接=) – Koitoer