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

Example of Creating a B2B User


This example shows you how to use the users Web service to create a B2B user.

Operation

Use the following operation to create a B2B user:

POST /users/b2b

Sample URL

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

http://myhost.example.com:7017/ebillingrs/rs/users/b2b

Roles

The following roles are valid for this Web service example:

  • CSR Admin
  • B2B Admin
Sample XML Input Rules

The following are the XML input rules:

  • Tags in bold are required, and the corresponding fields cannot be updated.
  • If tags are not present, then the corresponding fields are set to the default values.
Sample XML Input

The following is an example of XML input:

<userProfile>

<userId>mdhoni</userId>

<role>Manager</role>

<firstName>Mahendra</firstName>

<lastName>Dhoni</lastName>

<addressLine1>j street apt 1900</addressLine1>

<city>boston</city>

<state>MA</state>

<zip>04109</zip>

<country>USA</country>

<homePhone>555-111-1884</homePhone>

<email>mdhoni@example.com</email>

<paperOn>Y</paperOn>

<language>en_US</language>

<companyId>Dutch Home Insurance</companyId>

<isAccessibleUser>0<isAccessibleUser>

</userProfile>

Response Message

The following is an example of the response message:

User Create Success

Visit <link>/users/mdhoni</link>

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