Skip navigation links

Package com.highdeal.cnd.message

This Java package provides the main Java classes and interfaces to implement the Message TCP high-speed technical interface of SAP CC; With this package, you can develop a client application able to send chargeable items to the SAP CC system to charge (online or offline) or quote for the usage of a customer service by end customers.

See: Description

Package com.highdeal.cnd.message Description

This Java package provides the main Java classes and interfaces to implement the Message TCP high-speed technical interface of SAP CC; With this package, you can develop a client application able to send chargeable items to the SAP CC system to charge (online or offline) or quote for the usage of a customer service by end customers.
Technical Interface Message TCP
Communication Protocol TCP/IP
Communication Mode Asynchronous, Synchronous
Public Endpoints Dispatcher instances of the SAP CC system (Each dispatcher instance has a communication port relating to the TCP communications)
API Technology
  • [x] Java
  • [ ] SOAP
  • [ ] Proprietary XML
SAP CC Java Library core-client.jar
Security Yes (see the SAP CC Security Guide)
Load Balancing Yes
Failover Yes

Consider the following information in this topic:

Technical Interface: Message TCP

SAP Convergent Charging delivers an ultra-speed technical interface that you can implement in your SAP system landscape and develop in your Java-based client application to trigger business and technical operations to the SAP CC system connected via this technical interface.

Communication Infrastructure

The Message TCP technical interface defines a communication infrastructure to exchange messages between your client application and the connected SAP CC system.

Business Services

The Message TCP technical interface provides the following business services for prepaid and postpaid environments.

Business Service Online Charging and Notification Offline Charging
Description Online charging Offline charging
Services Real-Time Charging:
  • Stateful Charging With Credit Control and Credit Reservation: Session-Based, Event-Based
  • Stateful Charging Without Credit Control and Credit Reservation: Immediate Charging for Direct Debiting
  • Stateless Rating Services
  • Business Notification Services (Account and Balance Management)
  • Billing Process Synchronization
  • Spending Status Monitoring
Non Real-Time Charging:
  • Offline Acquisition for Deferred charging service
  • Offline Charging Services (batch mode or single capture)
  • Recharging for Rerating service (for subscriptions or provider contracts)
Environment Prepaid and postpaid Postpaid
Real-Time Yes No

Recommendation

Refer to the SAP CC Application Help for more information about the global charging services.

APIs for the Message TCP Interface

To implement some business services available in the Message TCP technical interface of SAP CC, you can use the following Java packages:

Features

The Message TCP technical interface provides important features that you can implement in your system landscape.

Note

Consult the SAP CC Application Help for more information about high availability, high data volume and performances. It details the functions and mechanisms available in SAP Convergent Charging.

High Availability (HA) Management
High Volume Management
Multiple load balancing functions
High Performance Management
Notification Handling
You can implement the handling of the business notifications sent by the SAP CC Core Server system:
Security
The Message TCP technical interface provides secured communications via the TCP/IP channel. Consult the SAP CC Security Guide. The Message TCP technical interface can request client application to be authenticated. Consult the SAP CC Security Guide. Consult the security section in the javadoc of different charging clients classes.
Communications

Global Charging Services

Online Charging

The Online Charging Services enable to process in real time the incoming chargeable items sent by your mediation system in a connected mode (also called 'online' mode). These chargeable items relate to the usage (consumption) of a customer service. The mediation system sends the chargeable items before or during the service usage.

Business Services Async. Comm. Sync. Comm.
Stateful Session-Based Charging Service
  • Multiservice session-based charging (multiple charging sessions of reservations/confirmations, reservation cancellation, reservation renewal on partially granted reservations)
Yes Yes
Stateful Event-Based Charging Service
  • Charging with credit control and quota reservation (no reservation cancellation)
  • Immediate charging without credit control (for direct debiting)
  • Advice of charge (inverse rating, blank charging)
Yes Yes
Stateless Rating Service No Yes
Business Notification Service
  • Account and Balance Management (amount threshold alert (prepaid account or a credit limit balance), reservation renewal, prepaid account expiration)
Yes Yes
Business Processes Synchronization Service
  • Billing Process Synchronization
Yes Yes
Business Monitoring Service
  • Spending Status Monitoring
Yes Yes

Offline Charging

The Offline Charging Services enable to process a set of chargeable items sent by your mediation system in a disconnected mode (also called 'offline' mode). These chargeable items relate to the past usage (consumption) of a customer service. When relevant, your mediation system connects to and sends the chargeable items after the service usage.

Business Services Async. Comm. Sync. Comm.
Offline Acquisition Service (for Deferred Charging Service) Yes Yes
Offline Charging Service (batch mode or single)
  • Batch Charging
  • Advice of Charge
Yes Yes
Recharging Service (for Rerating Service) Yes Yes

Implementation in Your Client Application

This Java package provides you with the classes necessary to implement online charging or offline charging services and relating service operations.

This section provides you with a developer guide:

Operation Management

All the charging operations are available as Java methods that you call in a customized charging client class of your implementation code.

If you implement the asynchronous communications (see the AsyncStatefulServiceClient and AsyncBatchServiceClient classes) to speed up the processing, consider the exception and error handling.

Charging Client Classes

Several charging client classes are available according to your business requirements:

Charging Service Charging Client Class Business Services
Online Charging (with or without credit control)
  • Real-Time Charging Services (Session-Based or Event-Based Charging, Stateless Rating)
  • Advice of Charge Services
Offline Charging
  • Offline acquisition for Deferred charging service
  • Offline charging service (batch mode or single)
  • Quote service (blank charging)
  • Recharging for Rerating service (for subscriptions or provider contracts)

Recommendation

For very high performances you should implement the AsyncStatefulServiceClient (online charging) and the AsyncBatchServiceClient (offline charging).

Monitoring Client Classes

Several monitoring client classes are available according to your business requirements:

Charging Service Charging Client Class Business Services
Online Charging (with or without credit control)
  • Business Monitoring (Spending Status Monitoring)

Recommendation

For very high performances you should implement the AsyncStatefulServiceClient (online charging).

Initialization

Your Java-based client application initializes a charging client when it starts and stops when the client application stops.

Connection

Your charging client must be initialized by establishing a connection to one of more dispatcher instances available in the distant SAP CC Core Server system. This can be the master dispatcher or another dispatcher instance.

Once at least one dispatcher instance of the SAP CC system is connected from your client application, then this charging client retrieves automatically the list of all the dispatcher instances available on the SAP CC system side.

Note

The charging client establishes automatically in the background a connection with each dispatcher instance to ensure load balancing and failover functions.

Available Methods

All the connect(.) methods provide this mecanism:

Communications

Once an initial connection is established to the distant SAP CC system, your client application will be automatically connected.

Client Timeout

Defining a timeout is optional. Depending on the nature of the charging workflow, the recommended timeout may vary greatly.

Recommendation

For event-based charging, no timeout is recommended.

Termination

Your client application must release the connections when it ends.

Exception and Error Handling

Depending on your business requirements, you design and develop the relevant exception and error handling functions in your client application.

Client-Side Failures Server System Failures
CommunicationFailureException

Note

If you implement the asynchronous communications (see the AsyncStatefulServiceClient and AsyncBatchServiceClient classes) to speed up the processing, consider the specialized listeners that are dedicated to the handling of the operation results in your client application. This processing includes the exception and error handling.

Notification Management

Prerequisites

You must set up the charging operation requests to include the rated transactions in the resulting purchase orders. The rated transactions include the notifications generated during the charging process. Refer to the ts flag available in the different methods of the charging clients.

Performances

Very high throughput:

Notes on SAP CC Implementation

Pooling

Your client application can manage a pool of charging clients for parallel processing, high volume traffic.

Specialized Listeners (Asynchronous Communication)

If you implement the asynchronous communications to speed up the processing, consider the specialized listeners that are dedicated to the handling of the operation results in your client application.

The relevant listener depends on the type of the business operations you want to manage.

Note

This processing includes the exception and error handling when an operation request failed.

Service Operations

Event-Based Charging Operations

Event-Based Charge (Online or Offline Service)

Batch Charge (Offline Service)

Best-Effort Charge (Online Service)

Get Estimated Price (Online Service)

Blank Charge (Online Service)

This operation estimates the price by asking the SAP CC system to rate and charge in blank mode the specified chargeable item that simulates a customer service usage. The chargeable item can correspond to a real service consumption (not charged) or to the simulation of service consumption. You implement this operation if you want to provide advice of charge services in your SAP system landscape.

Note

This operation is equivalent to the event-based charge operation but the blank mode means that no data is committed to the database.

Caution

If the transaction processor does not take care about the database transaction (transaction processor that stores the transactions into a file by example), the transaction processor action will not be rolled back.

Inverse Rate (Check Limit)

What is the maximum quantity of service I can consume based on an amount?

Session-Based Charging Operations

SAP Convergent Charging can provide charging services for service usage information that is based on consumption sessions. Session-based charging operations are only available in real-time enviroment to implement online charging service in your system landscape.

Session-Based Charge (Online Service)

Additional Information

Consult the SAP CC Application Help for more information about the convergent charging services, the implementation scenario variants, and the charging and activation processes.

Skip navigation links
Document Published: November 2017 (SAP CC 5.0 SP 0 and Later)