CN107231398A - Information interacting method and device - Google Patents

Information interacting method and device Download PDF

Info

Publication number
CN107231398A
CN107231398A CN201610179425.2A CN201610179425A CN107231398A CN 107231398 A CN107231398 A CN 107231398A CN 201610179425 A CN201610179425 A CN 201610179425A CN 107231398 A CN107231398 A CN 107231398A
Authority
CN
China
Prior art keywords
data
scene identity
model
gateway
scene
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.)
Pending
Application number
CN201610179425.2A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610179425.2A priority Critical patent/CN107231398A/en
Publication of CN107231398A publication Critical patent/CN107231398A/en
Pending legal-status Critical Current

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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses information interacting method and device, this method includes:The data request information that client is sent is received, the data request information carries the first scene identity;Corresponding first data are called from service end according to first scene identity;Integration processing is carried out to first data using first scene identity corresponding unified data model, the second data are obtained;The data response message for carrying second data is sent to the client, so that the client carries out dissection process to the second data in the data response message.Therefore, the application can complete the information exchange between client and server based on scene identity, so as to improve information exchange efficiency, also save network resource consumption.

Description

Information interacting method and device
Technical field
The application is related to Internet technical field, more particularly to information interacting method and device.
Background technology
With continuing to develop for Internet technology, various client applications (Application, APP) Exploitation it is also more and more important.
In the prior art, in client APP and the mode of server interaction is generally required to be answered by multiple Realized with Program Interfaces (Application Programming Interface, API).Such as: For the first time operation APP application scenarios under, it is necessary to call registration equipment, obtain configuration, checking upgrading, Report is living, obtain agreement, report multiple API such as geographical position, checking login.
But, due to being limited by the logic control finished writing in advance, tune can not be adjusted by calling during each API With order so that using API complete between APP and server when interacting, its very flexible, efficiency It is low.
The content of the invention
The application provides information interacting method and device, to solve to complete APP using API in the prior art Between server when interacting, its very flexible, the problem of efficiency is low.
According to the first aspect of the embodiment of the present application there is provided a kind of information interacting method, methods described includes:
The data request information that client is sent is received, the data request information carries the first scene mark Know;
Corresponding first data are called from service end according to first scene identity;
First data are carried out at integration using the corresponding unified data model of first scene identity Reason, obtains the second data;
The data response message for carrying second data is sent to the client, so that the visitor Family end carries out dissection process to the second data in the data response message.
According to the second aspect of the embodiment of the present application, there is provided a kind of information interacting method, methods described, bag Include:
When receiving application request, corresponding application scenarios, Yi Jisuo are determined according to the application request State corresponding first scene identity of application scenarios;
The data request information for carrying first scene identity is sent to gateway, so that the gateway Corresponding first data are called from service end according to first scene identity;
The data response message for carrying the second data that the gateway is sent is received, second data are The gateway is carried out whole using the corresponding unified data model of first scene identity to first data The data obtained after conjunction processing;
Second data are carried out at parsing according to the corresponding unified data model of first scene identity Reason, and export the data after the dissection process.
According to the third aspect of the embodiment of the present application there is provided a kind of information interactive device, described device includes:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
The data request information that client is sent is received, the data request information carries the first scene mark Know;
Corresponding first data are called from service end according to first scene identity;
First data are carried out at integration using the corresponding unified data model of first scene identity Reason, obtains the second data;
The data response message for carrying second data is sent to the client, so that the visitor Family end carries out dissection process to the second data in the data response message.
According to the fourth aspect of the embodiment of the present application there is provided a kind of information interactive device, described device includes:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
When receiving application request, corresponding application scenarios, Yi Jisuo are determined according to the application request State corresponding first scene identity of application scenarios;
The data request information for carrying first scene identity is sent to gateway, so that the gateway Corresponding first data are called from service end according to first scene identity;
The data response message for carrying the second data that the gateway is sent is received, second data are The gateway is carried out whole using the corresponding unified data model of first scene identity to first data The data obtained after conjunction processing;
Second data are carried out at parsing according to the corresponding unified data model of first scene identity Reason, and export the data after the dissection process.
Using the embodiment of the present application, by receiving the data request information that client is sent, the request of data Information carries the first scene identity, and corresponding first data are called from service end according to the first scene identity, Integration processing is carried out to the first data using the first scene identity corresponding unified data model, second is obtained First data are carried out integration processing using the corresponding unified data model of the first scene identity, obtained by data To the second data so that gateway completes the information exchange between client and server based on scene identity, So as to improve information exchange efficiency, network resource consumption is also saved.
Brief description of the drawings
Fig. 1 is the information exchange schematic diagram of a scenario of the embodiment of the present application;
Fig. 2 is one embodiment flow chart of the application information interacting method;
Fig. 3 is the flow chart of another embodiment of the application information interacting method;
Fig. 4 is one embodiment flow chart of the application information interacting method;
Fig. 5 is the flow chart of another embodiment of the application information interacting method;
Fig. 6 is a kind of hardware structure diagram of equipment where the application information interactive device;
Fig. 7 is a kind of hardware structure diagram of equipment where the application information interactive device;
Fig. 8 is one embodiment block diagram of the application information interactive device;
Fig. 9 is one embodiment block diagram of the application information interactive device.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following When description is related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the application There is embodiment.On the contrary, they are only one be described in detail in such as appended claims, the application The example of the consistent apparatus and method of a little aspects.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting The application." one kind ", " institute of singulative used in the application and appended claims State " and "the" be also intended to including most forms, unless context clearly shows that other implications.Should also Work as understanding, term "and/or" used herein refers to and associated lists item comprising one or more Purpose any or all may combine.
It will be appreciated that though may describe various using term first, second, third, etc. in the application Information, but these information should not necessarily be limited by these terms.These terms only be used for by same type of information that This is distinguished.For example, in the case where not departing from the application scope, the first information can also be referred to as Two information, similarly, the second information can also be referred to as the first information.Depending on linguistic context, as in this institute Use word " if " can be construed to " and ... when " or " when ... when " or " response In it is determined that ".
It is the information exchange schematic diagram of a scenario of the embodiment of the present application referring to Fig. 1:
Fig. 1 scenes include:Client, gateway (Gateway) and service end.Wherein, gateway is The computer system or equipment of conversion important task are served as between client and server end.Also, gateway and visitor Be that information exchange is carried out based on scene between the end of family, and believed based on API between gateway and service end Breath interaction.
When APP in client receives the application request of user, correspondence can be determined according to the application request Application scenarios and corresponding first scene identity of the application scenarios, this is then carried first The data request information of scape mark is sent to gateway.
Gateway is received after the data request information for carrying the first scene identity of client transmission, can root At least one API to be called is determined according to first scene identity, and to obtain each API corresponding Regulative strategy is set, and data call is sent to service end according to the corresponding setting regulative strategies of each API Request.
Server receive each API initiation data call request after, can obtain it is corresponding call data, And calling data to return to gateway by corresponding, this calls data to be the first data.Wherein, call data can To be some business datums.
Gateway is received after the first data, can be using the corresponding unified data model of the first scene identity to the One data carry out integration processing, obtain the second data, and the data response message that will carry the second data Send to client.Wherein, the second data are the data based on unified data model, are conducive to client Handle and be presented to user.
Client receives the second data, can be using the corresponding unified data model of the first scene identity to the Two data carry out dissection process, and export the data after dissection process.
In addition, gateway can configure in advance application scenarios and corresponding unified data model and each Scape identifies the corresponding relation between each model identification, and the corresponding relation is sent to client, with The scene identity that client can be in corresponding relation is set to initiate subscription service to gateway.
Meanwhile, gateway can also provide scene and safeguard service, and adjust each scene mark according to actual conditions Know the corresponding relation between each model identification, then the corresponding relation after adjustment is sent to client.
Therefore, information exchange can be carried out between above-mentioned client and gateway based on scene identity, also, Gateway receives based on scene identity a request of data for client transmission, it is possible to the client Return to all data based on unified data model, it is to avoid client repeatedly sends request of data, not only Information exchange efficiency is improved, Consumer's Experience is also improved.
The embodiment of the present application is described in detail below.
It is the flow chart of one embodiment of the application information interacting method referring to Fig. 2, this method can be with In on the gateway of service end, it may comprise steps of:
Step 210:The data request information that client is sent is received, the data request information carries the One scene identity.
, can be according to this when client receives user to APP application request in the embodiment of the present application Application request determines corresponding application scenarios, and the data that will carry application scenarios correspondence scene identity Solicited message is sent to gateway, is easy to gateway according to required for scene identity obtains corresponding application scenarios All data.
Such as:When client receives user to APP logging request, determined now according to logging request Application scenarios can will carry the request of data letter for logging in the corresponding scene identity of scene to log in scene Breath is sent to gateway, is easy to gateway according to required for logging in the corresponding scene identity acquisition login scene of scene All data.
Step 220:Corresponding first data are called from service end according to the first scene identity.
In the embodiment of the present application, needed for the first data can be the corresponding application scenarios of the first scene identity All business datums.
Such as:First scene identity calls corresponding first to log in the scene identity of scene from service end Data can be including logging in configuration data, user data, time data for needing to use in scene etc..
In addition, according to the first scene identity from service end call corresponding first data when, API can be used Mode, including:
(1) at least one API to be called is determined according to the first scene identity.
In the embodiment of the present application, each scene identity can be with corresponding one or more API.
(2) the corresponding setting regulative strategies of each API are obtained.
In the embodiment of the present application, which API setting regulative strategies, which can include, to perform simultaneously, which API can be performed sequentially, and which API can be performed successively.
(3) data call request is sent to service end according to setting regulative strategy.
In the embodiment of the present application, each API call sequence is determined according to setting regulative strategy, and pass through These API to server send data call request, and the reception server return call data.
(4) receive service end return calls data, and this calls data to be the first data for waiting to integrate processing.
Step 230:The first data are integrated using the corresponding unified data model of the first scene identity Processing, obtains the second data.
In the embodiment of the present application, each scene identity can with corresponding one or more unified data models, Treated using the corresponding unified data model of scene identity after the first data progress integration processing for integrating processing, The second data based on unified data model are obtained, and are somebody's turn to do the second data based on unified data model just In client process and being presented to user.
In addition, integration processing is carried out to the first data using the first scene identity corresponding unified data model, Between each scene identity that can be based on configured in advance when obtaining the second data and each model identification Corresponding relation realizes, including:
(1) the first scene mark is inquired about in the corresponding relation between each scene identity and each model identification Know corresponding first model identification;
(2) corresponding unified data model is determined according to the first model identification;
(3) integration processing is carried out to the first data using the first model identification corresponding unified data model, Obtain the second data based on unified data model.
Step 240:The data response message for carrying the second data is sent to client, so that client Hold and dissection process is carried out to the second data in data response message.
As seen from the above-described embodiment, by receiving the data request information that client is sent, the request of data Information carries the first scene identity, and corresponding first data are called from service end according to the first scene identity, Integration processing is carried out to the first data using the first scene identity corresponding unified data model, second is obtained First data are carried out integration processing using the corresponding unified data model of the first scene identity, obtained by data To the second data so that gateway completes the information exchange between client and server based on scene identity, So as to improve information exchange efficiency, network resource consumption is also saved.
It is the flow chart of another embodiment of the application information interacting method referring to Fig. 3, this method can With on the gateway of service end, on the basis of embodiment illustrated in fig. 2, it can also comprise the following steps:
Step 310:Configure at least one application scenarios and the scene identity of each application scenarios.
In the embodiment of the present application, gateway provides scene configuration service, and one or more answer can be configured in advance With the scene identity of scene, and each application scenarios.
Step 320:Configure the corresponding unified data model of each application scenarios and the uniform data The model identification of model.
In the embodiment of the present application, gateway also provides unified data model configuration service, and one can be configured in advance Individual or multiple unified data models, and each unified data model model identification.
Step 330:Configure the corresponding relation between each scene identity and each model identification.
In the embodiment of the present application, gateway can shift to an earlier date configures each scene identity and each according to actual conditions Corresponding relation between model identification, and the corresponding relation is sent to client.
In addition, gateway can also adjust each scene identity and each model identification in real time according to actual conditions Between corresponding relation, the corresponding relation after adjustment will be sent to client, is easy to client according to tune The corresponding relation that corresponding relation after whole has been preserved.
Step 340:Corresponding relation between each scene identity and each model identification is sent to client End.
Step 350:The subscription solicited message of client is received, the subscription solicited message carries second Scape is identified.
Step 360:Corresponding application scenarios and corresponding unified number are obtained according to the second scene identity Sent according to model, and by the corresponding application scenarios of the second scene identity and corresponding unified data model To client.
In addition, except by the corresponding relation between each scene identity and each model identification in step 340 Send to client, can also be by each application scenarios, the corresponding system of each application scenarios that itself configure One data model is all sent to client.
As seen from the above-described embodiment, by configuring at least one application scenarios and each applied field in advance The scene identity of scape, configures each corresponding unified data model of application scenarios and the uniform data The model identification of model, configures the corresponding relation between each scene identity and each model identification, and will Corresponding relation between each scene identity and each model identification is sent to client, is easy to gateway and visitor The information exchange based on scene identity is realized at family end, so as to ensure the degree of accuracy and the reliability of information exchange.
It is the flow chart of one embodiment of the application information interacting method referring to Fig. 4, this method can be with In in client, it may comprise steps of:
Step 410:When receiving application request, according to application request determine corresponding application scenarios, And corresponding first scene identity of application scenarios.
Step 420:The data request information for carrying the first scene identity is sent to gateway, so that net Pass corresponding first data are called from service end according to the first scene identity.
Step 430:The data response message for carrying the second data that gateway is sent is received, second number The first data are carried out after integration processing using the corresponding unified data model of the first scene identity according to being gateway Obtained data.
Step 440:The second data are parsed according to the corresponding unified data model of the first scene identity Processing, and export the data after dissection process.
In the embodiment of the present application, client is received after the first data, can according to locally preserve each The corresponding model of first scene identity is inquired about in corresponding relation between scene identity and each model identification Mark, and dissection process is carried out to the second data according to the corresponding unified data model of the model identification, and The data after dissection process are shown on application interface.
As seen from the above-described embodiment, when receiving application request, corresponding answer is determined according to application request With corresponding first scene identity of scene and application scenarios, the data of the first scene identity will be carried Solicited message is sent to gateway, so that gateway calls corresponding first according to the first scene identity from service end Data, receive the data response message for carrying the second data that gateway is sent, second data are gateways The number for the first data obtain after integration processing using the corresponding unified data model of the first scene identity According to, dissection process is carried out to the second data according to the corresponding unified data model of the first scene identity, and it is defeated The data gone out after dissection process so that client can be once completed to contextual data based on scene identity Obtain, reduce the number of times of client and service client information interaction, so that information exchange efficiency is improved, Also save network resource consumption.
It is the flow chart of another embodiment of the application information interacting method referring to Fig. 5, this method can With in client, on the basis of embodiment illustrated in fig. 4, it can also comprise the following steps:
Step 510:Receive the corresponding pass between each scene identity and each model identification of gateway transmission System.
Step 520:If corresponding relation and local preservation between each scene identity and each model identification Corresponding relation it is different, then the corresponding relation locally preserved is updated according to the corresponding relation received.
Step 530:If not including the corresponding relation between each scene identity and each model identification locally, Then preserve the corresponding relation.
Step 540:Select to wait to order in corresponding relation between each scene identity and each model identification The second scene identity read.
Step 550:The subscription solicited message for carrying the second scene identity is sent to gateway, so that net Close and corresponding application scenarios and corresponding unified data model are obtained according to the second scene identity.
Step 560:Receive the corresponding application scenarios of the second scene identity and corresponding that gateway is sent Unified data model.
As seen from the above-described embodiment, by receiving each scene identity and each model identification that gateway is sent Between corresponding relation, be easy to client according to the gateway of scene identity and service end carry out information exchange, So as to ensure the degree of accuracy and the reliability of information exchange.
Embodiment with the application information interacting method is corresponding, and present invention also provides information interactive device Embodiment.
The embodiment of the application information interactive device can be applied on the gateway of service end.Device embodiment It can be realized, can also be realized by way of hardware or software and hardware combining by software.It is real with software Exemplified by existing, as the device on a logical meaning, being will be non-volatile by the processor of equipment where it Property memory in corresponding computer program instructions read in internal memory what operation was formed.From hardware view Speech, as shown in fig. 6, be a kind of hardware structure diagram of the application information interactive device place equipment, except Outside processor, internal memory, network interface and nonvolatile memory shown in Fig. 6, in embodiment Equipment where device can also include other hardware generally according to the actual functional capability of the equipment, such as For terminal, camera, touch-screen, communication component etc. are potentially included, can for server It can include being responsible for forwarding chip of processing message etc..
The embodiment of the application information interactive device can be using on the client.Device embodiment can lead to Software realization is crossed, can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, It is by nonvolatile memory by the processor of equipment where it as the device on a logical meaning In corresponding computer program instructions read in internal memory what operation was formed.For hardware view, such as scheme It is a kind of hardware structure diagram of equipment where the application information interactive device, except shown in Fig. 7 shown in 7 Processor, internal memory, network interface and nonvolatile memory outside, in embodiment where device Equipment generally according to the equipment actual functional capability, can also include other hardware, such as terminal, Camera, touch-screen, communication component etc. are potentially included, for server, is potentially included responsible Handle forwarding chip of message etc..
It is one embodiment block diagram of the application information interactive device, the information interactive device referring to Fig. 8 Can be on the gateway of service end, it is possible to for performing the information interacting method shown in Fig. 2, the device It can include:First receiving unit 81, call unit 82, the transmitting element 84 of integral unit 83 and first.
First receiving unit 81, the data request information for receiving client transmission, the request of data Information carries the first scene identity;
Call unit 82, for calling corresponding first data from service end according to first scene identity;
Integral unit 83, for using the corresponding unified data model of first scene identity to described the One data carry out integration processing, obtain the second data;
First transmitting element 84, for the data response message for carrying second data to be sent to institute Client is stated, so that the client carries out dissection process to the second data in the data response message.
In an optional implementation:The call unit 82 can include:First determination subelement, Obtain subelement, transmission sub-unit and receiving subelement (not marked in Fig. 8).
First determination subelement, for according to first scene identity determine at least one it is to be called should Use Program Interfaces API;
Subelement is obtained, for obtaining the corresponding setting regulative strategies of each described API;
Transmission sub-unit, please for sending data call to the service end according to the setting regulative strategy Ask;
Receiving subelement, the data of calling for receiving the service end return are described to call data to be institute State the first data.
In another optional implementation:Described device can also include:First dispensing unit, Two dispensing units, the 3rd dispensing unit and the second transmitting element (not marked in Fig. 8).
First dispensing unit, the scene for configuring at least one application scenarios and each application scenarios Mark;
Second dispensing unit, for configuring the corresponding unified data model of each application scenarios and described The model identification of unified data model;
3rd dispensing unit, for configuring the corresponding relation between each scene identity and each model identification;
Second transmitting element, for the corresponding relation to be sent to the client.
In another optional implementation:Described device can also include:Second receiving unit and Three transmitting elements (are not marked) in Fig. 8.
Second receiving unit, the subscription solicited message for receiving the client, the subscription request letter Breath carries the second scene identity;
3rd transmitting element, for according to second scene identity obtain corresponding application scenarios and Corresponding unified data model, and by the corresponding application scenarios and corresponding unified data model Send to the client.
In another optional implementation:Described device can also include:Adjustment unit and the 4th hair Send unit (not marked in Fig. 8).
Adjustment unit, for adjusting the corresponding relation between each scene identity and each model identification;
4th transmitting element, for the corresponding relation after the adjustment to be sent to the client.
In another optional implementation:The integral unit 83 can include:Inquiry subelement, Second determination subelement and integration subelement (not marked in Fig. 8).
Subelement is inquired about, for inquiring about first scene identity corresponding first from the corresponding relation Model identification;
Second determination subelement, for determining corresponding unified data model according to first model identification;
Subelement is integrated, it is whole for being carried out using the corresponding unified data model to first data Conjunction is handled, and obtains second data.
It is one embodiment block diagram of the application information interactive device, the information interactive device referring to Fig. 9 Can be on the client, it is possible to for performing the information interacting method shown in Fig. 4, the device can be wrapped Include:Determining unit 91, the first transmitting element 92, the first receiving unit 93 and resolution unit 94.
Determining unit 91, for when receiving application request, being determined according to the application request corresponding Application scenarios and corresponding first scene identity of the application scenarios;
First transmitting element 92, for the data request information for carrying first scene identity to be sent To gateway, so that the gateway calls corresponding first data according to first scene identity from service end;
First receiving unit 93, for receiving the data for carrying the second data response that the gateway is sent Information, second data are that the gateway utilizes the corresponding unified data model of first scene identity The data for first data obtain after integration processing;
Resolution unit 94, for according to the corresponding unified data model of first scene identity to described Two data carry out dissection process, and export the data after the dissection process.
In an optional implementation:Described device can also include:Second receiving unit, renewal Unit and storage unit (not marked in Fig. 9).
Second receiving unit, for receiving each scene identity and each model identification that the gateway is sent Between corresponding relation;
Updating block, if different from the corresponding relation locally preserved for the corresponding relation, according to institute State corresponding relation and update the corresponding relation locally preserved;
Storage unit, if not including the corresponding relation for local, preserves the corresponding relation.
In another optional implementation:Described device can also include:Selecting unit, the second hair Send unit and the 3rd receiving unit (not marked in Fig. 9).
Selecting unit, for selecting the second scene identity to be subscribed to from the corresponding relation;
Second transmitting element, for by the subscription solicited message for carrying second scene identity send to The gateway so that the gateway according to second scene identity obtain corresponding application scenarios and Corresponding unified data model;
3rd receiving unit, for receiving corresponding application scenarios that the gateway sends and right The unified data model answered.
In another optional implementation:The resolution unit 94 can include:Inquiry subelement, Parse subelement and display subelement (not marked in Fig. 9).
Subelement is inquired about, for inquiring about the corresponding model of first scene identity from the corresponding relation Mark;
Subelement is parsed, for being counted according to the corresponding unified data model of the model identification to described second According to progress dissection process,
Subelement is shown, for showing the dissection process on the corresponding application interface of the scene identity Data afterwards.
The function of unit and the implementation process of effect specifically refer to correspondence in the above method in said apparatus The implementation process of step, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is joined See the part explanation of embodiment of the method.Device embodiment described above be only it is schematical, The wherein described unit illustrated as separating component can be or may not be it is physically separate, make It can be for the part that unit is shown or may not be physical location, you can with positioned at a place, Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or Person's whole modules realize the purpose of this request program.Those of ordinary skill in the art are not paying creativeness In the case of work, you can to understand and implement.
Corresponding with Fig. 8, the embodiment of the present application additionally provides a kind of information interactive device, and described device can With on the gateway of service end, including:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
The data request information that client is sent is received, the data request information carries the first scene mark Know;
Corresponding first data are called from service end according to first scene identity;
First data are carried out at integration using the corresponding unified data model of first scene identity Reason, obtains the second data;
The data response message for carrying second data is sent to the client, so that the visitor Family end carries out dissection process to the second data in the data response message.
Corresponding with Fig. 9, the embodiment of the present application additionally provides a kind of information interactive device, and described device can With in client, including:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
When receiving application request, corresponding application scenarios, Yi Jisuo are determined according to the application request State corresponding first scene identity of application scenarios;
The data request information for carrying first scene identity is sent to gateway, so that the gateway Corresponding first data are called from service end according to first scene identity;
The data response message for carrying the second data that the gateway is sent is received, second data are The gateway is carried out whole using the corresponding unified data model of first scene identity to first data The data obtained after conjunction processing;
Second data are carried out at parsing according to the corresponding unified data model of first scene identity Reason, and export the data after the dissection process.
Those skilled in the art will readily occur to this after considering specification and putting into practice invention disclosed herein Other embodiments of application.The application is intended to any modification, purposes or the adaptability of the application Change, these modifications, purposes or adaptations follow the general principle of the application and including this Shen Please undocumented common knowledge or conventional techniques in the art.Description and embodiments only by It is considered as exemplary, the true scope of the application and spirit are pointed out by following claim.
It should be appreciated that the application be not limited to be described above and be shown in the drawings it is accurate Structure, and various modifications and changes can be being carried out without departing from the scope.Scope of the present application is only by institute Attached claim is limited.

Claims (22)

1. a kind of information interacting method, it is characterised in that methods described includes:
The data request information that client is sent is received, the data request information carries the first scene mark Know;
Corresponding first data are called from service end according to first scene identity;
First data are carried out at integration using the corresponding unified data model of first scene identity Reason, obtains the second data;
The data response message for carrying second data is sent to the client, so that the visitor Family end carries out dissection process to the second data in the data response message.
2. according to the method described in claim 1, it is characterised in that described according to the first scene mark Knowledge calls corresponding first data from service end, including:
At least one application programming interface API to be called is determined according to first scene identity;
Obtain the corresponding setting regulative strategies of each described API;
Data call request is sent to the service end according to the setting regulative strategy;
The data of calling of the service end return are received, it is described to call data to be first data.
3. according to the method described in claim 1, it is characterised in that methods described also includes:
Configure at least one application scenarios and the scene identity of each application scenarios;
Configure the model of the corresponding unified data model of each application scenarios and the unified data model Mark;
Configure the corresponding relation between each scene identity and each model identification;
The corresponding relation is sent to the client.
4. method according to claim 3, it is characterised in that methods described also includes:
The subscription solicited message of the client is received, the subscription solicited message carries the second scene mark Know;
Corresponding application scenarios and corresponding unified data model are obtained according to second scene identity, And send the corresponding application scenarios and corresponding unified data model to the client.
5. method according to claim 3, it is characterised in that methods described also includes:
Adjust the corresponding relation between each scene identity and each model identification;
Corresponding relation after the adjustment is sent to the client.
6. method according to claim 3, it is characterised in that described to utilize the scene identity pair The unified data model answered carries out integration processing to first data, obtains the second data, including:
Corresponding first model identification of first scene identity is inquired about from the corresponding relation;
Corresponding unified data model is determined according to first model identification;
Integration processing is carried out to first data using the corresponding unified data model, obtains described Second data.
7. a kind of information interacting method, it is characterised in that methods described includes:
When receiving application request, corresponding application scenarios, Yi Jisuo are determined according to the application request State corresponding first scene identity of application scenarios;
The data request information for carrying first scene identity is sent to gateway, so that the gateway Corresponding first data are called from service end according to first scene identity;
The data response message for carrying the second data that the gateway is sent is received, second data are The gateway is carried out whole using the corresponding unified data model of first scene identity to first data The data obtained after conjunction processing;
Second data are carried out at parsing according to the corresponding unified data model of first scene identity Reason, and export the data after the dissection process.
8. method according to claim 7, it is characterised in that methods described also includes:
Receive the corresponding relation between each scene identity and each model identification of the gateway transmission;
If the corresponding relation is different from the corresponding relation locally preserved, updated according to the corresponding relation The corresponding relation locally preserved;
If not including the corresponding relation locally, the corresponding relation is preserved.
9. method according to claim 8, it is characterised in that methods described also includes:
The second scene identity to be subscribed to is selected from the corresponding relation;
The subscription solicited message for carrying second scene identity is sent to the gateway, so that described Gateway obtains corresponding application scenarios and corresponding unified data model according to second scene identity;
Receive the corresponding application scenarios and corresponding unified data model that the gateway is sent.
10. method according to claim 8, it is characterised in that described according to the scene identity Corresponding unified data model carries out dissection process to second data, and exports after the dissection process Data, including:
The corresponding model identification of first scene identity is inquired about from the corresponding relation;
Dissection process is carried out to second data according to the corresponding unified data model of the model identification,
Data after showing the dissection process on the corresponding application interface of the scene identity.
11. a kind of information interactive device, it is characterised in that described device includes:
First receiving unit, the data request information for receiving client transmission, the request of data letter Breath carries the first scene identity;
Call unit, for calling corresponding first data from service end according to first scene identity;
Integral unit, for utilizing the corresponding unified data model of first scene identity to described first Data carry out integration processing, obtain the second data;
First transmitting element, for the data response message for carrying second data to be sent to described Client, so that the client carries out dissection process to the second data in the data response message.
12. device according to claim 11, it is characterised in that the call unit includes:
First determination subelement, for according to first scene identity determine at least one it is to be called should Use Program Interfaces API;
Subelement is obtained, for obtaining the corresponding setting regulative strategies of each described API;
Transmission sub-unit, please for sending data call to the service end according to the setting regulative strategy Ask;
Receiving subelement, the data of calling for receiving the service end return are described to call data to be institute State the first data.
13. device according to claim 11, it is characterised in that described device also includes:
First dispensing unit, the scene for configuring at least one application scenarios and each application scenarios Mark;
Second dispensing unit, for configuring the corresponding unified data model of each application scenarios and described The model identification of unified data model;
3rd dispensing unit, for configuring the corresponding relation between each scene identity and each model identification;
Second transmitting element, for the corresponding relation to be sent to the client.
14. device according to claim 13, it is characterised in that described device also includes:
Second receiving unit, the subscription solicited message for receiving the client, the subscription request letter Breath carries the second scene identity;
3rd transmitting element, for according to second scene identity obtain corresponding application scenarios and Corresponding unified data model, and by the corresponding application scenarios and corresponding unified data model Send to the client.
15. device according to claim 13, it is characterised in that described device also includes:
Adjustment unit, for adjusting the corresponding relation between each scene identity and each model identification;
4th transmitting element, for the corresponding relation after the adjustment to be sent to the client.
16. device according to claim 13, it is characterised in that the integral unit includes:
Subelement is inquired about, for inquiring about first scene identity corresponding first from the corresponding relation Model identification;
Second determination subelement, for determining corresponding unified data model according to first model identification;
Subelement is integrated, it is whole for being carried out using the corresponding unified data model to first data Conjunction is handled, and obtains second data.
17. a kind of information interactive device, it is characterised in that described device includes:
Determining unit, for when receiving application request, corresponding answer to be determined according to the application request With scene and corresponding first scene identity of the application scenarios;
First transmitting element, for by the data request information for carrying first scene identity send to Gateway, so that the gateway calls corresponding first data according to first scene identity from service end;
First receiving unit, letter is responded for receiving the data for carrying the second data that the gateway is sent Breath, second data are that the gateway utilizes the corresponding unified data model pair of first scene identity First data carry out the data obtained after integration processing;
Resolution unit, for according to the corresponding unified data model of first scene identity to described second Data carry out dissection process, and export the data after the dissection process.
18. device according to claim 17, it is characterised in that described device also includes:
Second receiving unit, for receiving each scene identity and each model identification that the gateway is sent Between corresponding relation;
Updating block, if different from the corresponding relation locally preserved for the corresponding relation, according to institute State corresponding relation and update the corresponding relation locally preserved;
Storage unit, if not including the corresponding relation for local, preserves the corresponding relation.
19. device according to claim 18, it is characterised in that described device also includes:
Selecting unit, for selecting the second scene identity to be subscribed to from the corresponding relation;
Second transmitting element, for by the subscription solicited message for carrying second scene identity send to The gateway so that the gateway according to second scene identity obtain corresponding application scenarios and Corresponding unified data model;
3rd receiving unit, for receiving corresponding application scenarios that the gateway sends and right The unified data model answered.
20. device according to claim 18, it is characterised in that the resolution unit includes:
Subelement is inquired about, for inquiring about the corresponding model of first scene identity from the corresponding relation Mark;
Subelement is parsed, for being counted according to the corresponding unified data model of the model identification to described second According to progress dissection process,
Subelement is shown, for showing the dissection process on the corresponding application interface of the scene identity Data afterwards.
21. a kind of information interactive device, it is characterised in that described device includes:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
The data request information that client is sent is received, the data request information carries the first scene mark Know;
Corresponding first data are called from service end according to first scene identity;
First data are carried out at integration using the corresponding unified data model of first scene identity Reason, obtains the second data;
The data response message for carrying second data is sent to the client, so that the visitor Family end carries out dissection process to the second data in the data response message.
22. a kind of information interactive device, it is characterised in that described device includes:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
When receiving application request, corresponding application scenarios, Yi Jisuo are determined according to the application request State corresponding first scene identity of application scenarios;
The data request information for carrying first scene identity is sent to gateway, so that the gateway Corresponding first data are called from service end according to first scene identity;
The data response message for carrying the second data that the gateway is sent is received, second data are The gateway is carried out whole using the corresponding unified data model of first scene identity to first data The data obtained after conjunction processing;
Second data are carried out at parsing according to the corresponding unified data model of first scene identity Reason, and export the data after the dissection process.
CN201610179425.2A 2016-03-25 2016-03-25 Information interacting method and device Pending CN107231398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610179425.2A CN107231398A (en) 2016-03-25 2016-03-25 Information interacting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610179425.2A CN107231398A (en) 2016-03-25 2016-03-25 Information interacting method and device

Publications (1)

Publication Number Publication Date
CN107231398A true CN107231398A (en) 2017-10-03

Family

ID=59932072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610179425.2A Pending CN107231398A (en) 2016-03-25 2016-03-25 Information interacting method and device

Country Status (1)

Country Link
CN (1) CN107231398A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656874A (en) * 2017-11-07 2018-02-02 中国银行股份有限公司 A kind of interface test method, device, simulation baffle plate and system
CN107729246A (en) * 2017-10-13 2018-02-23 广州阿里巴巴文学信息技术有限公司 For the auxiliary test methods of intended application, device, equipment and storage medium
CN108667647A (en) * 2018-03-30 2018-10-16 联动优势电子商务有限公司 A kind of setting method of device parameter, equipment and server
CN111143629A (en) * 2019-12-31 2020-05-12 广州信天翁信息科技有限公司 Data storage, processing and acquisition method based on identification recognition and related device thereof
CN112613271A (en) * 2020-12-28 2021-04-06 深圳壹账通创配科技有限公司 Data paging method and device, computer equipment and storage medium
WO2022105574A1 (en) * 2020-11-20 2022-05-27 北京沃东天骏信息技术有限公司 Information transmission method, system, and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090327139A1 (en) * 2008-06-27 2009-12-31 Microsoft Corporation Loosely coupled hosted application system
CN103345420A (en) * 2013-06-03 2013-10-09 百度在线网络技术(北京)有限公司 Method for massively calling API interfaces, system for massively calling API interfaces and device for massively calling API interfaces
CN103731427A (en) * 2013-12-31 2014-04-16 华为技术有限公司 Conversation processing method, device and system
US20140258441A1 (en) * 2011-09-29 2014-09-11 Israel L'Heureux Application programming interface for enhanced wireless local area network router
EP2871574A1 (en) * 2013-11-07 2015-05-13 Accenture Global Services Limited Analytics for application programming interfaces

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090327139A1 (en) * 2008-06-27 2009-12-31 Microsoft Corporation Loosely coupled hosted application system
US20140258441A1 (en) * 2011-09-29 2014-09-11 Israel L'Heureux Application programming interface for enhanced wireless local area network router
CN103345420A (en) * 2013-06-03 2013-10-09 百度在线网络技术(北京)有限公司 Method for massively calling API interfaces, system for massively calling API interfaces and device for massively calling API interfaces
EP2871574A1 (en) * 2013-11-07 2015-05-13 Accenture Global Services Limited Analytics for application programming interfaces
CN103731427A (en) * 2013-12-31 2014-04-16 华为技术有限公司 Conversation processing method, device and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729246A (en) * 2017-10-13 2018-02-23 广州阿里巴巴文学信息技术有限公司 For the auxiliary test methods of intended application, device, equipment and storage medium
CN107729246B (en) * 2017-10-13 2020-12-01 阿里巴巴(中国)有限公司 Auxiliary test method, device and equipment for target application and storage medium
CN107656874A (en) * 2017-11-07 2018-02-02 中国银行股份有限公司 A kind of interface test method, device, simulation baffle plate and system
CN108667647A (en) * 2018-03-30 2018-10-16 联动优势电子商务有限公司 A kind of setting method of device parameter, equipment and server
CN108667647B (en) * 2018-03-30 2022-02-25 联动优势电子商务有限公司 Method and device for setting device parameters and server
CN111143629A (en) * 2019-12-31 2020-05-12 广州信天翁信息科技有限公司 Data storage, processing and acquisition method based on identification recognition and related device thereof
CN111143629B (en) * 2019-12-31 2024-04-26 广州信天翁信息科技有限公司 Data storage, processing and acquisition method based on identification and related device thereof
WO2022105574A1 (en) * 2020-11-20 2022-05-27 北京沃东天骏信息技术有限公司 Information transmission method, system, and apparatus
CN112613271A (en) * 2020-12-28 2021-04-06 深圳壹账通创配科技有限公司 Data paging method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107231398A (en) Information interacting method and device
US10797976B2 (en) System and methods for facilitating object assignments
CN108510389A (en) Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain
JP6453417B2 (en) Dual SIM mobile communication device cloud identification method, device and system
US20160050128A1 (en) System and Method for Facilitating Communication with Network-Enabled Devices
CN104468592B (en) Login method and login system
US20160148259A1 (en) Method of managing cookie information for target advertisement and application for managing cookie information
CN103024698B (en) A kind of method, system and the mobile terminal of information that integrating each contact person
CN106933871A (en) Short linking processing method, device and short linked server
CN110032860A (en) Push, methods of exhibiting, device and the equipment of login mode
CN103634935B (en) WPS (Wi-Fi protected setup) or QSS (quick secure setup)-based network accessing method and device
CN110493074B (en) Method and system for testing server and client
CN108683704A (en) A kind of Socket network communications test method and its system, storage medium
CN105099769B (en) Abnormal operation processing method, equipment and the system of business platform
CN110474812A (en) Sample rate self-adapting regulation method and device
CN110413329A (en) IOT equipment remote debugging method, apparatus and system
CN109218370A (en) Message method and device, electronic equipment
CN111679811B (en) Web service construction method and device
CN105553770B (en) Data acquisition control method and device
US8027435B2 (en) Method and system for protocol embedded automated test control
CN113256095A (en) Draggable configured agile flow service construction method, system, device and medium
CN106330988A (en) Resending method and apparatus for hypertext transfer request, and client
CN106105098A (en) Switch and the processing method of service request message
CN109522222A (en) It is a kind of for educating the exception catching method and device of cloud platform
US20170004064A1 (en) Actions test automation

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171003