XPath expression for Web Service Variable returning only first result

book

Article ID: 4460

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) AXIOMATICS POLICY SERVER CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

Web Service Variable is created as below :

<Please see attached file for image>

adminuiconfig.jpg

SOAP Response :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<Permissions>

<Permission>SuperUser</Permission>

<Permission>Manager</Permission>

<Permission>HR</Permission>

<Permission>Accountant</Permission>

</Permissions>

</soapenv:Body>

</soapenv:Envelope>

 

XPath Expression : /*/*/*/*[local-name()='Permission']/text()

If using standard XPATH 1.0/2.0 API, the above XPath Expression parse the result as :

<Please see attached file for image>

working.jpg

 

Reference : http://www.freeformatter.com/xpath-tester.html

However, for the same SOAP response and XPath combination, Policy server fetches only the first result and hence resolves this Web Service variable to value (only) "SUPERUSER"

Policy server Java Util.log

October 16, 2016 9:04:30.76 PM[17008593:AEC Variable Resolution] After resolution resolved variables: <RVARS><Var name="EmptyString" rtype="3"><![CDATA[""]]></Var><Var name="BBHWSVariable" rtype="3"><![CDATA[SUPERUSER]]></Var></RVARS> 

 

 

Cause

This is as per the policy server design and is currently the limitation. Policy server is designed to evaluate to only the first node from the list. 

The other nodes are ignored.

Environment

Policy Server : 12.52 SP1 and abovePolicy Server OS : ANY

Resolution

There is no workaround/resolution for this functionality at the moment.

Customer might implement their own web service client and XML parser using the custom Active Expression.

 

 

Additional Information

N/A

Attachments

1558715618570000004460_sktwi1f5rjvs16twa.jpeg get_app
1558715616252000004460_sktwi1f5rjvs16tw9.jpeg get_app