CN109246078A - A kind of data interactive method and server - Google Patents

A kind of data interactive method and server Download PDF

Info

Publication number
CN109246078A
CN109246078A CN201810868900.6A CN201810868900A CN109246078A CN 109246078 A CN109246078 A CN 109246078A CN 201810868900 A CN201810868900 A CN 201810868900A CN 109246078 A CN109246078 A CN 109246078A
Authority
CN
China
Prior art keywords
information
service
service provider
data
demand information
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
CN201810868900.6A
Other languages
Chinese (zh)
Other versions
CN109246078B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810868900.6A priority Critical patent/CN109246078B/en
Publication of CN109246078A publication Critical patent/CN109246078A/en
Application granted granted Critical
Publication of CN109246078B publication Critical patent/CN109246078B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention is suitable for field of computer technology, provides a kind of data interactive method and server, this method comprises: receiving the demand information that terminal is sent;Demand information includes the information on services of the destination service of identity and the request of terminal;Information and preset configuration information according to demand, the determining matched access information of information on services with the destination service in demand information;Configuration information includes the access address with the service identifiers and every kind of preset service of the available preset service of the service provider of access authority;Demand information is handled based on matched access information;The identity in information returns to target data according to demand;Target data includes the corresponding processing result of demand information, or the target data that acquisition of information arrives according to demand.Terminal can carry out data interaction by the service provider of the server and outer net in the embodiment of the present invention, can save repetition and open the time consumed by access authority, improve data-handling efficiency.

Description

A kind of data interactive method and server
Technical field
The invention belongs to field of computer technology more particularly to a kind of data interactive methods and server.
Background technique
During system development (such as insurance business system), developer needs frequently to access outside by terminal System to obtain data from external system, or calls certain functions of external system.Wherein, what developer was usually used is The network of enterprises, external system need to access by outer net.
Since the network environment of Intranet and the network environment of outer net have a certain difference, developer passes through When terminal access external system, need to be related to the opening of firewall, coordinate internal staff and the related personnel of external system into Row joint debugging, docking process CIMS is cumbersome, and the time for needing to spend is longer and easy error.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of data interactive method and server, to solve in the prior art, Since the network environment of Intranet and the network environment of outer net have a certain difference, developer passes through terminal access When external system, need to be related to the related personnel's progress joint debugging of firewall opened, coordinate internal staff and external system, it is right Connect that process CIMS is cumbersome, the problem of time for needing to spend is longer and easy error.
The first aspect of the embodiment of the present invention provides a kind of data interactive method, comprising:
Receive the demand information that terminal is sent;Wherein, the demand information includes the identity and request of terminal The information on services of destination service;The information on services identifies the service identifiers of the destination service or the destination service and can realize Function;
According to the demand information and preset configuration information, the determining destination service with the demand information The matched access information of information on services;Wherein, the configuration information includes that there is the service provider of access authority can provide Preset service service identifiers and every kind of preset service access address;The access authority is according in business development The network security policy of each service provider to be visited is configured in the process;Based on the matched access information to institute Demand information is stated to be handled;
Target data is returned according to the identity in the demand information;Wherein, the target data includes institute State the corresponding processing result of demand information, or the target data got according to the demand information.
The second aspect of the embodiment of the present invention provides a kind of server, including memory, processor and is stored in institute The computer program that can be run in memory and on the processor is stated, the processor executes real when the computer program Existing following steps:
Receive the demand information that terminal is sent;Wherein, the demand information includes the identity and request of terminal The information on services of destination service;The information on services identifies the service identifiers of the destination service or the destination service and can realize Function;
According to the demand information and preset configuration information, the determining destination service with the demand information The matched access information of information on services;Wherein, the configuration information includes that there is the service provider of access authority can provide Preset service service identifiers and every kind of preset service access address;The access authority is according in business development The network security policy of each service provider to be visited is configured in the process;
The demand information is handled based on the matched access information;
Target data is returned according to the identity in the demand information;Wherein, the target data includes institute State the corresponding processing result of demand information, or the target data got according to the demand information.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program performs the steps of when being executed by processor
Receive the demand information that terminal is sent;Wherein, the demand information includes the identity and request of terminal The information on services of destination service;The information on services identifies the service identifiers of the destination service or the destination service and can realize Function;
According to the demand information and preset configuration information, the determining destination service with the demand information The matched access information of information on services;Wherein, the configuration information includes that there is the service provider of access authority can provide Preset service service identifiers and every kind of preset service access address;The access authority is according in business development The network security policy of each service provider to be visited is configured in the process;
The demand information is handled based on the matched access information;
Target data is returned according to the identity in the demand information;Wherein, the target data includes institute State the corresponding processing result of demand information, or the target data got according to the demand information.
Implement a kind of data interactive method and server provided in an embodiment of the present invention to have the advantages that
The embodiment of the present invention, server pass through preset configuration information, and associated storage has access authority in configuration information The service identifiers and the corresponding access address of every kind of preset service of the available preset service of service provider, access authority root It is carried out according to each corresponding network security policy of service provider to be visited during business development open-minded;It is receiving When the demand information that terminal is sent, the information on services with the destination service of the request in demand information can be obtained according to configuration information The access information to match, and then demand information is handled according to the matched access information, to obtain the data needed Or call the correlation function of service provider.Since associated storage has the service provider with access authority can in configuration information The service identifiers of the preset service of offer and the corresponding access address of every kind of preset service, terminal can be by the servers and outer The service provider of net carries out data interaction, and the terminal for not needing to use for each developer opens each service provider one by one Access authority, repetition can be saved and opened the time consumed by access authority, data-handling efficiency is improved and be reduced to every A terminal opens operation error caused by access authority respectively and is reduced to each terminal and opens access authority respectively and draw The operation error risen.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart for data interactive method that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides a kind of data interactive method implementation flow chart;
Fig. 3 is a kind of schematic diagram for server that one embodiment of the invention provides;
Fig. 4 be another embodiment of the present invention provides a kind of server schematic diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Referring to Figure 1, Fig. 1 is a kind of implementation flow chart for data interactive method that one embodiment of the invention provides.This reality The executing subject for applying data interactive method in example is server.Data interactive method as shown in the figure can include:
S101: the demand information that terminal is sent is received;Wherein, the demand information includes the identity of terminal and asks The information on services for the destination service asked;The information on services identifies the service identifiers of the destination service or the destination service can The function of realization.
Developer needs to access outer net during business development, to obtain the data needed from external system, or calls When external system realizes correlation function, is accessed by the access address of outer net docking platform and provide operation ring for outer net docking platform The server in border, and demand information is sent to server by the interactive interface that terminal is shown.Outer net and external system are phases For the company's internal network that developer uses.
The data that demand information is used to identify the service of terminal request or needs obtain, demand information includes the unique of terminal The information on services for the destination service that identity and request service provider provide.Unique identity can be Jie of terminal The address matter MAC layer (Media Access Control, MAC), when terminal is mobile terminal, unique identity is also It can be international mobile equipment identification number (International Mobile Equipment Identification Number, IMEI);Unique identity can also be the account that developer registers in outer net docking platform or terminal in outer net pair Connect the registration code etc. that platform is registered.
Unique identity is used to return to result data or the notification message etc. that message obtains according to demand to terminal.
The information on services of request can be the mark of the service of request for the information on services of identification request, be also possible to ask The information for the function that the service asked can be realized.
The service identifiers or the achievable function of destination service of the information on services mark destination service of destination service, with request It obtains data or request uses a certain function of service provider.
S102: according to the demand information and preset configuration information, the determining mesh with the demand information Mark the matched access information of information on services of service;Wherein, the configuration information includes the service provider with access authority The access address of the service identifiers of available preset service and every kind of preset service;The access authority is according in industry The network security policy of each service provider to be visited is configured in business development process.
Server obtains preset configuration information, and configuration information includes having the service provider of access authority available The access address of the service identifiers of preset service and every kind of preset service;Access authority is according to during business development The network security policy of each service provider to be visited is configured.Network security policy is to guarantee that network security is taken Safeguard procedures, for example, setting firewall, filtering the address, filtering services class Internet protocol (Internet Protocol, IP) Type etc..Service type includes but is not limited to Internet service, File Transfer Protocol (File Transfer Protocal, FTP) Service.
Can have the mark of service provider of access authority, each service provider in configuration information with associated storage The access address of the service identifiers of available preset service and every kind of preset service.
Server according to demand the information on services of the destination service in information, awarded according to associated storage in configuration information Weigh access the available preset service of service provider service identifiers and every kind of preset service access information, obtain with The matched access information of the information on services of destination service.Preset service is the available service of each service provider.At this point, The access information matched includes the access address and the corresponding access port of destination service or API of service provider.
Specifically, terminal can based on preset configuration information, destination service information on services in service identifiers, obtain with The access information of the service identity matches of destination service;The target that terminal can also be identified according to the information on services of destination service takes It is engaged in the available achievable function of every kind of preset service of achievable function, service provider, determines the service of destination service Mark obtains the clothes with destination service according to the service identifiers in the information on services based on preset configuration information, destination service Business identifies matched access information.
S103: the demand information is handled based on the matched access information.
In one embodiment, when the destination service requested in demand information obtains data for identification request, service Device can access clothes according to the access address and the corresponding access port of destination service of the matched service provider got Be engaged in provider, from the matched target data of information on services obtained in service provider with the target of the request in demand information.
For example, when the service identifiers of the destination service of demand information request are for indicating request authentication, and service Device is in matched access information, according to the service provider for being capable of providing identity information for including in matched access information The access address of (for example, census register management system) accesses service provider, and according to the target for including in matched access information Service (identity information query service) corresponding identity information and inquire port, from the database of the service provider inquiry with to The matched identity information of the identity of the user of verifying.The identity of user to be verified includes but is not limited to identification card number Code.
Server can also according to the access address of the service provider for including in the matched access information got with Service provider establishes communication connection, and demand information is transmitted to the service provider, so that service provider being capable of basis The demand information received obtains the target data of demand information request, and the target data that will acquire returns to service Device.Target data includes but is not limited to the identity information of user.
In another embodiment, when the information on services for the destination service requested in demand information is used for identification request Or when calling a certain function of service provider, server is provided according to the service for including in the matched access information got The access address and service provider of side, which are established, to be communicated to connect, and the corresponding API of the destination service for including in the access information is called, Triggering service provider starting destination service handles information to be processed, and after processing is completed, returns and use to server Successful notification message is handled in mark, if destination service can not be started or failed to information processing to be processed, to server It returns for identifying processing failure notification message.Information to be processed may be embodied in demand information, is also possible to terminal and is connecing Transmission when receiving the request for obtaining information to be sent.
For example, when the information on services of the destination service of request is used for the function that identification request calls short message service side to send short message When energy, server is communicated according to the access address of short message service side with short message service side, and is called for sending short message API, triggering short message service root send demand according to the information (cell-phone number or communications account) for the recipient for including in demand information The information to be sent for including in information, and when sending successfully, it is returned to server and sends success notification;It is lost if sent It loses, sends failure notification then returning to server.
S104: target data is returned to according to the identity in the demand information;Wherein, the target packet Include the corresponding processing result of the demand information, or the target data got according to the demand information.
When identity is the unique identity of terminal, server returns to root to terminal according to the unique identification of terminal The target data got according to demand information, or the corresponding processing of demand information is returned to terminal according to the unique identification of terminal and is tied Fruit (for example, short message sends successful message).
When identity is developer in the account that outer net docking platform is registered, server sends root according to the account The corresponding processing result of target data or demand information got according to demand information.
Above scheme, server pass through preset configuration information, and associated storage has the service of access authority in configuration information The service identifiers and the corresponding access address of every kind of preset service of the available preset service of provider, access authority according to Each corresponding network security policy of service provider to be visited carries out open-minded during business development;Receiving terminal When the demand information of transmission, the information on services phase with the destination service of the request in demand information can be obtained according to configuration information The access information matched, and then demand information is handled according to the matched access information, to obtain the data needed or tune With the correlation function of service provider.Since associated storage has the service provider with access authority can provide in configuration information Preset service service identifiers and the corresponding access address of every kind of preset service, terminal can pass through the server and outer net Service provider carries out data interaction, and the terminal for not needing to use for each developer opens the visit of each service provider one by one It asks permission, repetition can be saved and opened the time consumed by access authority, improve data-handling efficiency and be reduced to each end Operation error caused by access authority is opened respectively in end.
Refer to Fig. 2, Fig. 2 be another embodiment of the present invention provides a kind of data interactive method implementation flow chart.This The executing subject of data interactive method is server in embodiment.Data interactive method as shown in the figure can include:
S201: the demand information that terminal is sent is received;Wherein, the demand information includes the identity of terminal and asks The information on services for the destination service asked;The information on services identifies the service identifiers of the destination service or the destination service can The function of realization.
S201 in the present embodiment is identical as the S101 in a upper embodiment, referring specifically to S101 in a upper embodiment Associated description does not repeat herein.
S202: according to the mark of all service providers to be visited during business development, each clothes are obtained The network security policy of business provider.
Server obtains the mark of all service providers to be visited during business development, is mentioned according to each service The mark of supplier obtains the network security policy of each service provider.The mark of service provider can be passed through by administrative staff Terminal is configured.
S203: the access of each service provider is opened according to the network security policy of each service provider Permission, and generate preset configuration information.
In an application scenarios, itself is arranged in IP address, the port numbers that server can be filtered according to service provider IP address and port numbers, according to the service type of service provider filtering and the service for needing to use during business development Type is to service provider application access authority.
Server obtains the mark for the preset service that each external system is capable of providing, and obtains the visit of every kind of preset service Ask information, (or every kind default for the access address and the corresponding access port of every kind of service that access information includes service provider Service corresponding API).Server is according to the mark and every kind of preset service of the available preset service of each service provider Access port (or API), establish have access authority the available each preset service of service provider mark and Incidence relation between the access information of every kind of preset service, to obtain configuration information, configuration information can be with the shape of file Formula exists, i.e. configuration file, can also exist in table form, herein with no restrictions.
It is understood that developer can create new service or new need target function to be used according to actual needs Energy.Specifically, server can get developer submission newly-increased destination service or use objective function when, according to The mark of each available preset service of service provider or the achievable function of every kind of preset service, determination can provide target The destination service provider of objective function is serviced or is able to achieve, and according to every kind of preset service of destination service provider offer Access port (or API) determines the access port (or API) of destination service or objective function, establishes destination service provider, mesh The incidence relation between the mark of service and the access information of destination service is marked, and the incidence relation is added to configuration information In.
It is understood that S201 may be performed simultaneously with S202, S202~S203 can also be executed before S201.
S204: according to the demand information and preset configuration information, the determining mesh with the demand information Mark the matched access information of information on services of service;Wherein, the configuration information includes the service provider with access authority The access address of the service identifiers of available preset service and every kind of preset service;The access authority is according in industry The network security policy of each service provider to be visited is configured in business development process.
S204 in the present embodiment is identical as the S102 in a upper embodiment, referring specifically to S102 in a upper embodiment Associated description does not repeat herein.
S205: the demand information is handled based on the matched access information.
In one embodiment, when the destination service requested in demand information obtains data for identification request, service Device can access clothes according to the access address and the corresponding access port of destination service of the matched service provider got Be engaged in provider, from the matched target data of information on services obtained in service provider with the target of the request in demand information.
For example, when the service identifiers of the destination service of demand information request are for indicating request authentication, and service Device is in matched access information, according to the service provider for being capable of providing identity information for including in matched access information The access address of (for example, census register management system) accesses service provider, and according to the target for including in matched access information Service (identity information query service) corresponding identity information and inquire port, from the database of the service provider inquiry with to The matched identity information of the identity of the user of verifying.The identity of user to be verified includes but is not limited to identification card number Code.
Server can also according to the access address of the service provider for including in the matched access information got with Service provider establishes communication connection, and demand information is transmitted to the service provider, so that service provider being capable of basis The demand information received obtains the target data of demand information request, and the target data that will acquire returns to service Device.Target data includes but is not limited to the identity information of user.
In another embodiment, when the information on services for the destination service requested in demand information is used for identification request Or when calling a certain function of service provider, server is provided according to the service for including in the matched access information got The access address and service provider of side, which are established, to be communicated to connect, and the corresponding API of the destination service for including in the access information is called, Triggering service provider starting destination service handles information to be processed, and after processing is completed, returns and use to server Successful notification message is handled in mark, if destination service can not be started or failed to information processing to be processed, to server It returns for identifying processing failure notification message.Information to be processed may be embodied in demand information.
For example, the information on services of the destination service of request calls the function of short message service side's transmission short message for identification request When, server is communicated according to the access address of short message service side with short message service side, and is called for sending short message API, triggering short message service root send demand according to the information (cell-phone number or communications account) for the recipient for including in demand information The information to be sent for including in information, and when sending successfully, it is returned to server and sends success notification;It is lost if sent It loses, sends failure notification then returning to server.
Further, when the matched access information got in S204 includes at least two, preset configuration information is also When mark including each service provider, S205 may include S2051~S2053 specific as follows:
S2051: it is obtained at the data of the corresponding service provider of the access information according to the matched access information Manage performance indicator;The data processing performance index includes data processing reliability and data-handling efficiency.
It is corresponding to obtain matched access information based on the corresponding relationship between access information and service provider for server The data processing performance index of service provider.
Data processing reliability can analyze service provider, and to provide the relative recording generated when each service (such as successful The percentage of the service of terminal request is provided) it obtains;Data-handling efficiency can be provided according to service provider in a period of time The quantity of destination service and the duration for providing the consumption of this destination service every time obtain, and treatment effeciency passes through energy in the unit time The frequency for providing this service is measured.
S2052: destination service provider is determined according to the data processing performance index of each service provider.
Server can therefrom be selected according to the data processing reliability and data-handling efficiency of each service provider The reliability highest and higher service provider of data-handling efficiency is as destination service provider, or therefrom select reliability The highest service provider of higher and data-handling efficiency is as destination service provider.
Further, in order to guarantee, S2052 is specifically included: the data processing based on each service provider is reliable Property or data-handling efficiency determine destination service provider;Or
First weight coefficient of the data processing reliability based on each service provider and each service Corresponding second weight coefficient of the data-handling efficiency of provider, determines destination service provider.
Illustratively, terminal can requirement based on destination service to data processing performance index, each service provider Data processing reliability or data-handling efficiency determine destination service provider.
For example, server selects data processing reliability highest when destination service is higher to data reliability requirement Service provider is as destination service provider;When destination service is more demanding to data-handling efficiency, server selects number According to the highest service provider for the treatment of effeciency as destination service provider.
Server can be that the first weight coefficient is arranged in data processing reliability and be that data-handling efficiency is arranged second Weight coefficient, the first score value of data processing reliability is determined according to the percentage for successfully providing this destination service, and is counted The product for calculating the first score value and the first weight coefficient obtains reliability scoring;This is provided according to service provider in the unit time The frequency of destination service determines the second score value of data-handling efficiency, calculates the long-pending of the second score value and the second weight coefficient The sum of reliability scoring and the efficiency scoring scored to efficiency, and calculate each service provider, by each service provider Overall score determine destination service provider.The overall score highest of destination service provider.
Wherein, server can successfully provide the percentage of this destination service for service provider, the unit time takes orally The frequency for provider's offer destination service of being engaged in is respectively set multiple and different sections, and corresponding score value is arranged for each section, To be the score value that can determine data processing reliability or data-handling efficiency according to affiliated section.This target is successfully provided The percentage of service is higher, and the score value of data processing reliability is higher;Service provider provides destination service in unit time The frequency it is more, the score value of data-handling efficiency is higher.
S2053: according to the corresponding matched access address of the destination service provider to the demand information into Row processing.
S206: target data is returned to according to the identity in the demand information;Wherein, the target packet Include the corresponding processing result of the demand information, or the target data got according to the demand information.
When identity is the unique identity of terminal, server returns to root to terminal according to the unique identification of terminal The target data got according to demand information, or the corresponding processing of demand information is returned to terminal according to the unique identification of terminal and is tied Fruit (for example, short message sends successful message).
When identity is developer in the account that outer net docking platform is registered, server sends root according to the account The corresponding processing result of target data or demand information got according to demand information.
Optionally, in order to which the treatment effeciency for improving demand information can also include S207 after S206: association caching The information on services of the destination service and the target data got according to the demand information.
Server is stored by the service identifiers of destination service and according to the target data association that the demand information is got, So as to get other terminals transmission demand information, and in detecting demand information requested service service When the mark of mark and the destination service of storage matches, it will be sent with the target data of the matched service identifiers associated storage To the terminal for sending the demand information, in this way regardless of whether the terminal for sending the demand information be the same terminal or belong to The same built-in system is getting for the first time with after the matched data of demand information, data sharing can be achieved, server is not It needs to repeat to obtain, saves downloading resource, improve data acquisition efficiency.
It is understood that server can also be cleared up the corresponding target of destination service of caching by the preset time cycle Data.Specifically, it can be carried out according to the acquisition frequency of the corresponding target data of destination service each in the preset time cycle Cleaning.Server priority cleaning obtains the low corresponding data of destination service of the frequency.
Above scheme, server pass through preset configuration information, and associated storage has the service of access authority in configuration information The service identifiers and the corresponding access address of every kind of preset service of the available preset service of provider, access authority according to Each corresponding network security policy of service provider to be visited carries out open-minded during business development;Receiving terminal When the demand information of transmission, the information on services phase with the destination service of the request in demand information can be obtained according to configuration information The access information matched, and then demand information is handled according to the matched access information, to obtain the data needed or tune With the correlation function of service provider.Since associated storage has the service provider with access authority can provide in configuration information Preset service service identifiers and the corresponding access address of every kind of preset service, terminal can pass through the server and outer net Service provider carries out data interaction, and the terminal for not needing to use for each developer opens the visit of each service provider one by one It asks permission, repetition can be saved and opened the time consumed by access authority, improve data-handling efficiency and be reduced to each end Operation error caused by access authority is opened respectively in end.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Referring to Fig. 3, Fig. 3 is a kind of structural block diagram for server that one embodiment of the invention provides, what server included Each unit is used to execute each step in the corresponding embodiment of FIG. 1 to FIG. 2.Referring specifically to the corresponding reality of Fig. 1 and Fig. 2 Apply the associated description in example.For ease of description, only the parts related to this embodiment are shown.Referring to Fig. 3, server 3 is wrapped It includes:
Receiving unit 310, for receiving the demand information of terminal transmission;Wherein, the demand information includes the body of terminal The information on services of part mark and the destination service of request;The information on services identifies service identifiers or the institute of the destination service State the achievable function of destination service;
Determination unit 320, for according to the demand information and preset configuration information, the determining and demand information In the destination service the matched access information of information on services;Wherein, the configuration information includes having access authority The service identifiers of the available preset service of service provider and the access address of every kind of preset service;The access right Limit is configured according to the network security policy of each service provider to be visited during business development;
Demand information processing unit 330, for being handled based on the matched access information the demand information;
Information feedback unit 340, for returning to target data according to the identity in the demand information;Its In, the target data includes the corresponding processing result of the demand information, or the target got according to the demand information Data.
Further, the matched access information includes at least two, and the preset configuration information further includes each The mark of the service provider;Demand information processing unit 330 includes:
Index selection unit is provided for obtaining the corresponding service of the access information according to the matched access information The data processing performance index of side;The data processing performance index includes data processing reliability and data-handling efficiency;
Destination service provider's determination unit, it is true for the data processing performance index according to each service provider Set the goal service provider;
Processing unit is used for according to the corresponding matched access address of the destination service provider to the demand Information is handled.
Further, destination service provider determination unit is specifically used for:
Data processing reliability or data-handling efficiency based on each service provider determine that destination service provides Side;Or
First weight coefficient of the data processing reliability based on each service provider and each service Corresponding second weight coefficient of the data-handling efficiency of provider, determines destination service provider.
Optionally, terminal can also include:
Network security policy acquiring unit, for according to all service providers to be visited during business development Mark obtains the network security policy of each service provider;
Configuration unit is provided for opening each service according to the network security policy of each service provider The access authority of side, and generate the preset configuration information.
Optionally, terminal can also include: cache unit, for be associated with cache the destination service information on services and The target data got according to the demand information.
Referring to Fig. 4, Fig. 4 be another embodiment of the present invention provides a kind of server schematic diagram.As shown in figure 4, should The server 4 of embodiment includes: processor 40, memory 41 and is stored in the memory 41 and can be in the processor The computer program 42 run on 40.The processor 40 realizes above-mentioned each data interaction when executing the computer program 42 Step in embodiment of the method, such as S101 shown in FIG. 1 to S104.Alternatively, the processor 40 executes the computer journey The function of each unit in above-mentioned each Installation practice, such as the function of unit 310 to 340 shown in Fig. 3 are realized when sequence 42.
Illustratively, the computer program 42 can be divided into one or more units, one or more of Unit is stored in the memory 41, and is executed by the processor 40, to complete the present invention.One or more of lists Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 42 in the server 4.For example, the computer program 42 can be divided into receiving unit, determination Unit, demand information processing unit and information feedback unit etc., each unit concrete function is as described above.
The server may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only the example of server 4, does not constitute the restriction to server 4, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the server can also include input-output equipment, network Access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the server 4, such as the hard disk or memory of server 4. The memory 41 is also possible to the External memory equipment of the server 4, such as the plug-in type being equipped on the server 4 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 41 can also both include the internal storage unit of the server 4 or wrap Include External memory equipment.The memory 41 is for other programs needed for storing the computer program and the server And data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of data interactive method characterized by comprising
Receive the demand information that terminal is sent;Wherein, the demand information includes the target of identity and the request of terminal The information on services of service;The information on services identifies the service identifiers or the achievable function of the destination service of the destination service Energy;
According to the demand information and preset configuration information, the determining clothes with the destination service in the demand information The access information for information matches of being engaged in;Wherein, the configuration information includes having the service provider of access authority available pre- If the service identifiers of service and the access address of every kind of preset service;The access authority is according in business development process In the network security policy of each service provider to be visited be configured;
The demand information is handled based on the matched access information;
Target data is returned according to the identity in the demand information;Wherein, the target data includes the need Ask the corresponding processing result of information, or the target data got according to the demand information.
2. data interactive method according to claim 1, which is characterized in that the matched access information includes at least two A, the preset configuration information further includes the mark of each service provider;
It is described that the demand information is handled based on the matched access information, comprising:
The data processing performance index of the corresponding service provider of the access information is obtained according to the matched access information; The data processing performance index includes data processing reliability and data-handling efficiency;
Destination service provider is determined according to the data processing performance index of each service provider;
The demand information is handled according to the destination service provider corresponding matched access address.
3. data interactive method according to claim 2, which is characterized in that described according to each service provider Data processing performance index determines destination service provider, comprising:
Destination service provider is determined based on the data processing reliability or data-handling efficiency of each service provider;Or Person
First weight coefficient of the data processing reliability based on each service provider and each service provide Corresponding second weight coefficient of data-handling efficiency of side, determines destination service provider.
4. data interactive method according to claim 1, which is characterized in that described according to the demand information and preset Configuration information, it is determining with before the matched access information of the demand information, further includes:
According to the mark of all service providers to be visited during business development, each service provider is obtained Network security policy;
The access authority of each service provider is opened according to the network security policy of each service provider, and raw At the preset configuration information.
5. data interactive method according to any one of claims 1 to 4, which is characterized in that described to be believed according to the demand The identity in breath returns after target data, further includes:
The target data that association caches the information on services of the destination service and got according to the demand information.
6. a kind of server, which is characterized in that the server includes memory, processor and stores in the memory And the computer program that can be run on the processor, the processor realize following step when executing the computer program It is rapid:
Receive the demand information that terminal is sent;Wherein, the demand information includes the target of identity and the request of terminal The information on services of service;The information on services identifies the service identifiers or the achievable function of the destination service of the destination service Energy;
According to the demand information and preset configuration information, the determining clothes with the destination service in the demand information The access information for information matches of being engaged in;Wherein, the configuration information includes having the service provider of access authority available pre- If the service identifiers of service and the access address of every kind of preset service;The access authority is according in business development process In the network security policy of each service provider to be visited be configured;
The demand information is handled based on the matched access information;
Target data is returned according to the identity in the demand information;Wherein, the target data includes the need Ask the corresponding processing result of information, or the target data got according to the demand information.
7. server according to claim 6, which is characterized in that the matched access information includes at least two, institute State the mark that preset configuration information further includes each service provider;
It is described that the demand information is handled based on the matched access information, comprising:
The data processing performance index of the corresponding service provider of the access information is obtained according to the matched access information; The data processing performance index includes data processing reliability and data-handling efficiency;
Destination service provider is determined according to the data processing performance index of each service provider;
The demand information is handled according to the destination service provider corresponding matched access address.
8. server according to claim 7, which is characterized in that at the data according to each service provider Reason performance indicator determines destination service provider, comprising:
Destination service provider is determined based on the data processing reliability or data-handling efficiency of each service provider;Or Person
First weight coefficient of the data processing reliability based on each service provider and each service provide Corresponding second weight coefficient of data-handling efficiency of side, determines destination service provider.
9. according to the described in any item servers of claim 6 to 8, which is characterized in that described according in the demand information After the identity returns to target data, the processor also realizes following steps when executing the computer program: closing The target data that connection caches the information on services of the destination service and got according to the demand information.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201810868900.6A 2018-08-02 2018-08-02 Data interaction method and server Active CN109246078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810868900.6A CN109246078B (en) 2018-08-02 2018-08-02 Data interaction method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810868900.6A CN109246078B (en) 2018-08-02 2018-08-02 Data interaction method and server

Publications (2)

Publication Number Publication Date
CN109246078A true CN109246078A (en) 2019-01-18
CN109246078B CN109246078B (en) 2022-09-13

Family

ID=65072667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810868900.6A Active CN109246078B (en) 2018-08-02 2018-08-02 Data interaction method and server

Country Status (1)

Country Link
CN (1) CN109246078B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831504A (en) * 2019-01-31 2019-05-31 泰康保险集团股份有限公司 Micro services request processing method, device and equipment
CN110210876A (en) * 2019-05-28 2019-09-06 数贸科技(北京)有限公司 A kind of merchandise information processing method and device for B2B platform
CN111756733A (en) * 2020-06-23 2020-10-09 恒生电子股份有限公司 Identity authentication method and related device
CN113010915A (en) * 2021-03-10 2021-06-22 广州民航信息技术有限公司 Method, system, electronic device and storage medium for unifying airport data interface
CN113051614A (en) * 2021-03-26 2021-06-29 支付宝(杭州)信息技术有限公司 Information access processing method, device, equipment and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080288599A1 (en) * 2007-05-18 2008-11-20 Michael Kutchmark Apparatus, systems and methods for transformation services
CN101483672A (en) * 2009-02-16 2009-07-15 深圳华为通信技术有限公司 Processing method, system, gateway server and mobile terminal for service information access
CN101764742A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Network resource visit control system and method
CN102036227A (en) * 2009-09-27 2011-04-27 中国移动通信集团公司 Method, system and device for acquiring user identifier of data service
CN103561002A (en) * 2013-10-22 2014-02-05 北京神州泰岳软件股份有限公司 Safety access method and system based on fire wall policy
CN104967609A (en) * 2015-04-28 2015-10-07 腾讯科技(深圳)有限公司 Intranet development server access method, intranet development server access device and intranet development server access system
CN105471866A (en) * 2015-11-23 2016-04-06 深圳市联软科技有限公司 Protection method and apparatus for mobile application
CN105978933A (en) * 2016-04-25 2016-09-28 青岛海信电器股份有限公司 Webpage request method, webpage response method, terminal, server, and webpage request and response system
CN106101232A (en) * 2016-06-16 2016-11-09 北京思源置地科技有限公司 Load-balancing method and device
CN107294959A (en) * 2017-06-06 2017-10-24 国家电网公司 The method of inside and outside Network Communication, apparatus and system
CN107832629A (en) * 2017-11-03 2018-03-23 深圳市前海安测信息技术有限公司 Area medical information access control system and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080288599A1 (en) * 2007-05-18 2008-11-20 Michael Kutchmark Apparatus, systems and methods for transformation services
CN101483672A (en) * 2009-02-16 2009-07-15 深圳华为通信技术有限公司 Processing method, system, gateway server and mobile terminal for service information access
CN102036227A (en) * 2009-09-27 2011-04-27 中国移动通信集团公司 Method, system and device for acquiring user identifier of data service
CN101764742A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Network resource visit control system and method
CN103561002A (en) * 2013-10-22 2014-02-05 北京神州泰岳软件股份有限公司 Safety access method and system based on fire wall policy
CN104967609A (en) * 2015-04-28 2015-10-07 腾讯科技(深圳)有限公司 Intranet development server access method, intranet development server access device and intranet development server access system
CN105471866A (en) * 2015-11-23 2016-04-06 深圳市联软科技有限公司 Protection method and apparatus for mobile application
CN105978933A (en) * 2016-04-25 2016-09-28 青岛海信电器股份有限公司 Webpage request method, webpage response method, terminal, server, and webpage request and response system
CN106101232A (en) * 2016-06-16 2016-11-09 北京思源置地科技有限公司 Load-balancing method and device
CN107294959A (en) * 2017-06-06 2017-10-24 国家电网公司 The method of inside and outside Network Communication, apparatus and system
CN107832629A (en) * 2017-11-03 2018-03-23 深圳市前海安测信息技术有限公司 Area medical information access control system and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831504A (en) * 2019-01-31 2019-05-31 泰康保险集团股份有限公司 Micro services request processing method, device and equipment
CN109831504B (en) * 2019-01-31 2022-01-25 泰康保险集团股份有限公司 Micro service request processing method, device and equipment
CN110210876A (en) * 2019-05-28 2019-09-06 数贸科技(北京)有限公司 A kind of merchandise information processing method and device for B2B platform
CN111756733A (en) * 2020-06-23 2020-10-09 恒生电子股份有限公司 Identity authentication method and related device
CN113010915A (en) * 2021-03-10 2021-06-22 广州民航信息技术有限公司 Method, system, electronic device and storage medium for unifying airport data interface
CN113051614A (en) * 2021-03-26 2021-06-29 支付宝(杭州)信息技术有限公司 Information access processing method, device, equipment and system

Also Published As

Publication number Publication date
CN109246078B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN109246078A (en) A kind of data interactive method and server
EP3522088B1 (en) Securing blockchain access through a gateway
CN109492380B (en) Equipment authentication method and device and block link point
CN109995713A (en) Service processing method and relevant device in a kind of micro services frame
CN109842906A (en) A kind of method, apparatus and system of communication
CN108989372A (en) Method, registration center and the equipment of service discovery
CN108965007A (en) API gateway interface configures update method and device
CN114025021B (en) Communication method, system, medium and electronic equipment crossing Kubernetes cluster
CN104618312B (en) A kind of remote login methods, devices and systems of M2M application
CN106357609B (en) A kind of method and system, public network server and private clound equipment creating user
CN108259425A (en) The determining method, apparatus and server of query-attack
EP1843607A1 (en) System of mobile game on-line and method for communication between mobile game terminals
CN108243404A (en) Ratification method, device and the equipment of phone number binding state
RU2651159C1 (en) Method and device for marking unknown number
CN107864058B (en) Fault judgment method and device
CN109947844B (en) Medical data management system based on medical block chain
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN113014626B (en) Data service management method and device, storage medium and electronic device
CN106874371A (en) A kind of data processing method and device
CN112073512B (en) Data processing method and device
CN109600254A (en) The generation method and related system of full link log
CN110324436A (en) A kind of Proxy Method and device of transport-layer proxy
CN103036895A (en) Method and system for state tracking
CN110322250A (en) The recognition methods of inactive users courses of action, device, equipment and storage medium
CN106126394B (en) The method and system of out of band supervision management acquisition PCIE device assets information

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