
Technical white paper | Integrated Billing Solutions with HP CSA 4.00
Figure 7. Information in a Service Instance
If a service expires, is cancelled, or fails, the billing solution should stop accruing charges against that service.
Part 4. How to Collect Information from HP CSA with REST Calls
HP CSA exposes usage and billing information in the service instances through a set of REST (REpresentational State
Transfer) APIs. Data can be returned in either XML or JSON format. The format of the returned data is specified by the user
making the REST API call in the Accept Content-Type header setting. The examples in this paper use the XML format.
Solution Developers’ Responsibilities
Solution developers communicate with HP CSA over http (or https) and parse the data structures returned by HP CSA. The
default https port for communication with HP CSA is port 8444. A developer can modify this port as needed in the HP CSA
JBoss configuration.
The developer must configure authentication (also called authorization) and headers as needed. Common headers include
application-Type:application/xml and accept:application/xml.
How to test REST Communication
A convenient way to test communication with HP CSA is to use a REST Console such as those provided in Google™ Chrome
and other browsers. You can add this Google Chrome plug-in as follows:
• Start Google Chrome.
• Open Chrome Web Store.
• Use search box to search for REST Console.
• Select Add to Chrome.
5
Komentáře k této Příručce