Resolving HIERARCHY_REQUEST_ERR in Policy Xpress TEWS SOAP Queries
search cancel

Resolving HIERARCHY_REQUEST_ERR in Policy Xpress TEWS SOAP Queries

book

Article ID: 255074

calendar_today

Updated On:

Products

CA Identity Suite CA Identity Manager

Issue/Introduction

Executing a Task Execution Web Service (TEWS) call from a Policy Xpress (PX) SOAP Query data element fails with a HIERARCHY_REQUEST_ERR error message.

Environment

Identity Manager 

14.x 

15.x

Cause

A mismatch exists between the configured SOAP Version setting (1.1 vs. 1.2) in Policy Xpress and the XML namespace declaration inside your request envelope.

Resolution

Align your XML payload with the selected SOAP version setting in Policy Xpress.

Key Version Differences

Protocol FeatureSOAP 1.1SOAP 1.2
Envelope Namespace[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)[http://www.w3.org/2003/05/soap-envelope](http://www.w3.org/2003/05/soap-envelope)
Content-Typetext/xmlapplication/soap+xml
SOAPAction HeaderRequiredNot used

Ensure that if you select SOAP 1.1 in PX, your XML payload uses the 1.1 namespace. If you select SOAP 1.2, update your XML payload to use the 1.2 namespace.

Configuration Examples

Example 1: SOAP 1.1 Query

  • PX Policy Type: UI

  • Data Element Name: TEWS Call Using SOAP 1.1

  • Category: Data Sources

  • Type: SOAP Base Query

  • Function: Anonymous Auth Get

  • WSDL URL: http://HOST:PORT/iam/im/TEWS6/identityEnv?wsdl

  • SOAP Version: 1.1

SOAP Request Message:

XML
 
<?xml version="1.0" encoding="UTF-8"?>
<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>
        <TaskContext xmlns="http://tews6/wsdl">
            <admin_id>imadmin</admin_id>
            <admin_password>PASSWORD</admin_password>
        </TaskContext>
        <TaskStatusSearch xmlns="http://tews6/wsdl">
            <Filter index="0">
                <TaskId>3763a4b5-fd686e24-4226875a-0b73</TaskId>
            </Filter>
        </TaskStatusSearch>
    </soapenv:Body>
</soapenv:Envelope>

Additional Information

Example 2: SOAP 1.2 Query

  • PX Policy Type: UI

  • Data Element Name: TEWS Call Using SOAP 1.2

  • Category: Data Sources

  • Type: SOAP Base Query

  • Function: Anonymous Auth Get

  • WSDL URL: http://HOST:PORT/iam/im/TEWS6/identityEnv?wsdl

  • SOAP Version: 1.2

SOAP Request Message:

XML
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
        <TaskContext xmlns="http://tews6/wsdl">
            <admin_id>imadmin</admin_id>
            <admin_password>PASSWORD</admin_password>
        </TaskContext>
        <TaskStatusSearch xmlns="http://tews6/wsdl">
            <Filter index="0">
                <TaskId>3763a4b5-fd686e24-4226875a-0b73</TaskId>
            </Filter>
        </TaskStatusSearch>
    </soapenv:Body>
</soapenv:Envelope>