Good Mornning,
Whe I send a XML request by cURL comands, for my service XML Firewall with Looback configuration. The input data entry to the rule that contain:
Rule client to server XML Firewall LoopBack Config
The input data that is send is:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dpconfig="http://www.datapower.com/param/config" xmlns:dp="http://www.datapower.com/extensions" extension-element-prefixes="dp" xmlns:regexp="http://exslt.org/regular-expressions">
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:variable name=”message”>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.identify.com" xmlns:code="http://code.ws.identify.com">
<soapenv:Header/>
<soapenv:Body>
<ser:validaCode>
<ser:obj>
<code:code>2016</code:code>
<code:mensaje></code:mensaje>
</ser:obj>
</ser:validaCode>
</soapenv:Body>
</soapenv:Envelope>
<xsl:variable name=”result” select=’dp:soap-call(“http://localhost:8080/ValidaCodigo/services/ImplCode”, $message)’/>
</xsl:variable>
<xsl:variable name=”respuestaDato” select=”$result//*[namespace-uri()=’uri-servicio’ and local-name()=’code’]/code()”/>
</xsl:template>
</xsl:stylesheet>
This data is for a Web Service that is in my local Machine. When you send the code label, the service return a different code label. The question is, why the input data do not pass to the transform in the policy rule? When the data entry to tranform icon in the rule, the output data of the transform is empty.