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

Example of Updating a Company's Information


This example shows you how to use the companies Web service to update a company's information.

Operation

Use the following operation to update a company's information:

PUT /companies/{company_id}

Sample URL

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

http://myhost.example.com:7017/ebillingrs/rs/companies/{company_id}

Roles

The following roles are valid for this Web service example:

  • CSR Admin
  • CSR
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 not updated.
  • If tags are present with an empty value, then the corresponding fields are set to empty if a null value is allowed.
Sample XML Input

The following is an example of XML input:

<companyInfo>

< companyId>Dutch Home Insurance</companyId>

<companyName>Dutch Home Insurance Corporation UPDATED</companyName>

<taxId>...</taxId>

<address1>...</address1>

<city>...</city>

<state>...</state>

<country>...</country>

<postalCode>...</postalCode>

</companyInfo>

Response Message

The following is an example of the response message:

Company Update Success

Visit <link>/companies/Dutch%20Home%20Insurance</link>

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