Hi,
I am trying to extract url in extract variable policy from soap request . Below is xpath :
<XPath>//FaultRule/Fault[@name={request.queryparam.errName}]/code</XPath>
When I try to deploy the API , it throws below error .
Xpath is validated online. It returns url which am trying to extract.
Error Deploying
ExtractVariables ExtractVariablesErrorXML: Failed to compile xpath //FaultRule/Fault[@name={request.queryparam.errName}]/code. Context Revision:1;APIProxy:exceptionHandling;Organization:akshat24;Environment:test.
If we use following xpath:
<XPath>//FaultRule/Fault[@name='API_NoMatchFound']/code</XPath>
It works and allow to deploy the code.
Can we use xpath with dynamic values in extract variable policy.
Thanks,
The <XPath>
element does not support message templating.
It does work for JsonPath, though..
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |