CN107846300A - A kind of method and device that business interface is provided - Google Patents

A kind of method and device that business interface is provided Download PDF

Info

Publication number
CN107846300A
CN107846300A CN201610838823.0A CN201610838823A CN107846300A CN 107846300 A CN107846300 A CN 107846300A CN 201610838823 A CN201610838823 A CN 201610838823A CN 107846300 A CN107846300 A CN 107846300A
Authority
CN
China
Prior art keywords
service
services package
business
access
business interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610838823.0A
Other languages
Chinese (zh)
Other versions
CN107846300B (en
Inventor
王业科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610838823.0A priority Critical patent/CN107846300B/en
Publication of CN107846300A publication Critical patent/CN107846300A/en
Application granted granted Critical
Publication of CN107846300B publication Critical patent/CN107846300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The invention provides a kind of method and device for providing business interface, wherein, method is applied to system platform, including:Receive the services package being registered in system platform;According to services package, the business interface for access service bag is obtained, and business interface is recorded in system platform.The embodiment of the present invention solves the problems, such as that the flexibility ratio of exploitation business caused by service developer restricted service fixation access interface in the prior art is relatively low.

Description

A kind of method and device that business interface is provided
Technical field
The present invention relates to communication technical field, more particularly, to a kind of method and device for providing business interface.
Background technology
With the development of information age, telecommunication capability business, mobile Internet value-added service, the exploitation of intelligent network traffic services It is ripe day by day.With the requirement more and more higher of business access method, the complexity and service developer of original service access interface It is required that the contradiction of construction cycle is on the rise, therefore, in order to shorten the business development cycle of service developer, it is necessary to be connect to business Enter method to be simplified, so that service developer accesses exploitation business easily and fast, delivered so as to reduce business development Cost.In addition, from prior art, traditional telecommunication capability business, mobile Internet value-added service and intelligent network traffic industry Business access is all the fixed interface pattern customized, and service developer must be according to service access side complicated as defined in operator Method carries out service access, and this brings inconvenience to service developer, reduces the flexibility ratio of business development;In addition, communication Interface is defined and fixed by system mostly, equally adds the difficulty of service access.
The content of the invention
The present invention provides a kind of method and device for providing business interface, is limited with solving service developer in the prior art The problem of business development flexibility ratio caused by business fixes access interface is relatively low.
In a first aspect, the present invention provides a kind of method for providing business interface, applied to a system platform, including:
Receive the services package being registered in the system platform;
According to the services package, the business interface for accessing the services package is obtained, and the business interface is recorded In the system platform.
Alternatively, the business interface is uniform resource position mark URL, and the services package pair is carried in the URL The service name and service action answered.
Alternatively, the services package includes:For the jar file for the service access message for handling user's transmission;For referring to The xml document of output parameter corresponding to service action corresponding to the fixed services package title, the services package and the services package; For the jar file of specifying the services package filename and the services package xml document filename Service.properties files.
Alternatively, according to the services package, the business interface for accessing the services package is obtained, and the business is connect Mouth is recorded in after the step in the system platform, and methods described also includes:Call the business interface to receive user to send Service access message, wherein, carried in the service access message service access mark and service inquiry information needed;Root Identified according to service name corresponding to the services package and the service access, access the services package;According to the service inquiry Service action corresponding to information needed and the services package, obtain business output valve corresponding with the service inquiry information;It is defeated Go out the business output valve.
Alternatively, the service access mark includes service identification, matching code mark or session identification.
Second aspect, the invention provides a kind of device for providing business interface, applied to a system platform, described device Including:
Receiving module, for receiving the services package being registered in the system platform;
First acquisition module, for according to the services package, obtaining the business interface for accessing the services package, and incite somebody to action The business interface is recorded in the system platform.
Alternatively, the business interface is uniform resource position mark URL, and the services package pair is carried in the URL The service name and service action answered.
Alternatively, the services package includes:For the jar file for the service access message for handling user's transmission;For referring to The xml document of output parameter corresponding to service action corresponding to the fixed services package title, the services package and the services package; For the jar file of specifying the services package filename and the services package xml document filename Service.properties files.
Alternatively, described device also includes:Calling module, for calling the business interface to receive the business that user sends Message is accessed, wherein, service access mark and service inquiry information needed are carried in the service access message;Access mould Block, identified for the service name according to corresponding to the services package and the service access, access the services package;Second obtains Module, for the service action according to corresponding to the service inquiry information needed and the services package, acquisition is looked into the business Ask business output valve corresponding to information;Output module, for exporting the business output valve.
Alternatively, the service access mark includes service identification, matching code mark or session identification.
The beneficial effects of the invention are as follows:
The present invention, according to the services package received, obtains user by receiving the services package being registered in system platform The business interface of access service bag, and the business interface is recorded in system platform so that service developer can be according to certainly The development scheme of body custom, according to the self-defined exploitation business interface of development specifications, and should by way of registration service bag Self-defined business interface is provided in system platform so that user can be avoided by calling the business interface access service bag Service developer must carry out service access according to business access method complicated as defined in operator, improve business development Person develops the flexibility ratio of business, solves exploitation industry caused by service developer restricted service in the prior art fixes access interface The problem of flexibility ratio of business is relatively low.
Brief description of the drawings
Fig. 1 represents to provide the flow chart of the method for business interface in the first embodiment of the present invention;
Fig. 2 represents the schematic diagram for the business interface that services package provides in system platform;
Fig. 3 represents to provide the structured flowchart of the device of business interface in the second embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
First embodiment:
As shown in figure 1, to provide the flow chart of the method for business interface, this method application in the first embodiment of the present invention In a system platform, this method includes:
Step 101, the services package being registered in system platform is received.
Specifically, after service developer has developed business, the services package in the business packet developed can be registered to In system platform, and business packet is deployed in system platform.Wherein, business packet includes multiple services packages and multiple services packages Between incidence relation, services package is the element of finishing service function, such as the function that services package includes can be telecommunication capability (short message, multimedia message) issue, access external resource (such as Light Directory Access Protocol server, Website server and database), The assembly of message and parsing and recording call list etc..Incidence relation between multiple services packages can include unconditional line and connect Connect, condition line connects, the connection of abnormal line and overtime line connect.Wherein, unconditional line is connected as a services package The connection of next services package can be unconditionally connected to;When condition line is connected as meeting a preparatory condition, a upper services package can To be connected to the connection of next services package;Abnormal line be connected as one service occur it is abnormal when, it is upper one service by off path It is connected to the connection of next services package;Overtime line is connected as a services package and ext nal network element interaction time more than a default threshold During value, a upper service is connected to the connection of next services package by overtime path.So, after the completion of business packet exploitation, business is opened Business packet can be deployed in system platform by originator, and the services package in business packet is registered in system platform.
Now, in this step, system platform receives the services package being registered in system platform.In addition, specifically, registration Services package on to system platform includes three files such as jar file, xml document and service.properties files, its In, jar file be used for handle user transmission service access message, xml document be used for specify the services package services package title, Output parameter corresponding to service action corresponding to services package and services package, service.properties files are used for specified services The filename of the filename of the jar file of bag and the xml document of services package.
Step 102, according to services package, the business interface for access service bag is obtained, and business interface is recorded in and is Unite on platform.
In this step, specifically, each services package corresponding one accesses the business interface of the services package.As shown in Fig. 2 When first service bag is registered in system platform, the first business corresponding to first service bag that can be provided in system platform connects Mouthful;When second service bag is registered in system platform, the second industry corresponding to second service bag can be provided in system platform Business interface, the like, when each services package is registered in system platform, can be provided in system platform and services package pair The business interface answered.In addition, when system platform receives the services package of registration, it can obtain and use according to the services package of registration It is recorded in the business interface of access service bag, and by the business interface in system platform.So, can be integrated in system platform And record traffic developer adds service developer and opened according to the business interface of the self-defined exploitation of the development scheme itself being accustomed to The flexibility ratio of sending service.
Specifically, the business interface can be URL (URL), i.e. the business interface can be with URL side Formula is recorded in system platform, and service name corresponding to services package and service action are carried in the URL.For example, when access The business interface of one services package is:“http://ip:port/udt-see/rest/uplinks/ During { uplinkServiceName }/{ uplinkServiceActionName } ", " uplinkServiceName " connects for business Service name corresponding to the services package that mouth carries, " uplinkServiceActionName " are the services package that business interface carries Corresponding service action.Wherein, service action corresponding to services package is the incidence relation between multiple services packages in business packet. So, when user needs access service, system platform can call URL to receive the service access message that user sends, due to Service name corresponding to services package and service action are carried in URL, therefore user can access the clothes according to the service name Node of the business bag in business packet, and it is relevant with the services package according to service action, i.e. incidence relation between services package, access Next services package of connection relation, until operation flow terminates.
So, the embodiment of the present invention obtains user and accesses clothes according to the services package being registered in system platform received The business interface of business bag, and the business interface is recorded in system platform so that service developer can be accustomed to according to itself The self-defined exploitation business interface of development scheme, and the self-defined business interface is provided by way of registration service bag In system platform so that user can avoid industry by calling the business interface access service bag provided in system platform Business developer must improve service developer exploitation industry according to service access mode access service complicated as defined in operator The flexibility ratio of business, solve the flexible of exploitation business caused by service developer restricted service fixes access interface in the prior art Spend the problem of relatively low.
Optionally, in addition, in system platform according to services package, the business interface for access service bag is obtained, and by industry After business interface is recorded in system platform, system platform may call upon the service access that business interface reception user sends and disappear Breath, wherein, service access mark and service inquiry information needed are carried in service access message;Then it is corresponding according to services package Service name and service access mark, access service bag;And the service according to corresponding to service inquiry information needed and services package Action, obtain business output valve corresponding with service inquiry information;Last outgoing traffic output valve.Specifically, in system platform When calling business interface receives the service access message of user's transmission, the service access message can be parsed, the business of obtaining connects Inlet identity and service inquiry information needed, and the service access mark that parsing is obtained is assigned to system platform engine variable, should Platform engine variable is used to start business, and the service inquiry information that parsing obtains is assigned to the service output variable of services package, So that services package can carry out service inquiry according to the service inquiry information.
Specifically, the service access mark carried in service access message includes service identification, matching code mark or session Mark.
Below, service access mark is described in detail.
In service access mark, service identification is that service developer is allocated in the business of exploitation, and business mark Knowledge has uniqueness in system platform.So, when calling business interface to receive service access message, if service access disappears The service identification carried in breath with business when the service identification in system platform is consistent, can with corresponding to access service title clothes Service node of the business bag in business packet.Matching code mark is directed to telecommunication capability or value-added service point multicast function, is put down in system When platform receives broadcast messages, broadcast messages can identify matched and searched business by matching code, and after business is found, connect Enter and trigger business.So, when calling business interface to receive service access message, can be arrived according to matching code identifier lookup The service identification matched with matching code mark, and when service identification is consistent in the service identification in system platform with business, connect Enter service node of the services package corresponding to service name in business packet.In addition, the services package in a business can configure it is more Individual matching code mark, but each matching code mark is respectively provided with uniqueness in system platform, in such manner, it is possible to ensure broadcast messages It can normally be identified by matching code and access and trigger business.Session identification is mainly used in traffic services, traffic it is dynamic Work includes call, jingle bell, off-hook, the heartbeat of communication process and on-hook etc..One traffic need repeatedly access start or Multiple to act to complete, therefore, in order to ensure the integrality and atomicity of a traffic data, a traffic is had at one Performed in session, i.e., session identification is needed with uniqueness in system platform.So, business interface is being called to receive business When accessing message, the service identification matched with session identification can be found according to session identification, and in service identification and business When the service identification in system platform is consistent, service node of the services package in business packet corresponding to access service title.
In addition, specifically, in outgoing traffic output valve, can be according to the default way of output, outgoing traffic output valve.Its In, the default way of output can include synchronism output mode and be output asynchronously mode.Specifically, synchronism output mode is, it is being System platform calls business interface to receive the service access message of user's transmission, and accesses triggering business and operation flow is all complete Into afterwards, the mode of outgoing traffic output valve;The mode of being output asynchronously is to call business interface to receive user's hair in system platform During the service access message sent, the mode of outgoing traffic output valve in the same time.
So, the embodiment of the present invention obtains user's access according to the services package being registered in system platform received The business interface of services package, and after the business interface is recorded in into system platform, business interface can be passed through and call user to send out The service access message sent, and service access and service inquiry are carried out according to service access message and service access interface, and it is defeated Go out business output valve so that service developer can be according to the development scheme itself being accustomed to, according to the self-defined exploitation of development specifications Business interface, and provided the self-defined business interface in system platform by way of registration service bag, and can make Obtaining user can be by calling the business interface access service bag, and avoiding service developer must be according to multiple as defined in operator Miscellaneous business access method carries out service access, improves the flexibility ratio of service developer exploitation business, solves prior art The problem of flexibility ratio of exploitation business is relatively low caused by middle service developer restricted service fixes access interface.
Second embodiment:
As shown in figure 3, to provide the structured flowchart of the device of business interface, the device bag in the second embodiment of the present invention Include:
Receiving module 301, for receiving the services package being registered in system platform;
First acquisition module 302, for according to services package, obtaining the business interface for access service bag, and by business Interface is recorded in system platform.
Alternatively, the business interface is uniform resource position mark URL, and the services package pair is carried in the URL The service name and service action answered.
Alternatively, services package includes:For the jar file for the service access message for handling user's transmission;For specifying clothes The xml document of output parameter corresponding to service action corresponding to business bag title, services package and services package;For specified services bag The service.properties files of the filename of the filename of jar file and the xml document of services package.
Alternatively, device also includes:Calling module, disappear for calling business interface to receive the service access of user's transmission Breath, wherein, service access mark and service inquiry information needed are carried in service access message;AM access module, for basis Service name corresponding to services package and service access mark, access service bag;Second acquisition module, for according to service inquiry institute Service action corresponding to information and services package is needed, obtains business output valve corresponding with service inquiry information;Output module, it is used for Outgoing traffic output valve.
Alternatively, service access mark includes service identification, matching code mark or session identification.
So, the embodiment of the present invention receives the services package being registered in system platform by receiving module, and passes through first Acquisition module obtains the business interface for access service bag, and the business interface is recorded in into system and put down according to the services package On platform so that service developer can according to the development scheme itself being accustomed to, according to the self-defined exploitation business interface of development specifications, Service access must be carried out according to business access method complicated as defined in operator by avoiding service developer, improve business Developer develops the flexibility ratio of business, solves service developer restricted service in the prior art and is opened caused by fixing access interface The problem of flexibility ratio of sending service is relatively low.
Above-described is the preferred embodiment of the present invention, it should be pointed out that is come for the ordinary person of the art Say, some improvements and modifications can also be made under the premise of principle of the present invention is not departed from, and these improvements and modifications also exist In protection scope of the present invention.

Claims (10)

  1. A kind of 1. method that business interface is provided, applied to a system platform, it is characterised in that methods described includes:
    Receive the services package being registered in the system platform;
    According to the services package, the business interface for accessing the services package is obtained, and the business interface is recorded in institute State in system platform.
  2. 2. according to the method for claim 1, it is characterised in that the business interface is uniform resource position mark URL, and institute State and service name and service action corresponding to the services package are carried in URL.
  3. 3. according to the method for claim 1, it is characterised in that the services package includes:
    For the jar file for the service access message for handling user's transmission;
    For specifying the services package title, output parameter corresponding to service action corresponding to the services package and the services package Xml document;
    For the jar file of specifying the services package filename and the services package xml document filename Service.properties files.
  4. 4. according to the method for claim 1, it is characterised in that according to the services package, obtain for accessing the service The business interface of bag, and the business interface is recorded in after the step in the system platform, methods described also includes:
    The business interface is called to receive the service access message that user sends, wherein, carried in the service access message Service access identifies and service inquiry information needed;
    Identified according to service name corresponding to the services package and the service access, access the services package;
    According to service action corresponding to the service inquiry information needed and the services package, obtain and the service inquiry information Corresponding business output valve;
    Export the business output valve.
  5. 5. according to the method for claim 4, it is characterised in that the service access mark includes service identification, matching code Mark or session identification.
  6. A kind of 6. device that business interface is provided, applied to a system platform, it is characterised in that described device includes:
    Receiving module, for receiving the services package being registered in the system platform;
    First acquisition module, for according to the services package, obtaining the business interface for accessing the services package, and will described in Business interface is recorded in the system platform.
  7. 7. device according to claim 6, it is characterised in that the business interface is uniform resource position mark URL, and institute State and service name and service action corresponding to the services package are carried in URL.
  8. 8. device according to claim 6, it is characterised in that the services package includes:For handling the industry of user's transmission The jar file of business access message;For specifying the services package title, service action and the service corresponding to the services package The xml document of output parameter corresponding to bag;Filename and the services package for the jar file of specifying the services package The service.properties files of the filename of xml document.
  9. 9. device according to claim 6, it is characterised in that described device also includes:
    Calling module, for calling the business interface to receive the service access message that user sends, wherein, the service access Service access mark and service inquiry information needed are carried in message;
    AM access module, identified for the service name according to corresponding to the services package and the service access, access the service Bag;
    Second acquisition module, for the service action according to corresponding to the service inquiry information needed and the services package, obtain Business output valve corresponding with the service inquiry information;
    Output module, for exporting the business output valve.
  10. 10. device according to claim 9, it is characterised in that the service access mark includes service identification, matching code Mark or session identification.
CN201610838823.0A 2016-09-21 2016-09-21 Method and device for providing service interface Active CN107846300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610838823.0A CN107846300B (en) 2016-09-21 2016-09-21 Method and device for providing service interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610838823.0A CN107846300B (en) 2016-09-21 2016-09-21 Method and device for providing service interface

Publications (2)

Publication Number Publication Date
CN107846300A true CN107846300A (en) 2018-03-27
CN107846300B CN107846300B (en) 2022-09-16

Family

ID=61657515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610838823.0A Active CN107846300B (en) 2016-09-21 2016-09-21 Method and device for providing service interface

Country Status (1)

Country Link
CN (1) CN107846300B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115883668A (en) * 2022-11-29 2023-03-31 广发银行股份有限公司 Traffic scheduling platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232371A (en) * 2007-01-24 2008-07-30 中兴通讯股份有限公司 Verification method of digital signature under stream media business level networking architecture
CN101976199A (en) * 2010-10-15 2011-02-16 德讯科技股份有限公司 Object-oriented middleware distributed system development platform
CN102137136A (en) * 2010-08-13 2011-07-27 华为技术有限公司 Method, device and equipment for realizing Mashup business in business integration
US20120173692A1 (en) * 2010-12-30 2012-07-05 Jesse Lakes Redirection Service
CN103095479A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Method and device of business configuration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232371A (en) * 2007-01-24 2008-07-30 中兴通讯股份有限公司 Verification method of digital signature under stream media business level networking architecture
CN102137136A (en) * 2010-08-13 2011-07-27 华为技术有限公司 Method, device and equipment for realizing Mashup business in business integration
CN101976199A (en) * 2010-10-15 2011-02-16 德讯科技股份有限公司 Object-oriented middleware distributed system development platform
US20120173692A1 (en) * 2010-12-30 2012-07-05 Jesse Lakes Redirection Service
CN103095479A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Method and device of business configuration

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115883668A (en) * 2022-11-29 2023-03-31 广发银行股份有限公司 Traffic scheduling platform
CN115883668B (en) * 2022-11-29 2023-10-20 广发银行股份有限公司 Telephone traffic scheduling platform

Also Published As

Publication number Publication date
CN107846300B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
JP4673369B2 (en) Method and apparatus for providing correlation means in a hybrid communication network
US7793305B2 (en) Methods and systems for providing a communication manager for wireless wireline converged telecommunication services
JP4713505B2 (en) Apparatus for acquiring logical tree information of mobile node and accompanying method
CN101027894B (en) A method and apparatus for multimedia communication
US20060029048A1 (en) Method to optimally select bandwidth and priority for voice message packets in a voice over IP network
US6055424A (en) Intelligent terminal application protocol
US20060234703A1 (en) Method for displaying special alerting icon
JPH10336325A (en) Network independent communication system
US8027456B1 (en) Method and system for providing call tones service in a system with multiple media content providers
EP2107716B1 (en) Automatic configuration of a network device by an automatic configuration server by means of a Remote Management Protocol
WO2014139270A1 (en) Business implementation method and apparatus for intelligent business system, and intelligent business system
CN110035040B (en) Method and device for signaling addressing
CN104247473B (en) Terminal device, interactive voice answering equipment, missed call system for prompting and method
CN116636199A (en) Call processing method, call processing device and related equipment
CN105704684B (en) Method, device, server and system for implementing color ring back tone
RU2502225C2 (en) Service processing method, communication system and corresponding devices
Patel et al. A technique for multi-network access to multimedia messages
CN107846300A (en) A kind of method and device that business interface is provided
US7894834B1 (en) Method and system to facilitate multiple media content providers to inter-work with media serving system
CN110086945A (en) Communication means, server, smart machine, server, storage medium
US7043227B2 (en) Data conversion in telecommunication systems
CN106686582A (en) Fixed line telephone number mobility achieving method and system
CN107852577A (en) A kind of supplementary service implementation method, terminal device and IMS service device
CN101729436A (en) Method for acquiring messages and convergence message service system
US7653182B2 (en) Method of managing personal data about users of voice services and an application server for executing the method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant