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.
Identity Manager
14.x
15.x
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.
Align your XML payload with the selected SOAP version setting in Policy Xpress.
Key Version Differences
| Protocol Feature | SOAP 1.1 | SOAP 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-Type | text/xml | application/soap+xml |
| SOAPAction Header | Required | Not 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 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>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 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>