Web Services Reference for Oracle Billing Insight > 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/rs/api/v2/authentication

Sample XML Input

The following is an example of XML input:

<credential>
<username>ftown</username>
<password>example</password>
</credential>

Sample JSON Input

The following is an example of JSON input:

{
"username":"csradmin",
"password":"Password"
}

XML Response

The following is an example of the XML response:

<token> gI59AFXTa0p6XFgvMzPNOGMMNhYOhKKbcjGN0K8es6fYM5Po</token>

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.