1、 ETSI ES 203 915-12 V1.2.1 (2007-01)ETSI Standard Open Service Access (OSA);Application Programming Interface (API);Part 12: Charging SCF(Parlay 5)floppy3 ETSI ETSI ES 203 915-12 V1.2.1 (2007-01) 2 Reference RES/TISPAN-01029-12-OSA Keywords API, IDL, OSA, UML ETSI 650 Route des Lucioles F-06921 Soph
2、ia Antipolis Cedex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N 348 623 562 00017 - NAF 742 C Association but non lucratif enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice Individual copies of the present document can be downloaded from: http:/www.etsi.org Th
3、e present document may be made available in more than one electronic version or in print. In any case of existing or perceived difference in contents between such versions, the reference version is the Portable Document Format (PDF). In case of dispute, the reference shall be the printing on ETSI pr
4、inters of the PDF version kept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision or change of status. Information on the current status of this and other ETSI documents is available at http:/portal.etsi.org
5、/tb/status/status.asp If you find errors in the present document, please send your comment to one of the following services: http:/portal.etsi.org/chaircor/ETSI_support.asp Copyright Notification No part may be reproduced except as authorized by written permission. The copyright and the foregoing re
6、striction extend to reproduction in all media. European Telecommunications Standards Institute 2007. The Parlay Group 2007. All rights reserved. DECTTM, PLUGTESTSTM and UMTSTM are Trade Marks of ETSI registered for the benefit of its Members. TIPHONTMand the TIPHON logo are Trade Marks currently bei
7、ng registered by ETSI for the benefit of its Members. 3GPPTM is a Trade Mark of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners. ETSI ETSI ES 203 915-12 V1.2.1 (2007-01) 3 Contents Intellectual Property Rights7 Foreword.7 1 Scope 8 2 References 8 3 Definitions
8、and abbreviations.8 3.1 Definitions8 3.2 Abbreviations .8 4 Charging SCF.9 4.1 General requirements on support of methods.9 5 Sequence Diagrams 9 5.1 Reservation / payment in parts .9 5.2 Immediate Charge 11 6 Class Diagrams.13 7 The Service Interface Specifications14 7.1 Interface Specification For
9、mat .14 7.1.1 Interface Class 14 7.1.2 Method descriptions15 7.1.3 Parameter descriptions15 7.1.4 State Model.15 7.2 Base Interface.15 7.2.1 Interface Class IpInterface 15 7.3 Service Interfaces .15 7.3.1 Overview 15 7.4 Generic Service Interface .15 7.4.1 Interface Class IpService 15 7.4.1.1 Method
10、 setCallback()16 7.4.1.2 Method setCallbackWithSessionID()16 8 Charging Interface Classes.17 8.1 Interface Class IpChargingManager.17 8.1.1 Method createChargingSession()18 8.1.2 Method createSplitChargingSession() 19 8.2 Interface Class IpAppChargingManager 19 8.2.1 Method sessionAborted()20 8.2.2
11、Method abortMultipleChargingSessions() .20 8.3 Interface Class IpChargingSession.20 8.3.1 Method creditAmountReq()21 8.3.2 Method creditUnitReq()22 8.3.3 Method debitAmountReq().23 8.3.4 Method debitUnitReq().23 8.3.5 Method directCreditAmountReq()24 8.3.6 Method directCreditUnitReq()24 8.3.7 Method
12、 directDebitAmountReq().25 8.3.8 Method directDebitUnitReq().26 8.3.9 Method extendLifeTimeReq() 26 8.3.10 Method getAmountLeft()26 8.3.11 Method getLifeTimeLeft()27 8.3.12 Method getUnitLeft()27 8.3.13 Method rateReq()27 8.3.14 Method release() .28 8.3.15 Method reserveAmountReq() .28 8.3.16 Method
13、 reserveUnitReq() .29 ETSI ETSI ES 203 915-12 V1.2.1 (2007-01) 4 8.4 Interface Class IpAppChargingSession29 8.4.1 Method creditAmountErr() .30 8.4.2 Method creditAmountRes() 31 8.4.3 Method creditUnitErr().31 8.4.4 Method creditUnitRes() 31 8.4.5 Method debitAmountErr() 32 8.4.6 Method debitAmountRe
14、s() .32 8.4.7 Method debitUnitErr() 33 8.4.8 Method debitUnitRes() .33 8.4.9 Method directCreditAmountErr() .33 8.4.10 Method directCreditAmountRes() 34 8.4.11 Method directCreditUnitErr() .34 8.4.12 Method directCreditUnitRes() 34 8.4.13 Method directDebitAmountErr() 35 8.4.14 Method directDebitAmo
15、untRes() .35 8.4.15 Method directDebitUnitErr() 35 8.4.16 Method directDebitUnitRes() .36 8.4.17 Method extendLifeTimeErr()36 8.4.18 Method extendLifeTimeRes().36 8.4.19 Method rateErr() .37 8.4.20 Method rateRes() 37 8.4.21 Method reserveAmountErr().37 8.4.22 Method reserveAmountRes()37 8.4.23 Meth
16、od reserveUnitErr().38 8.4.24 Method reserveUnitRes()38 8.4.25 Method sessionEnded().39 9 State Transition Diagrams40 9.1 State Transition Diagrams for IpChargingSession .40 9.1.1 Session Created State41 9.1.2 Amount Reserved State 41 9.1.3 Volume Reserved State.41 9.1.4 Reservation Ended State .41
17、10 Content Based Charging Service Properties.41 11 Data Definitions .43 11.1 Charging Data Definitions43 11.1.1 IpChargingManager43 11.1.2 IpChargingManagerRef 43 11.1.3 IpAppChargingManager .43 11.1.4 IpAppChargingManagerRef .43 11.1.5 IpChargingSession43 11.1.6 IpChargingSessionRef 43 11.1.7 IpApp
18、ChargingSession .43 11.1.8 IpAppChargingSessionRef .43 11.1.9 TpApplicationDescription 44 11.1.10 TpAppInformationSet.44 11.1.11 TpAppInformation44 11.1.12 TpAppInformationType44 11.1.13 TpSessionEndedCause44 11.1.14 TpMerchantAccountID.44 11.1.15 TpCorrelationID .45 11.1.16 TpCorrelationType45 11.1
19、.17 TpChargingPrice.45 11.1.18 TpAmount.45 11.1.19 TpChargingParameterSet45 11.1.20 TpChargingParameter.45 11.1.21 TpChargingParameterID.46 11.1.22 TpChargingParameterValue .46 11.1.23 TpChargingParameterValueType .46 11.1.24 TpVolumeSet46 11.1.25 TpVolume.46 ETSI ETSI ES 203 915-12 V1.2.1 (2007-01)
20、 5 11.1.26 TpUnitID 47 11.1.27 TpChargingSessionID.47 11.1.28 TpPriceVolumeSet47 11.1.29 TpPriceVolume.47 11.1.30 TpChargingError.47 12 Exception Classes.48 Annex A (normative): OMG IDL Description of Charging SCF.49 Annex B (informative): W3C WSDL Description of Charging SCF.50 Annex C (informative
21、): Java API Description of the Charging SCF 51 Annex D (informative): Contents of 3GPP OSA R6 Charging.52 Annex E (informative): Description of Charging for 3GPP2 cdma2000 networks 53 E.1 General Exceptions.53 E.2 Specific Exceptions53 E.2.1 Clause 1: Scope 53 E.2.2 Clause 2: References 53 E.2.3 Cla
22、use 3: Definitions and abbreviations.53 E.2.4 Clause 4: Charging SCF .53 E.2.5 Clause 5: Sequence Diagrams 53 E.2.6 Clause 6: Class Diagrams.53 E.2.7 Clause 7: The Service Interface Specifications 53 E.2.8 Clause 8: Charging Interface Classes .54 E.2.9 Clause 9: State Transition Diagrams 54 E.2.10 C
23、lause 10: Content Based Charging Service Properties.54 E.2.11 Clause 11: Data Definitions54 E.2.12 Clause 12: Exception Classes.54 E.2.13 Annex A (normative): OMG IDL Description of Charging SCF .54 E.2.14 Annex B (informative): W3C WSDL Description of Charging SCF .54 E.2.15 Annex C (informative):
24、Java API Description of the Charging SCF .54 Annex F (informative): Record of changes 55 F.1 Interfaces 55 F.1.1 New 55 F.1.2 Deprecated55 F.1.3 Removed.55 F.2 Methods55 F.2.1 New 55 F.2.2 Deprecated56 F.2.3 Modified.56 F.2.4 Removed.56 F.3 Data Definitions .56 F.3.1 New 56 F.3.2 Modified.56 F.3.3 R
25、emoved.57 F.4 Service Properties.57 F.4.1 New 57 F.4.2 Deprecated57 F.4.3 Modified.57 F.4.4 Removed.57 F.5 Exceptions 58 F.5.1 New 58 F.5.2 Modified.58 F.5.3 Removed.58 ETSI ETSI ES 203 915-12 V1.2.1 (2007-01) 6 F.6 Others .58 History 59 ETSI ETSI ES 203 915-12 V1.2.1 (2007-01) 7 Intellectual Proper
26、ty Rights IPRs essential or potentially essential to the present document may have been declared to ETSI. The information pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found in ETSI SR 000 314: “Intellectual Property Rights (IPRs); Ess
27、ential, or potentially Essential, IPRs notified to ETSI in respect of ETSI standards“, which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web server (http:/webapp.etsi.org/IPR/home.asp). Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, ha
28、s been carried out by ETSI. No guarantee can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web server) which are, or may be, or may become, essential to the present document. Foreword This ETSI Standard (ES) has been produced by ETSI Technic
29、al Committee Telecommunications and Internet converged Services and Protocols for Advanced Networking (TISPAN). The present document is part 12 of a multi-part deliverable covering Open Service Access (OSA); Application Programming Interface (API), as identified below. The API specification (ES 203
30、915) is structured in the following parts: Part 1: “Overview“; Part 2: “Common Data Definitions“; Part 3: “Framework“; Part 4: “Call Control“; Part 5: “User Interaction SCF“; Part 6: “Mobility SCF“; Part 7: “Terminal Capabilities SCF“; Part 8: “Data Session Control SCF“; Part 9: “Generic Messaging S
31、CF“; Part 10: “Connectivity Manager SCF“; Part 11: “Account Management SCF“; Part 12: “Charging SCF“; Part 13: “Policy Management SCF“; Part 14: “Presence and Availability Management SCF“; Part 15: “Multi-Media Messaging SCF“. The present document has been defined jointly between ETSI, The Parlay Gr
32、oup (http:/www.parlay.org) and the 3GPP, in co-operation with a number of JAIN Community (http:/ member companies. The present document forms part of the Parlay 5.1 set of specifications. The present document is equivalent to 3GPP TS 29.198-12 V6.5.0 (Release 6). ETSI ETSI ES 203 915-12 V1.2.1 (2007
33、-01) 8 1 Scope The present document is part 12 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA). The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardise
34、d interface, i.e. the OSA APIs. The present document specifies the Charging Service Capability Feature (SCF) aspects of the interface. All aspects of the Charging SCF are defined here, these being: Sequence Diagrams. Class Diagrams. Interface specification plus detailed method descriptions. State Tr
35、ansition diagrams. Data Definitions. IDL Description of the interfaces. WSDL Description of the interfaces. Reference to the Java API description of the interfaces. The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Lan
36、guage (UML). 2 References The references listed in clause 2 of ES 203 915-1 contain provisions which, through reference in this text, constitute provisions of the present document. ETSI ES 203 915-1: “Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 5)“. 3
37、 Definitions and abbreviations 3.1 Definitions For the purposes of the present document, the terms and definitions given in ES 203 915-1 apply. 3.2 Abbreviations For the purposes of the present document, the abbreviations given in ES 203 915-1 apply. ETSI ETSI ES 203 915-12 V1.2.1 (2007-01) 9 4 Char
38、ging SCF The following clauses describe each aspect of the Charging Service Capability Feature (SCF). The order is as follows: The Sequence diagrams give the reader a practical idea of how each of the SCF is implemented. The Class relationships clause shows how each of the interfaces applicable to t
39、he SCF, relate to one another. The Interface specification clause describes in detail each of the interfaces shown within the Class diagram part. The State Transition Diagrams (STD) show the transition between states in the SCF. The states and transitions are well-defined; either methods specified i
40、n the Interface specification or events occurring in the underlying networks cause state transitions. The Data Definitions clause shows a detailed expansion of each of the data types associated with the methods within the classes. Note that some data types are used in other methods and classes and a
41、re therefore defined within the Common Data types part ES 203 915-2. 4.1 General requirements on support of methods An implementation of this API which supports or implements a method described in the present document, shall support or implement the functionality described for that method, for at le
42、ast one valid set of values for the parameters of that method. Where a method is not supported by an implementation of a Service interface, the exception P_METHOD_NOT_SUPPORTED shall be returned to any call of that method. Where a method is not supported by an implementation of an Application interf
43、ace, a call to that method shall be possible, and no exception shall be returned. 5 Sequence Diagrams 5.1 Reservation / payment in parts The sequence diagram illustrates how to request a reservation and how to charge a user from the reserved amount, for instance to charge a user for a streamed video
44、 which lasts 10 minutes and costs a total of $ 2,00. The operations and interfaces that do not provide rating are employed throughout this sequence diagram. We assume the application has already discovered the Charging SCF. As a result, the application received an object reference pointing to an obj
45、ect that implements the IpChargingManager interface. The operations which handle units are used exactly the same, except that the amount of application usage is indicated instead of a price. ETSI ETSI ES 203 915-12 V1.2.1 (2007-01) 10Application : IpChargingSession : IpChargingManager : IpAppChargin
46、gSession1: new()2: createChargingSession( )3: new()4: reserveAmountReq( )5: reserveAmountRes( )6: forward event()7: debitAmountReq( )8: debitAmountRes( )9: forward event()10: getLifeTimeLeft( )11: extendLifeTimeReq( )12: ex tendLifeTimeRes ( )13: forward event()14: debitAmountReq( )15: debitAmountRe
47、s( )16: forward event()17: release( )1: The application creates a local object implementing the IpAppChargingSession interface. This object will receive response messages from the IpChargingSession object. 2: The application opens a charging session, a reference to a new or existing object implement
48、ing IpChargingSession is returned together with a unique session ID. ETSI ETSI ES 203 915-12 V1.2.1 (2007-01) 113: In this case a new object is used. 4: The application requests the reservation of $ 2,00. 5: Assuming the criteria for requesting a reservation are met (the application provider has per
49、mission to charge the requested amount, the charged user has agreed to pay the requested amount), the amount is reserved in the session. At this point, the application provider knows that the network operator will accept later debit requests up to the reserved amount. So, the application may start serving the user, for instance by sending the video stream. 6: The successful reservation is reported back to the application. After half of the video has been sent to the user, the application may choose to