CN103516741A - Service request processing method and device - Google Patents

Service request processing method and device Download PDF

Info

Publication number
CN103516741A
CN103516741A CN201210209813.2A CN201210209813A CN103516741A CN 103516741 A CN103516741 A CN 103516741A CN 201210209813 A CN201210209813 A CN 201210209813A CN 103516741 A CN103516741 A CN 103516741A
Authority
CN
China
Prior art keywords
service request
aggregation gateway
sns
website
processing
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
CN201210209813.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.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210209813.2A priority Critical patent/CN103516741A/en
Publication of CN103516741A publication Critical patent/CN103516741A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a service request processing method and device. The method comprises the following steps: an aggregation gateway receives service requests initiated to social network sits (SNS) via a unified interface; based on the received service requests, the aggregation gateway determines whether the service requests belong to service requests that are processed via the aggregation gateway; and if the service requests are determined to belong to service requests that are processed via the aggregation gateway, the aggregation gateway calls function interfaces, corresponding to the service requests, of the SNSs, to process the service requests. The method of the invention helps to solve problems of the prior art that running flows of SNSs are complicated, development cost is high, service request processing is unreliable and user experience is affected. Therefore, operation complexity is reduced, time is saved, reliability of service request processing is enhanced, and effects of user experience are greatly improved.

Description

Service request processing method and device
Technical field
The present invention relates to the communications field, in particular to a kind of service request processing method and device.
Background technology
Social network sites (Social Network Sit, abbreviation SNS) more and more incorporated daily life, and different social network sites is providing diversified social experience for different social demands, for example, the famous social network sites such as Facebook, twitter, Sina's microblogging, Renren Network, Tengxun's microblogging has salient feature separately.Meanwhile, along with the arrival in Web2.0 epoch, internet arena is more open, and nearly all social network sites all passes through to set up the open platform of oneself, and site resource is open.
But, thisly only by the open platform of setting up oneself, the open degree of opening of site resource often cannot be met to SNS website user, especially personal development person's requirement; The open platform of social network sites is just opened own existing ability, and itself existing resource be limited, have self website feature, cannot meet the demand that SNS website user wishes each SNS website platform.Therefore, SNS website user need to arrive on each platform and register with Gains resources respectively.But use and the control interface of each SNS website self are not quite similar, developer need to understand the using method of each website open platform.In addition, for SNS website user, individual user need to log in different SNS websites when using different SNS interactive application, and user uses loaded down with trivial details.
Therefore, in correlation technique, because each SNS website there are differences, exist and use each SNS flow process loaded down with trivial details, development cost is large, and unreliable to the processing of service request, thereby user and developer are existed to the problem that user experiences that affects.
Summary of the invention
The invention provides a kind of service request processing method and device, at least to solve prior art because each SNS website there are differences, exist and use each SNS flow process loaded down with trivial details, development cost is large, and unreliable to the processing of service request, thereby be there is to the problem that user experiences that affects in user and developer.
According to an aspect of the present invention, provide a kind of service request processing method, having comprised: aggregation gateway has received the service request that each social network sites SNS is initiated by unified interface; Described aggregation gateway, according to the described service request receiving, judges whether described service request belongs to the service request of processing by described aggregation gateway; Judgment result is that be in the situation that, described aggregation gateway is called the functional interface of the SNS corresponding with described service request described service request is processed.
Preferably, the functional interface that calls the SNS corresponding with described service request in described aggregation gateway also comprises after described service request is processed: described aggregation gateway is obtained the result that the functional interface that calls the social network sites corresponding with described service request obtains after described service request is processed; Described aggregation gateway is treated to unified message format by the described result of obtaining; Described aggregation gateway sends the result with described unified message form by described unified interface.
Preferably, described aggregation gateway, according to the described service request receiving, judges whether described service request belongs to the service request of processing by described aggregation gateway and comprise: whether account and described aggregation gateway that described service request is initiated in judgement exist binding relationship by calling the application of the functional interface processing service request of described SNS website; Judgment result is that be in the situation that, determine that described service request belongs to the service request of processing by described aggregation gateway.
Preferably, the functional interface that described aggregation gateway is called the SNS corresponding with described service request is processed and is comprised described service request: described service request is resolved; According to the analysis result obtaining after described service request is resolved, determine the corresponding SNS of described service request website; Described aggregation gateway is called the functional interface of definite described SNS website described service request is processed.
Preferably, before described aggregation gateway receives by described unified interface the service request that described each SNS is initiated, also comprise: described aggregation gateway is usingd mode and described each SNS to each SNS registered application as third party's application and connected.
According to a further aspect in the invention, provide a kind of service request processing unit, be arranged in aggregation gateway, having comprised: receiver module, for receive the service request that each social network sites SNS is initiated by unified interface; Judge module, for according to the described service request receiving, judges whether described service request belongs to the service request of processing by described aggregation gateway; The first processing module, for judgment result is that be in the situation that, calls the functional interface of the SNS corresponding with described service request described service request is processed.
Preferably, also comprise: acquisition module, after described service request being processed for the functional interface that calls the SNS corresponding with described service request in described aggregation gateway, obtain the functional interface that calls the social network sites corresponding with described service request and described service request is processed to the result obtaining afterwards; The second processing module, for being treated to unified message format by the described result of obtaining; Sending module, for sending the result with described unified message form by described unified interface.
Preferably, described judge module comprises: the first judging unit, and whether account and the described aggregation gateway of for judging, initiating described service request there is binding relationship by calling the application of the functional interface processing service request of described SNS website; The first determining unit, in the situation that judgment result is that of described the first judging unit is to determine that described service request belongs to the service request of processing by described aggregation gateway.
Preferably, described the first processing module comprises: the first resolution unit, for described service request is resolved; The second determining unit, for determining the corresponding SNS of described service request website according to the analysis result obtaining after described service request is resolved; The first call unit, processes described service request for calling the functional interface of definite described SNS website.
Preferably, also comprise: set up module, before receiving by described unified interface the service request that described each SNS is initiated in described aggregation gateway, described aggregation gateway is usingd and is applied to mode and described each SNS of each SNS registered application and connect as third party.
By the present invention, adopt aggregation gateway by unified interface, to receive the service request that each social network sites SNS is initiated; Described aggregation gateway, according to the described service request receiving, judges whether described service request belongs to the service request of processing by described aggregation gateway; Judgment result is that be in the situation that, described aggregation gateway is called the functional interface of the SNS corresponding with described service request described service request is processed, having solved in prior art uses each SNS flow process loaded down with trivial details, development cost is large, and unreliable to the processing of service request, affects the problem that user experiences, and then reached the complexity that has reduced operation, save time, strengthen the reliability that service request is processed, improve significantly the effect that user experiences.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the flow chart of the service request processing method of the embodiment of the present invention;
Fig. 2 is according to the structured flowchart of the service request processing unit of the embodiment of the present invention;
Fig. 3 is the structured flowchart of service request processing unit according to the preferred embodiment of the invention;
Fig. 4 is according to the preferred structure block diagram of the judge module 24 in the service request processing unit of the embodiment of the present invention;
Fig. 5 is according to the preferred structure block diagram of the first processing module 26 in the service request processing unit of the embodiment of the present invention;
Fig. 6 is the structured flowchart of service request processing unit according to the preferred embodiment of the invention;
Fig. 7 is the schematic diagram of disposing according to the aggregation gateway system of the embodiment of the present invention;
Fig. 8 is another schematic diagram of disposing according to the aggregation gateway system of the embodiment of the present invention;
Fig. 9 is according to the flow chart of the account binding of the embodiment of the present invention;
Figure 10 realizes the flow chart of the feature operation of service request according to the embodiment of the present invention by aggregation gateway;
Figure 11 carries out the flow chart of unified operation to GeSNS website according to the aggregation gateway of the embodiment of the present invention.
Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
A kind of service request processing method is provided in the present embodiment, and Fig. 1 is according to the flow chart of the service request processing method of the embodiment of the present invention, and as shown in Figure 1, this flow process comprises the steps:
Step S102, aggregation gateway receives the service request that each social network sites SNS is initiated by unified interface;
Step S104, aggregation gateway, according to the service request receiving, judges whether this service request belongs to the service request of processing by aggregation gateway;
Step S106, judgment result is that be in the situation that, aggregation gateway is called the functional interface of the SNS corresponding with this service request this service request is processed.
Pass through above-mentioned steps, the unified interface that aggregation gateway provides has shielded the otherness of each SNS effectively, user can be carried out alternately a plurality of SNS by an interface, for the exploitation of many SNS interactive application, using many SNS to provide with the user who has DuoSNS website account may, with respect in prior art in order to use the resource of each SNS, need to complete the requirement with required each the satisfied property of there are differences of each SNS, for example, the otherness of interface, the otherness of registration, the otherness of access strategy etc., adopt unified interface that aggregation gateway provides not only to solve in correlation technique each SNS flow process of existing use loaded down with trivial details, development cost is large, and unreliable to the processing of service request, affect the problem that user experiences, it is clear that the unified interface that aggregation gateway provides also has, succinctly, the advantage of easy care, reduced the complexity of operation, save time, the reliability that enhancing is processed service request, improved significantly user's experience.
For aggregation gateway, relate to the processing of two aspects: the one, need to receive service request by unified interface, the 2nd, need to call after each SNS handles service request in aggregation gateway, result after service request is processed is treated to a unified form and sends, and aggregation gateway responds service request according to unified form.When receiving service request by unified interface, can according to parameter entrained in service request, distribute by distribution subsystem set in aggregation gateway to the service request receiving, and without carry out personalized input for each SNS; And when service request is responded according to unified form, the result that first needs aggregation gateway to obtain to call the functional interface of the social network sites corresponding with service request to obtain after service request is processed; Then, aggregation gateway is treated to unified message format by the result of obtaining; Aggregation gateway sends the result with unified message form by unified interface.That is, by unified information format, the result of processing is sent to aggregation gateway user, send the user of service request.By above-mentioned processing, by unified interface, realized the unification of service request with the whole flow process of response.
Aggregation gateway is according to the service request receiving, judge whether service request belongs to the service request of processing by aggregation gateway and also can adopt various ways, for example, can adopt direct processing mode, be about to certain SNS and be set to the website that acquiescence is processed business by aggregation gateway, so long as for the service request of this website, be all defaulted as and belong to the service request of processing by aggregation gateway, simplify determining step wherein.For whether more definite this service request of knowing belongs to the service request of processing by aggregation gateway, can also adopt another kind of processing mode, first, aggregation gateway is usingd mode and each SNS to each SNS registered application as third party application and is connected, then user being logined to the annexation that the account of SNS and aggregation gateway and each SNS exist binds, receiving service request, be ground, judge whether the account of initiating business request and aggregation gateway is processed service request application by calling the functional interface of SNS website exist above-mentioned binding relationship; It should be noted that, this binding relationship can be pre-stored in aggregation gateway, being about to account and aggregation gateway that user logins SNS binds as the application of SNS, now as aggregation gateway user, can the SNS after registration be conducted interviews and be used by this aggregation gateway, therefore, in the situation that judgment result is that the in the situation that of being and (have above-mentioned binding relationship), determine that service request belongs to the service request of processing by aggregation gateway.
In addition, aggregation gateway is called the functional interface of the SNS corresponding with service request service request is processed and can be comprised two steps: be first analyzing step: service request is resolved, be about to the parameter information of determining the SNS corresponding with this service request entrained in service request; According to the analysis result (parameter information parsing) obtaining after service request is resolved, determine the corresponding SNS of service request website; Treatment step: aggregation gateway is called the functional interface of definite SNS website service request is processed, in the process of calling, aggregation gateway need to first be called inner corresponding with each SNS interface corresponding to functional interface of this aggregation gateway, then according to this corresponding interface, starts the functional interface that each SNS is corresponding service request is processed.
A kind of service request processing unit is also provided in the present embodiment, and this device is used for realizing above-described embodiment and preferred implementation, has carried out repeating no more of explanation.As used below, the combination of software and/or the hardware of predetermined function can be realized in term " module ".Although the described device of following examples is preferably realized with software, hardware, or the realization of the combination of software and hardware also may and be conceived.
Fig. 2 is according to the structured flowchart of the service request processing unit of the embodiment of the present invention, and as shown in Figure 2, this device is arranged in aggregation gateway, comprises receiver module 22, judge module 24 and the first processing module 26, below this device is described.
Receiver module 22, for receiving the service request that each social network sites SNS is initiated by unified interface; Judge module 24, is connected to above-mentioned receiver module 22, for according to the service request receiving, judges whether service request belongs to the service request of processing by aggregation gateway; The first processing module 26, is connected to above-mentioned judge module 24, for judgment result is that be in the situation that, calls the functional interface of the SNS corresponding with service request service request is processed.
Fig. 3 is the structured flowchart of service request processing unit according to the preferred embodiment of the invention, as shown in Figure 3, this device, except comprising all modules shown in Fig. 2, also comprises acquisition module 32, the second processing module 34 and sending module 36, below this preferred embodiment is described.
Acquisition module 32, after service request being processed for the functional interface that calls the SNS corresponding with service request in aggregation gateway, obtain the functional interface that calls the social network sites corresponding with service request and service request is processed to the result obtaining afterwards; The second processing module 34, is connected to above-mentioned acquisition module 32, for the result of obtaining is treated to unified message format; Sending module 36, is connected to above-mentioned the second processing module 34, for send the result with unified message form by unified interface.
Fig. 4 is according to the preferred structure block diagram of the judge module 24 in the service request processing unit of the embodiment of the present invention, and as shown in Figure 4, this judge module 24 comprises the first judging unit 42 and the first determining unit 44.
The first judging unit 42, for judging whether the account of initiating business request and aggregation gateway is processed service request application by calling the functional interface of SNS website exist binding relationship; The first determining unit 44, is connected to above-mentioned the first judging unit 42, in the situation that judgment result is that of the first judging unit is to determine that service request belongs to the service request of processing by aggregation gateway.
Fig. 5 is according to the preferred structure block diagram of the first processing module 26 in the service request processing unit of the embodiment of the present invention, as shown in Figure 5, this first processing module 26 comprises the first resolution unit 52, the second determining unit 54 and the first call unit 56, below this first processing module 26 is described.
The first resolution unit 52, for resolving service request; The second determining unit 54, is connected to above-mentioned the first resolution unit 52, for determining the corresponding SNS of service request website according to the analysis result obtaining after service request is resolved; The first call unit 56, is connected to above-mentioned the second determining unit 54, for calling the functional interface of definite SNS website, service request is processed.
Fig. 6 is the structured flowchart of service request processing unit according to the preferred embodiment of the invention, as shown in Figure 6, this device is except comprising all modules shown in Fig. 2, also comprise and set up module 62, this is set up module 62 and is connected to above-mentioned receiver module 22, for receives the service request that each SNS is initiated by unified interface in aggregation gateway before, aggregation gateway is usingd and is applied to mode and each SNS of each SNS registered application and connect as third party.
Many SNS aggregation gateway system that above-described embodiment and preferred implementation provide, by the mode of user's unified interface being shielded to the interface otherness between different SNS service providers, unified platform not only can be provided for the user based on SNS website, to meet user, when developing SNS interactive application, have unified open interface; The user that can also meet SNS website unitized processing demands when carrying out regular job.
As many SNS aggregation gateway system, need YuSNS website to connect, want the user of WeiSNS website that unified interface is provided simultaneously, and process corresponding request.Therefore, many SNS aggregation gateway system relates generally to following Liang Ge aspect:
On the one hand, mutual with GeSNS website: first, according to the different access waies of GeSNS website (for example, OAUTH1.0a, OAUTH2.0 etc.), using aggregation gateway as third party, be applied in each great SNS website registration, make aggregation gateway system (or aggregation gateway) as the application of GeSNS website, thereby can be accessed and use by the user of aggregation gateway system, with this, shield when each SNS website user uses and need to adjust access strategy according to the difference of access way; Secondly, aggregation gateway being registered as to the resulting application of application ID is recorded in the configuration file of aggregation gateway with applied cryptography (standard for user resources mandate adopting due to each website is different, and the ID returning and name of code be difference to some extent); Then, aggregation gateway is called the open interface of each SNS website and is realized social functions, for example, give out information (microblogging), obtaining information etc.
On the other hand, the distribution subsystem in aggregation gateway is responsible for user's request to be distributed to the concrete SNS Website page that will access, without SNS website user, inputs the request of website separately; And for the user of aggregation gateway system provides the interface of number of different types, for example, the polytypes such as message interface (based on TCP, UDP or http protocol), file interface, to meet the user of different demands; In addition, for each SNS website interface, suction parameter etc., there are differences and shielded with the place of individual character, use simple and effective unified request form, make SNS website user in use distinguish intuitively the otherness of GeSNS website, be user-friendly to; Secondly, inner processing is carried out in the request that is sent to aggregation gateway for aggregation gateway user, after aggregation gateway system is resolved unified interface, navigates to corresponding SNS website to complete the task of relative users request.
More preferably, many SNS aggregation gateway system can adopt stateless mode alternately to user data, because stateless does not need mutual continuity when adopting distributed storage, for example: distributed storage is by a plurality of storage server A, B, C, D ... form, user's data store on A for the first time; If according to the situation of " having state ", while using data for the second time, also on required A, carry out alternately; If according to the mode of " stateless ", can arrive on B or C or other servers and obtain, that is, the mode of " stateless " has obvious advantage for distributed storage: when can carry out linear expansion and treating big data quantity, performance is higher.Therefore, the mutual employing stateless mode of many SNS aggregation gateway system to user data, and then support distributed deployment, when the data of the Internet user in the face of a large amount of, aggregation gateway system can be carried out linear expansion according to actual conditions, the performance of increase system when in the face of big data quantity; Storage subsystem in many SNS aggregation gateway system, as the module of storage aggregation gateway user profile, adopts cloud storage mode to deposit data, increases the disaster tolerance of system.
By above-described embodiment and preferred implementation, can will provide the resource of the GeSNS website of distinct interface and service to represent the user to GeSNS website by aggregation gateway system, shield the otherness between different web sites, enriched the interface type that LiaoSNS website provides; The durability reduction of application and the shortcoming of development cost increase that user brings for GeSNS website increasing of number of use have been solved; The aggregation gateway system with distributed deployment and cloud storage mode also makes system user resource obtain protection, increases disaster tolerance, and then effectively for SNS website user offers convenience, and effectively reduce the development cost of interactive application.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described.
Fig. 7 is the schematic diagram of disposing according to the aggregation gateway system of the embodiment of the present invention, as shown in Figure 7, this aggregation gateway system 74 one side YuSNS website Internet service user 721 HuoSNS website personal users 722 connect, be connected with GeSNS website 76 on the other hand, by the connection with above-mentioned two aspects, carry out corresponding processing, in addition, this aggregation gateway system 74 comprises itself: access distribution subsystem 742, service process subsystem 744, distributed storage subsystem 746 and resource interface subsystem 748, describe respectively above-mentioned each system below.
Access distribution subsystem 742, for user's request being distributed to the concrete SNS website that will access, inputs the request of website separately without SNS website user, in addition, also for the user of aggregation gateway system, provides the interface of number of different types;
Service process subsystem 744, the service request of distributing according to access distribution subsystem 742, resolves accordingly and calls the functional interface of corresponding SNS website and process to this service request;
Distributed storage subsystem 746, with the residing position of above-mentioned service process subsystem 744 can be identical, for storing aggregation gateway user's information and the configuration information of storage aggregation gateway while being registered to GeSNS website as application;
Resource interface subsystem 748, for coordinating service process subsystem 744 to call the corresponding function interface of GeSNS website, thereby realizes the processing to the service request of GeSNS website.
Certainly, deployment architecture figure for aggregation gateway system, can also there is another kind of manifestation mode, Fig. 8 is another schematic diagram of disposing according to the aggregation gateway system of the embodiment of the present invention, as shown in Figure 8, this aggregation gateway 84(is identical with aggregation gateway system 74 functions in Fig. 7) same one side and gateway user 82(be suitable with the function of SNS website Internet service user 721 HuoSNS website personal users 722 in Fig. 7) be connected, suitable with the GeSNS website 76 in Fig. 7 with GeSNS website 86(on the other hand) be connected, by the connection with above-mentioned two aspects, carry out corresponding processing, in addition, this aggregation gateway 84 comprises itself: access distribution subsystem 742 functions in access distribution module 842(and Fig. 7 are suitable), Service Processing Module 844(is suitable with service process subsystem 744 functions), distributed storage subsystem 746 functions in distributed storage module 846(and Fig. 7 are suitable) and resource interface module 848(and Fig. 7 in resource interface subsystem 748 functions suitable), not not repeating them here of the above-mentioned explanation of function having for modules.
Before using aggregation gateway, need to do following preparation:
The open platform registered application of the SNS website of 1, using at needs, for example, the application of " aggregation gateway " by name, wait website gives a response, and obtain application ID and the password that registered SNS website is returned, and by the application ID returning and the configuration of password writing system, can adopt the mode of configuration file or database to store, the client as aggregation gateway SNS website is indicated.
2, aggregation gateway user will carry out user's registration on needed SNS website, allows it have the authority of using the application of SNS website.
3, aggregation gateway user, before using the various functions interface of aggregation gateway, also needs the process through account binding.The interface of the consolidation form providing by aggregation gateway, binds user account and aggregation gateway in the application of corresponding SNS website, to can be developed and use in corresponding SNS website by aggregation gateway.
Fig. 9 is that as shown in Figure 9, this flow process comprises the steps: according to the flow chart of the account binding of the embodiment of the present invention
Step S902, aggregation gateway user sends bind request by the binding page, carries the parameter that navigates to concrete SNS website in request;
Step S904, aggregation gateway resource layer (resolution unit) is resolved bind request;
Step S906, aggregation gateway service process subsystem (processing unit) redirect request is to GeSNS website official login page;
Step S908, aggregation gateway user inputs user account and the password of corresponding website at the SNS page, login SNS website;
After step S910 ,SNS website is processed and logined successfully, be redirected to aggregation gateway binding callback interface;
Step S912, the resolution unit of aggregation gateway sends authentication request GeiSNS website by processing unit again;
Step S914 ,SNS website backward reference token (Acess Token) is given aggregation gateway;
Step S916, aggregation gateway is preserved binding relationship in storage subsystem;
Step S918, aggregation gateway is called binding notification interface, notice binding result.
Figure 10 be according to the embodiment of the present invention by aggregation gateway, realize the flow chart of the feature operation of service request, as shown in figure 10, this flow process comprises the steps:
Step S1002, aggregation gateway user initiates function request to the resolution unit of aggregation gateway;
Step S1004, the resolution unit of aggregation gateway is resolved the function request receiving, and analysis result is proceeded to the processing unit of aggregation gateway;
Step S1006, the functional interface of the processing unit of aggregation gateway by calling GeSNS website to function request process;
Step S1008, GeSNS website completes the corresponding function of function request by each functional interface calling and realizes;
Step S1010, GeSNS website will return to the processing unit of aggregation gateway as response results to the result of function request;
Step S1012, the processing unit of aggregation gateway creates unified response results for the result of returning;
Step S1014, the processing unit of aggregation gateway returns to the response execution result returning the resolution unit of aggregation gateway;
Step S1016, the resolution unit of aggregation gateway returns to aggregation gateway user by the response execution result returning.
After above-mentioned preparation completes, can be so that unified operation be carried out in required SNS website by aggregation gateway, Figure 11 carries out the flow chart of unified operation to GeSNS website according to the aggregation gateway of the embodiment of the present invention, as shown in figure 11, this flow process comprises the steps:
Step S1102, aggregation gateway SNS website is registered as an application;
Step S1104, aggregation gateway receives aggregation gateway user's service request, and for example, the transmission that the unified interface that aggregation gateway user provides by aggregation gateway is asked to gateway, carries the required parameter that navigates to concrete SNS website in request;
Step S1106, second step, the resolution unit of aggregation gateway, by the parsing to parameter in request, judges whether this aggregation gateway user is registered SNS website user; Judgment result is that be in the situation that, enter step S1110, otherwise enter step S1108;
Step S1108, this aggregation gateway user SNS registers website, and after registration completes, returns to step S1104 and resend service request;
Step S1110, by the parameter of obtaining after resolving, determine the object website of request transmission, the function that need to complete etc., and the request after resolving is delivered to the processing unit of aggregation gateway, the processing unit of aggregation gateway receives through resolving after request later, by the parameter comparison after resolving in binding relationship and request, whether the aggregation gateway user that judgement sends request has carried out account binding, in the situation that the determination result is NO, enter step S1112, otherwise enter step S1114;
Step S1112, carry out account binding, do not carry out account bindings, do not preserve binding relationship, the processing unit of service process subsystem is sent to resolution unit by errored response, resolution unit and then be sent to the user of aggregation gateway, carries out account binding, and after account has been bound, return to step S1104 and resend service request;
Step S1114, carries out Business Processing according to service request, and, after judgment result is that and having carried out account bindings, processing unit calls the functional interface of the corresponding GeSNS website of intra-gateway, sends the request to corresponding SNS website;
Step S1116, GeSNS processes service request website, and after SNS website completes the function of request, and the whether success of execution result of function is returned in judgement, in the successful situation of SNS websites response, enters step S1118, otherwise returns to step S1120;
Step S1118, returns to processing success response;
Step S1120, unifies response results according to failure cause;
Step S1122, returns to unified failure result response.
It should be noted that, in processing, first processing unit can receive the execution result that the official website of SNS website is returned, afterwards, aggregation gateway will be made unified message format by the request of GeSNS website and response by processing unit, to meet aggregation gateway user's demand, after receiving the execution result of official website response, the processing unit of aggregation gateway can create the execution result response of consolidation form, and by processing unit, this response is sent to resolution unit, and then the response of execution result is sent to the user of aggregation gateway by resolution unit.
The many SNS aggregation gateway providing in above-described embodiment and preferred implementation is processed in the scheme of service request, by the open interface between different SNS website is unified, that the user of WeiSNS website provides is clear, succinct, the interface of easy care, receive unified execution result simultaneously, be applicable to the exploitation of DuoSNS website interactive application and have the user's of DuoSNS website account use; Not only can reduce development cost, reduce the complexity of operation, save time, strengthen the reliability of request and the readability returning results simultaneously, ensure better user's experience effect.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a service request processing method, is characterized in that, comprising:
Aggregation gateway receives the service request that each social network sites SNS is initiated by unified interface;
Described aggregation gateway, according to the described service request receiving, judges whether described service request belongs to the service request of processing by described aggregation gateway;
Judgment result is that be in the situation that, described aggregation gateway is called the functional interface of the SNS corresponding with described service request described service request is processed.
2. method according to claim 1, is characterized in that, the functional interface that calls the SNS corresponding with described service request in described aggregation gateway also comprises after described service request is processed:
Described aggregation gateway is obtained the result that the functional interface that calls the social network sites corresponding with described service request obtains after described service request is processed;
Described aggregation gateway is treated to unified message format by the described result of obtaining;
Described aggregation gateway sends the result with described unified message form by described unified interface.
3. method according to claim 1, is characterized in that, described aggregation gateway, according to the described service request receiving, judges whether described service request belongs to the service request of processing by described aggregation gateway and comprise:
Whether account and described aggregation gateway that described service request is initiated in judgement there is binding relationship by calling the application of the functional interface processing service request of described SNS website;
Judgment result is that be in the situation that, determine that described service request belongs to the service request of processing by described aggregation gateway.
4. method according to claim 1, is characterized in that, described aggregation gateway is called the functional interface of the SNS corresponding with described service request described service request is processed and comprised:
Described service request is resolved;
According to the analysis result obtaining after described service request is resolved, determine the corresponding SNS of described service request website;
Described aggregation gateway is called the functional interface of definite described SNS website described service request is processed.
5. according to the method described in any one in claim 1-4, it is characterized in that, before described aggregation gateway receives by described unified interface the service request that described each SNS is initiated, also comprise:
Described aggregation gateway is usingd mode and described each SNS to each SNS registered application as third party application and is connected.
6. a service request processing unit, is characterized in that, is arranged in aggregation gateway, comprising:
Receiver module, for receiving the service request that each social network sites SNS is initiated by unified interface;
Judge module, for according to the described service request receiving, judges whether described service request belongs to the service request of processing by described aggregation gateway;
The first processing module, for judgment result is that be in the situation that, calls the functional interface of the SNS corresponding with described service request described service request is processed.
7. device according to claim 6, is characterized in that, also comprises:
Acquisition module, after described service request being processed for the functional interface that calls the SNS corresponding with described service request in described aggregation gateway, obtain the functional interface that calls the social network sites corresponding with described service request and described service request is processed to the result obtaining afterwards;
The second processing module, for being treated to unified message format by the described result of obtaining;
Sending module, for sending the result with described unified message form by described unified interface.
8. device according to claim 6, is characterized in that, described judge module comprises:
The first judging unit, whether account and the described aggregation gateway of for judging, initiating described service request there is binding relationship by calling the application of the functional interface processing service request of described SNS website;
The first determining unit, in the situation that judgment result is that of described the first judging unit is to determine that described service request belongs to the service request of processing by described aggregation gateway.
9. device according to claim 6, is characterized in that, described the first processing module comprises:
The first resolution unit, for resolving described service request;
The second determining unit, for determining the corresponding SNS of described service request website according to the analysis result obtaining after described service request is resolved;
The first call unit, processes described service request for calling the functional interface of definite described SNS website.
10. according to the device described in any one in claim 6-9, it is characterized in that, also comprise: set up module, before receiving by described unified interface the service request that described each SNS is initiated in described aggregation gateway, described aggregation gateway is usingd and is applied to mode and described each SNS of each SNS registered application and connect as third party.
CN201210209813.2A 2012-06-25 2012-06-25 Service request processing method and device Pending CN103516741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210209813.2A CN103516741A (en) 2012-06-25 2012-06-25 Service request processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210209813.2A CN103516741A (en) 2012-06-25 2012-06-25 Service request processing method and device

Publications (1)

Publication Number Publication Date
CN103516741A true CN103516741A (en) 2014-01-15

Family

ID=49898771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210209813.2A Pending CN103516741A (en) 2012-06-25 2012-06-25 Service request processing method and device

Country Status (1)

Country Link
CN (1) CN103516741A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016127885A1 (en) * 2015-02-13 2016-08-18 腾讯科技(深圳)有限公司 Packet management method, apparatus, and system
CN106161480A (en) * 2016-09-28 2016-11-23 四川长虹电器股份有限公司 SMS platform service scheduling method based on gateway resource pond
CN106878243A (en) * 2016-06-06 2017-06-20 阿里巴巴集团控股有限公司 Method for processing business and device
CN109639629A (en) * 2018-10-30 2019-04-16 平安科技(深圳)有限公司 Data access processing method, device, computer equipment and storage medium
CN112667539A (en) * 2021-01-05 2021-04-16 北京中电普华信息技术有限公司 Data transmission interface, data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050171954A1 (en) * 2004-01-29 2005-08-04 Yahoo! Inc. Selective electronic messaging within an online social network for SPAM detection
CN101901252A (en) * 2010-06-23 2010-12-01 中兴通讯股份有限公司 Method for integrating same user data on multiple websites and integration platform
CN102141913A (en) * 2010-02-02 2011-08-03 昆达电脑科技(昆山)有限公司 Method for integrating a plurality of accounts into interface and related communication device thereof
CN102143452A (en) * 2011-05-20 2011-08-03 重庆国虹科技发展有限公司 Method for parallelly integrating multistate instant messaging in mobile phone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050171954A1 (en) * 2004-01-29 2005-08-04 Yahoo! Inc. Selective electronic messaging within an online social network for SPAM detection
CN102141913A (en) * 2010-02-02 2011-08-03 昆达电脑科技(昆山)有限公司 Method for integrating a plurality of accounts into interface and related communication device thereof
CN101901252A (en) * 2010-06-23 2010-12-01 中兴通讯股份有限公司 Method for integrating same user data on multiple websites and integration platform
CN102143452A (en) * 2011-05-20 2011-08-03 重庆国虹科技发展有限公司 Method for parallelly integrating multistate instant messaging in mobile phone

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016127885A1 (en) * 2015-02-13 2016-08-18 腾讯科技(深圳)有限公司 Packet management method, apparatus, and system
US10637676B2 (en) 2015-02-13 2020-04-28 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and system for managing follower accounts in groups
CN106878243A (en) * 2016-06-06 2017-06-20 阿里巴巴集团控股有限公司 Method for processing business and device
CN106161480A (en) * 2016-09-28 2016-11-23 四川长虹电器股份有限公司 SMS platform service scheduling method based on gateway resource pond
CN106161480B (en) * 2016-09-28 2019-06-21 四川长虹电器股份有限公司 SMS platform service scheduling method based on gateway resource pond
CN109639629A (en) * 2018-10-30 2019-04-16 平安科技(深圳)有限公司 Data access processing method, device, computer equipment and storage medium
CN109639629B (en) * 2018-10-30 2023-04-18 平安科技(深圳)有限公司 Data access processing method and device, computer equipment and storage medium
CN112667539A (en) * 2021-01-05 2021-04-16 北京中电普华信息技术有限公司 Data transmission interface, data processing method and device

Similar Documents

Publication Publication Date Title
EP2888868B1 (en) Calling an unready terminal
US8856735B2 (en) System and method of generating REST2REST services from WADL
CN102257791B (en) Efficient and on demand convergence of audio and non-audio portions of a communication session for phones
EP3251286B1 (en) Highly scalable, fault tolerant remote access architecture and method of connecting thereto
CN103516741A (en) Service request processing method and device
CN102812665A (en) Pluggable token provider model to implement authentication across multiple web services
CN102573112A (en) Telecommunication network capability opening method, system and alliance support platform
US20140351335A1 (en) Method for sharing multimedia content between two users
CN1761188B (en) Simple point logging in method and simple point logging out method
CN104754009A (en) Service acquisition and invocation method, device, client-side and server
WO2021042815A1 (en) Http redirect status code capture method and apparatus, and computer device
CN111680993B (en) Data processing method, device, computer and readable storage medium
EP3673364B1 (en) Web application configuration management
CN112965841A (en) H5-based cloud mobile phone payment method and device
CN110673970B (en) Cross-process calling system and method based on web application
WO2012097728A1 (en) Method and device for proxy access of open platform
CN104113511B (en) A kind of method, system and relevant apparatus for accessing IMS network
CN111182023B (en) Mutual aid task processing method and system
Banerjee et al. Telecom mashups: enabling web 2.0 for telecom services
CN101800974A (en) Method for processing task request of mobile equipment and user agent application server
CN117094857A (en) Online signing method, online signing device, electronic equipment, program product and medium
JP5632429B2 (en) Service authentication method and system for building a closed communication environment in an open communication environment
CN114124508B (en) Application login method and system
CN112583877B (en) Resource information processing method and device, storage medium and electronic equipment
CN115314296A (en) Account number merging method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20140115