Forgotten Password Admin Task TEWS API NoSuchElementException
search cancel

Forgotten Password Admin Task TEWS API NoSuchElementException

book

Article ID: 227665

calendar_today

Updated On:

Products

CA Identity Manager

Issue/Introduction

When attempting to invoke the "Forgotten Password" admin task via the TEWS API, the request fails with the following NoSuchElementException error in the SOAP response:

java.util.NoSuchElementException error: No subjects returned for task: Forgotten Password

Environment

Identity Manager 14.x

Cause

The TEWS API request payload includes redundant <wsdl:ForgottenPassword> wrapper tags. The TEWS processor expects the task definition to follow the PublicTaskContext directly without this additional wrapper, which causes the parsing failure.

Resolution

To resolve this error, remove the unnecessary <wsdl:ForgottenPassword> and </wsdl:ForgottenPassword> tags from your XML payload.

Corrected TEWS Request

Ensure your payload is structured as follows:

xml
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">   <soapenv:Header/>   <soapenv:Body>      <wsdl:PublicTaskContext>         <wsdl:transaction_id>New</wsdl:transaction_id>      </wsdl:PublicTaskContext>      <wsdl:ForgottenPasswordSearch>         <wsdl:Subject index="0">            <wsdl:UniqueName>testuser01</wsdl:UniqueName>         </wsdl:Subject>      </wsdl:ForgottenPasswordSearch>   </soapenv:Body></soapenv:Envelope>