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
Identity Manager 14.x
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.
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: