Web Services Reference for Oracle Self-Service E-Billing > Examples of Web Services > Examples of the Authentication Web Service >

Example of Impersonating a User


This example shows you how to use the impersonation Web service to return a valid impersonation token for a particular user. The token in the XML response must be passed as a parameter in subsequent REST services requests.

Operation

Use the following operation to impersonate a user:

POST /authentication/impersonation

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/ebillingrs/rs/authentication/impersonation

Roles

The following roles are valid for this Web service example:

  • CSR Admin
  • CSR
Sample XML Input

The following is an example of XML input:

<credential>

<username>$trust_user_name</username>

<password>$trust_user_password</password>

</credential>

XML Response

The following is an example of the XML response:

<token> gI59AFXTa0p6XFgvMzPNOGMMNhYOhKKbcjGN0K8es6fYM5Po</token>

Web Services Reference for Oracle Self-Service E-Billing Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.