Para obter ResultCode do xml abaixo
<xsl:variable name="RESULTCODE" select="/ROOT/BODY/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='executeSyncResponse']/*[local-name()='message']/*[local-name()='property'][*[local-name()='name']='ResultCode']/*[local-name()='value']"/>
INPUT
-------------------------------
<ROOT>
<BODY>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.serviceprovider.soa.mw.timbrasil.com.br" xmlns:mes="http://message.ws.connector.soa.mw.timbrasil.com.br">
<soapenv:Header/>
<soapenv:Body>
<ws:executeSyncResponse>
<ws:message>
<mes:property>
<mes:name>ServiceName</mes:name>
<mes:value>PFE_BIT_MSE_SUBSC_QRY</mes:value>
</mes:property>
<mes:property>
<mes:name>ResultCode</mes:name>
<mes:value>111</mes:value>
</mes:property>
</ws:message>
</ws:executeSyncResponse>
</soapenv:Body>
</soapenv:Envelope>
</BODY>
</ROOT>
No comments:
Post a Comment