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

Example of Authenticating a User


This example shows you how to use the authenticate Web service to authenticate and return a valid 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 authenticate a user:

POST /authentication

Sample URL

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

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

Roles

The following roles are valid for this Web service example:

  • CSR Admin
  • CSR
  • B2B Admin
  • B2B Manager
  • B2B Subscriber
  • B2C User
Sample XML Input

The following is an example of XML input:

<credential>

<username>ftown</username>

<password>example</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.