CN105577710A - Service providing method, service acquiring method, devices and system - Google Patents

Service providing method, service acquiring method, devices and system Download PDF

Info

Publication number
CN105577710A
CN105577710A CN201410528521.4A CN201410528521A CN105577710A CN 105577710 A CN105577710 A CN 105577710A CN 201410528521 A CN201410528521 A CN 201410528521A CN 105577710 A CN105577710 A CN 105577710A
Authority
CN
China
Prior art keywords
service
call
isp
information
guider
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410528521.4A
Other languages
Chinese (zh)
Other versions
CN105577710B (en
Inventor
曲子深
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201410528521.4A priority Critical patent/CN105577710B/en
Publication of CN105577710A publication Critical patent/CN105577710A/en
Application granted granted Critical
Publication of CN105577710B publication Critical patent/CN105577710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a service providing method, a service acquiring method, devices and a system. The service providing method comprises the following steps: receiving a service call request sent by a service caller, wherein the service call request contains the information of a service to be called; routing the call service request to a corresponding service provider according to the information of the service to be called so as to enable the service provider to provide a service according to the information of the service to be called and get a service result; and receiving the service result sent by the service provider, and sending the service result to the service caller. By using the method, communication between the service caller and the service provider can be routed in a unified manner, there is no need to repeat coding for different service callers, and the efficiency is improved.

Description

Service is provided and obtains the methods, devices and systems of serving
Technical field
The application relates to communication technical field, particularly relates to a kind of methods, devices and systems providing service and obtain service.
Background technology
The client of application program can communicate with ISP, obtains the service needed.Wherein, client-side is as comprised the module of Javascript module and employing JAVA/ObjectiveC language, and Javascript module is communicated with ISP by JSBridge.
In correlation technique, for dissimilar client, ISP needs to encode respectively, and such as, corresponding Javascript module adopts a kind of coded system, and the corresponding module of JAVA/ObjectiveC language that adopts adopts another kind of coded system.This mode can cause there is repeated work, and efficiency is poor.
Summary of the invention
The application is intended to solve one of technical problem in correlation technique at least to a certain extent.
For this reason, an object of the application is to propose a kind of method providing service, and the method can reduce repeated encoding, raises the efficiency.
Another object of the application is to propose a kind of method obtaining service.
Another object of the application is to propose a kind of method providing service.
Another object of the application is to propose a kind of guider.
Another object of the application is to propose a kind of service call device.
Another object of the application is to propose a kind of service providing apparatus.
Another object of the application is to propose a kind of service provider system.
For achieving the above object, the method providing service that the embodiment of the present application proposes, comprising: what receive that service call person sends calls service request, described in call in service request the information comprising the service that will call; According to the information of the described service that will call, by described service request route of calling to corresponding ISP, to make described ISP according to the information providing services of the described service that will call and to obtain service result; Receive the described service result that described ISP sends, and described service result is sent to described service call person.
The method that service is provided that the embodiment of the present application proposes, what sent by reception service call person calls service request, and will service request route be called to corresponding ISP, and, receive service result service result is sent to service call person that ISP sends, can realize unifying route to the communication between service call person and ISP, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
For achieving the above object, the method of the acquisition service that the embodiment of the present application proposes, comprise: call service request by the guider preset to ISP's transmission, describedly call in service request the information comprising the service that will call, to make described ISP according to the information providing services of the described service that will call and to obtain service result; Receive the described service result that described ISP is sent by described guider.
The method of the acquisition service that the embodiment of the present application proposes, service request is called by sending, and will service request route be called to corresponding ISP by the guider preset, and, receive the service result that ISP is sent by described guider, the unified route that can realize service call and communicate between person with ISP by guider, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
For achieving the above object, the method providing service that the embodiment of the present application proposes, comprising: what receive that service call person sent by the guider preset calls service request, described in call in service request the information comprising the service that will call; According to the information providing services of the described service that will call, and obtain service result; Described service result is sent to described service call person by described guider.
The method that service is provided that the embodiment of the present application proposes, what the guider preset by receiving service call person warp sent calls service request, and according to the information providing services of the service that will call, and, service result is sent to described service call person by described guider, can be communicated with ISP by the guider preset, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
For achieving the above object, the guider that the embodiment of the present application proposes, comprising: the first receiver module, and what send for the person that receives service call calls service request, described in call in service request the information comprising the service that will call; Routing module, for the information according to the described service that will call, by described service request route of calling to corresponding ISP, to make described ISP according to the information providing services of the described service that will call and to obtain service result; Second receiver module, for receiving the described service result that described ISP sends; Sending module, for sending to described service call person by described service result.
The guider that the embodiment of the present application proposes, what sent by reception service call person calls service request, and will service request route be called to corresponding ISP, and, receive service result service result is sent to service call person that ISP sends, can realize unifying route to the communication between service call person and ISP, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
For achieving the above object, the service call device that the embodiment of the present application proposes, comprise: sending module, service request is called to ISP's transmission for the guider by presetting, describedly call in service request the information comprising the service that will call, to make described ISP according to the information providing services of the described service that will call and to obtain service result; Receiver module, for receiving the described service result that described ISP is sent by described guider.
The service call device that the embodiment of the present application proposes, service request is called by sending, and will service request route be called to corresponding ISP by the guider preset, and, receive the service result that ISP is sent by described guider, the unified route that can realize service call and communicate between person with ISP by guider, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
For achieving the above object, the service providing apparatus that the embodiment of the present application proposes, comprising: receiver module, and what sent by the guider preset for the person that receives service call calls service request, described in call in service request the information comprising the service that will call; Module is provided, for the information providing services according to the described service that will call, and obtains service result; Sending module, for sending to described service call person by described service result by described guider.
The service providing apparatus that the embodiment of the present application proposes, what the guider preset by receiving service call person warp sent calls service request, and according to the information providing services of the service that will call, and, service result is sent to described service call person by described guider, can be communicated with ISP by the guider preset, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
For achieving the above object, the service provider system that the embodiment of the present application proposes, comprises the guider described in above-mentioned either side, service call device and service providing apparatus.
The service provider system that the embodiment of the present application proposes, what sent by guider reception service call person calls service request, and will service request route be called to corresponding ISP, and, receive service result service result is sent to service call person that ISP sends, can realize unifying route to the communication between service call person and ISP, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
The aspect that the application adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by the practice of the application.
Accompanying drawing explanation
The application above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is a kind of schematic flow sheet providing the method for service that the application one embodiment proposes;
Fig. 2 is a kind of schematic flow sheet providing the method for service that another embodiment of the application proposes;
Fig. 3 is a kind of schematic flow sheet obtaining the method for service that another embodiment of the application proposes;
Fig. 4 is a kind of schematic flow sheet providing the method for service that another embodiment of the application proposes;
Fig. 5 is a kind of schematic flow sheet providing the method for service that another embodiment of the application proposes;
Fig. 6 is a kind of schematic flow sheet providing the method for service that another embodiment of the application proposes;
Fig. 7 is the structural representation of a kind of guider that another embodiment of the application proposes;
Fig. 8 is the structural representation of a kind of guider that another embodiment of the application proposes;
Fig. 9 is the structural representation of a kind of service call device that another embodiment of the application proposes;
Figure 10 is the structural representation of a kind of service call device that another embodiment of the application proposes;
Figure 11 is the structural representation of a kind of service providing apparatus that another embodiment of the application proposes;
Figure 12 is the structural representation of a kind of service providing apparatus that another embodiment of the application proposes;
Figure 13 is the structural representation of a kind of service provider system that another embodiment of the application proposes.
Embodiment
Be described below in detail the embodiment of the application, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the application, and the restriction to the application can not being interpreted as.On the contrary, the embodiment of the application comprise fall into attached claims spirit and intension within the scope of all changes, amendment and equivalent.
Below with reference to the accompanying drawings providing service and obtaining the methods, devices and systems of serving according to the embodiment of the present application described.
Fig. 1 is the schematic flow sheet providing the method for service that the application one embodiment proposes, and the method comprises:
S101: what guider received that service call person sends calls service request, described in call in service request the information comprising the service that will call.
In correlation technique, in the process obtaining service, service call person directly communicates with ISP, and service call person is such as Javascript module or the module adopting JAVA/ObjectiveC language.
And in the present embodiment, a device will be set up, this device can be called guider, guider is arranged on service call between person and ISP, the communication of guider for forwarding service call between person and ISP, unifies route to the communication between service call person and ISP.Concrete, the flow process that the flow process that guider performs can provide see the present embodiment.
Wherein, what service call person sent calls the information comprised in service request can be URL (UniformResoureLocator, URL(uniform resource locator)) address.ISP is when configuration service, and different service can configure different URL addresses, so that the service corresponding according to URL address acquisition.
S102: guider according to the information of the described service that will call, by calling service request route to corresponding ISP, to make described ISP according to the information providing services of the described service that will call and to obtain service result.
Wherein, different services can be provided by same ISP, or different services also can be provided by different ISPs.
Can corresponding relation between the information of the pre-configured service that will call and ISP in guider, according to this corresponding relation, service request route will be called to corresponding ISP.
URL address for the information of the service that will call, guider can according to the log-on message obtained in advance, determine the URL rule that described URL address belongs to, and determine the information of the ISP corresponding with described URL rule, preserve the information of ISP and the corresponding relation of described URL rule in described log-on message; By the described ISP calling service request route and specify to the information of described ISP.
In another embodiment, see Fig. 2, also comprised before step S101:
S201: the acceptable URL rule receiving service provider registers.
Particularly, ISP by oneself acceptable URL rule, can be supplied to described guider.Wherein, the acceptable URL rule of ISP, the i.e. set of this ISP's acceptable URL address.The service that this ISP can provide this URL address corresponding is shown when ISP can accept a URL address.
In an embodiment of the application, this URL rule can represent with regular expression.
S202: be kept at corresponding with the information of ISP for described URL rule in log-on message.
Particularly, after registration, guider can generate corresponding log-on message to ISP, wherein comprises the information of ISP and the URL rule of correspondence.
After guider obtains this log-on message, receive comprise URL address call service request after, just can determine corresponding ISP according to this log-on message, and then service request route will be called to corresponding ISP.
S103: guider receives the service result that ISP sends, and service result is sent to service call person.
Particularly, after guider receives the service result of ISP's transmission, service result is sent to the service call person of this service of request.In a specific embodiment of the application, this service result can adopt synchronous backtrack mode or the asynchronous backtrack mode person that returns to service call.
What the present embodiment was sent by reception service call person calls service request, and will service request route be called to corresponding ISP, and, receive service result service result is sent to service call person that ISP sends, can realize unifying route to the communication between service call person and ISP, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
Above-mentioned based on guider, accordingly, as the executive agent person that is service call, see Fig. 3, the method for the acquisition service that another embodiment of the application proposes comprises:
S301: call service request to ISP's transmission by the guider preset, describedly call in service request the information comprising the service that will call, to make described ISP according to the information providing services of the described service that will call and to obtain service result.
Wherein, service call person can be Javascript module or the module adopting JAVA/ObjectiveC language.
The information calling the service that will call comprised in service request can be URL (UniformResoureLocator, URL(uniform resource locator)) address.
Service call person is when needs obtain service, and such as, when needing to carry out " adding shopping cart " this operation, service call person can send and call service request, to obtain " adding shopping cart " this service.
Service call person can the corresponding relation of pre-configured service and URL address, and such as, configuration " adding shopping cart " is corresponding with a URL address, comprises a URL address calling in service request afterwards.
In the present embodiment, need to arrange guider between service call person and ISP.After what guider receives service call person sent call service request, mode as shown in Figure 1 or 2 can be adopted by its route to ISP.
S302: receive the service result that ISP is sent by described guider.
Particularly, different services can be provided by different ISPs, now, after an ISP receives and calls service request, the service that this ISP can provide can be provided, such as, the service that first service supplier provides " adding shopping cart ", guider according to pre-configured information when the information of the service that will call is a URL address, service request route will be called to first service supplier, after then first service supplier receives and calls service request, provide the service of " adding shopping cart ".Or, different services can be provided by same ISP, now, ISP can the corresponding relation of pre-configured URL address and service, to call according to what receive the service that the URL address comprised in service request provides correspondence, such as, configure a URL address corresponding with " adding shopping cart ", 2nd URL address is corresponding with " entering shopping cart to settle accounts ", the service of " adding shopping cart " is provided when the information of the service that will call is a URL address afterwards, and the service of " entering shopping cart clearing " is provided when the information of the service that will call is the 2nd URL address.
After ISP obtains service result, asynchronous or synchronous mode can be adopted through the guider person that returns to service call.
The present embodiment calls service request by transmission, and will service request route be called to corresponding ISP by the guider preset, and, receive the service result that ISP is sent by described guider, the unified route that can realize service call and communicate between person with ISP by guider, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
Accordingly, when executive agent is ISP, as shown in Figure 4, the method for service that provides that another embodiment of the application proposes comprises:
S401: what ISP receives service call person was sent by the guider preset calls service request, described in call in service request the information comprising the service that will call.
Wherein, ISP can provide to adopt the equipment such as the method for JAVA/ObjectiveC language compilation and the server of service.
What service call person sent calls the information comprised in service request can be URL (UniformResoureLocator, URL(uniform resource locator)) address.
In the present embodiment, need to arrange guider between service call person and ISP.After what guider receives service call person sent call service request, mode as shown in Figure 1 or 2 can be adopted by its route to ISP.
S402: ISP according to the information providing services of the service that will call, and obtains service result.
Particularly, different services can be provided by different ISPs, now, after an ISP receives and calls service request, the service that this ISP can provide can be provided, such as, the service that first service supplier provides " adding shopping cart ", guider according to pre-configured information when the information of the service that will call is a URL address, service request route will be called to first service supplier, after then first service supplier receives and calls service request, provide the service of " adding shopping cart ".Or, different services can be provided by same ISP, now, ISP can the corresponding relation of pre-configured URL address and service, to call according to what receive the service that the URL address comprised in service request provides correspondence, such as, configure a URL address corresponding with " adding shopping cart ", 2nd URL address is corresponding with " entering shopping cart to settle accounts ", the service of " adding shopping cart " is provided when the information of the service that will call is a URL address afterwards, and the service of " entering shopping cart clearing " is provided when the information of the service that will call is the 2nd URL address.
S403: described service result is sent to described service call person by described guider by ISP.
Particularly, after ISP obtains service result, asynchronous or synchronous mode can be adopted through the guider person that returns to service call.
Optionally, see Fig. 5, also comprised before step S401:
S501: service call person sends log-on message to described guider.
Particularly, ISP by oneself acceptable URL rule, can be supplied to described guider.Wherein, the acceptable URL rule of ISP, the i.e. set of this ISP's acceptable URL address.The service that this ISP can provide this URL address corresponding is shown when ISP can accept a URL address.After registration, guider can generate corresponding log-on message to ISP, wherein comprises the information of ISP and the URL rule of correspondence.
In an embodiment of the application, this URL rule can represent with regular expression.
In an embodiment of the application, after guider obtains this log-on message, receive comprise URL address call service request after, just can determine corresponding ISP according to this log-on message, and then service request route will be called to corresponding ISP.
What the present embodiment was sent by the guider of reception service call person through presetting calls service request, and according to the information providing services of the service that will call, and, service result is sent to described service call person by described guider, can be communicated with ISP by the guider preset, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
Fig. 6 is the method providing service that another embodiment proposes, and as shown in Figure 6, the method comprises:
S601: ISP's navigation device registers acceptable URL rule.
Particularly, ISP by oneself acceptable URL rule, can be supplied to guider.
Wherein, the acceptable URL rule of ISP, the i.e. set of this ISP's acceptable URL address.This ISP of set expression of ISP's acceptable URL address can provide the service that in this set, URL address is corresponding.
Optionally, the set of URL address can comprise a URL address or multiple URL address.
In an embodiment of the application, this acceptable URL rule can represent with regular expression.
Guider can generate corresponding log-on message after receiving the acceptable URL rule of service provider registers, guider can be kept at corresponding with the information of this ISP for the acceptable URL rule of service provider registers in log-on message.
Such as, the log-on message of a corresponding ISP comprises:
^Http://taobao\.com/business/.*
BusinessClass
Wherein, ^Http: //taobao .com/business/.* be the URL rule represented with regular expression, BusinessClass is the information of ISP.
S602: service call person navigation device sends and calls service request, calls in service request the information comprising the service that will call.
Wherein, service call person can comprise: Javascript module, or, adopt the module of JAVA/ObjectiveC language.Service invocation request is sent to guider by JSBridge by service call person.
The information calling the service that will call comprised in service request can be URL (UniformResoureLocator, URL(uniform resource locator)) address.
Particularly, service call person can the corresponding relation of pre-configured service and URL address, and such as, configuration " adding shopping cart " is corresponding with a URL address, comprises a URL address calling in service request afterwards.
S603: guider is after service request is called in reception, according to the log-on message obtained in advance, determine the URL rule that described URL address belongs to, and determine the information of the ISP corresponding with described URL rule, and the ISP that will service request route be called specify to the information of described ISP.
Wherein, the information of ISP and the corresponding relation of described URL rule is preserved in log-on message.
In an embodiment of the application, after guider obtains log-on message, receive comprise URL address call service request time, determine the URL rule that described URL address belongs to, just can determine the information of corresponding ISP regular with described URL according to this log-on message.
Particularly, guider can according to the information of the ISP corresponding with described URL rule, by the ISP calling service request route and specify to the information of described ISP.
For example, the acceptable URL rule of this service provider registers is ^Http: //taobao .com/business/.*, the processor class performing this URL rule is called BusinessClass, so, when guider receive URL address that request comprises belong to above-mentioned URL rule time, guider will call service request route to processor class corresponding to BusinessClass.
S604: ISP receives and calls service request, and according to the information providing services of the described service that will call, and obtain service result.
Particularly, different services can be provided by different ISPs, now, after an ISP receives and calls service request, the service that this ISP can provide can be provided, such as, the service that first service supplier provides " adding shopping cart ", guider according to pre-configured information when the information of the service that will call is a URL address, service request route will be called to first service supplier, after then first service supplier receives and calls service request, provide the service of " adding shopping cart ".Or, different services can be provided by same ISP, now, ISP can the corresponding relation of pre-configured URL address and service, to call according to what receive the service that the URL address comprised in service request provides correspondence, such as, configure a URL address corresponding with " adding shopping cart ", 2nd URL address is corresponding with " entering shopping cart to settle accounts ", the service of " adding shopping cart " is provided when the information of the service that will call is a URL address afterwards, and the service of " entering shopping cart clearing " is provided when the information of the service that will call is the 2nd URL address.
S605: service result is sent to guider by ISP.
In the specific embodiment of the application, after ISP obtains service result, asynchronous or synchronous mode can be adopted through the guider person that returns to service call.
S606: guider receives the service result that ISP sends, and service result is sent to service call person.
The present embodiment is by arranging guider, the log-on message of configuration service supplier in guider, guider can will call service request route to corresponding ISP according to this log-on message, the unified route that can realize service call between person and ISP, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.Meanwhile, the development process of service is become unified pattern, can multiple situation be suitable for, decrease coding and repeat, reduce development difficulty.
In order to realize above-described embodiment, the application also proposes a kind of guider.
Fig. 7 is the structural representation of the guider of another embodiment of the application.Described guider is arranged on service call between person and ISP, and the communication of guider for forwarding service call between person and ISP, unifies route to the communication between service call person and ISP.As shown in Figure 7, this guider comprises: the first receiver module 10, routing module 20, second receiver module 30 and sending module 40.
Particularly, what the first receiver module 10 sent for the person that receives service call calls service request, described in call in service request the information comprising the service that will call.Wherein, what service call person sent calls the information comprised in service request can be URL (UniformResoureLocator, URL(uniform resource locator)) address.ISP is when configuration service, and different service can configure different URL addresses, so that the service corresponding according to URL address acquisition.
Routing module 20 for the information according to the described service that will call, by described service request route of calling to corresponding ISP, to make described ISP according to the information providing services of the described service that will call and to obtain service result.Wherein, different services can be provided by same ISP, or different services also can be provided by different ISPs.
Can corresponding relation between the information of the pre-configured service that will call and ISP in guider, routing module 20, according to this corresponding relation, will call service request route to corresponding ISP.
The described service result that second receiver module 30 sends for receiving described ISP.
Sending module 40 is for sending to described service call person by described service result.
More specifically, after the second receiver module 30 receives the service result of ISP's transmission, service result is sent to the service call person of this service of request by sending module 40.In a specific embodiment of the application, this service result can adopt synchronous backtrack mode or the asynchronous backtrack mode person that returns to service call.
Optionally, see Fig. 8, this guider also comprises: determining unit 21, routing unit 22, the 3rd receiver module 50 and preservation module 60.Wherein, routing module 20 comprises determining unit 21 and routing unit 22.
Particularly, the log-on message that determining unit 21 obtains in advance for basis, determine the URL rule that described URL address belongs to, and determine the information of the ISP corresponding with described URL rule, in described log-on message, preserve the information of ISP and the corresponding relation of described URL rule.
URL address for the information of the service that will call, determining unit 21 can according to the log-on message obtained in advance, determine the URL rule that described URL address belongs to, and determine the information of the ISP corresponding with described URL rule, preserve the information of ISP and the corresponding relation of described URL rule in described log-on message, then routing unit 22 is by the described ISP calling service request route and specify to the information of described ISP.
3rd receiver module 50 is for receiving the acceptable URL rule of described service provider registers.More specifically, ISP by oneself acceptable URL rule, can be supplied to described guider.Wherein, the acceptable URL rule of ISP, the i.e. set of this ISP's acceptable URL address.The service that this ISP can provide this URL address corresponding is shown when ISP can accept a URL address.
In an embodiment of the application, this URL rule can represent with regular expression.
Preserve module 60 for being kept at corresponding with the information of described ISP for described URL rule in described log-on message.More specifically, ISP after registration, preserves module 60 and can generate corresponding log-on message, wherein comprises the information of ISP and the URL rule of correspondence.
After guider obtains this log-on message, receive comprise URL address call service request after, just can determine corresponding ISP according to this log-on message, and then service request route will be called to corresponding ISP.
In a specific embodiment of the application, the second receiver module 30 is also for receiving the described service result that described ISP adopts synchronous backtrack mode or asynchronous backtrack mode to send.
What the present embodiment was sent by reception service call person calls service request, and will service request route be called to corresponding ISP according to the log-on message of the ISP obtained in advance, and, receive service result service result is sent to service call person that ISP sends, can realize unifying route to the communication between service call person and ISP, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
In order to realize above-described embodiment, the application also proposes a kind of service call device.
Fig. 9 is the structural representation of the service call device of another embodiment of the application.Service call person in the corresponding said method embodiment of service call device in the present embodiment.Wherein, service call person can be Javascript module or the module adopting JAVA/ObjectiveC language.As shown in Figure 9, this service call device comprises: sending module 10 and receiver module 20.
Particularly, sending module 10 calls service request for the guider by presetting to ISP's transmission, describedly call in service request the information comprising the service that will call, to make described ISP according to the information providing services of the described service that will call and to obtain service result.Wherein, the information calling the service that will call comprised in service request can be URL (UniformResoureLocator, URL(uniform resource locator)) address.
Service call person is when needs obtain service, and such as, when needing to carry out " adding shopping cart " this operation, sending module 10 can send and call service request, to obtain " adding shopping cart " this service.
Service call person can the corresponding relation of pre-configured service and URL address, and such as, configuration " adding shopping cart " is corresponding with a URL address, comprises a URL address calling in service request afterwards.
In the present embodiment, need between service call person and ISP, arrange a device, this device can be called guider, and the communication of guider for forwarding service call between person and ISP, unifies route to the communication between service call person and ISP.After what guider received that sending module 10 sends call service request, mode as shown in Figure 1 or 2 can be adopted by its route to ISP.
The described service result that receiver module 20 is sent by described guider for receiving described ISP.After ISP obtains service result, receiver module 20 is also for receiving the described service result that described ISP adopts synchronous backtrack mode or asynchronous backtrack mode to send.
Optionally, as shown in Figure 10, on the basis of Fig. 9, this service call device also comprises: determination module 30.
Determination module 30, for the corresponding relation according to pre-configured service and URL address, determines the URL address corresponding with the service that will call, to be included in described URL address in the information of the described service that will call.More specifically, different services can be provided by different ISPs, now, after an ISP receives and calls service request, the service that this ISP can provide can be provided, such as, the service that first service supplier provides " adding shopping cart ", guider according to pre-configured information when the information of the service that will call is a URL address, service request route will be called to first service supplier, after then first service supplier receives and calls service request, provide the service of " adding shopping cart ".Or, different services can be provided by same ISP, now, ISP can the corresponding relation of pre-configured URL address and service, to call according to what receive the service that the URL address comprised in service request provides correspondence, such as, configure a URL address corresponding with " adding shopping cart ", 2nd URL address is corresponding with " entering shopping cart to settle accounts ", the service of " adding shopping cart " is provided when the information of the service that will call is a URL address afterwards, and the service of " entering shopping cart clearing " is provided when the information of the service that will call is the 2nd URL address.
The present embodiment calls service request by transmission, and will service request route be called to corresponding ISP by the guider preset, and, receive the service result that ISP is sent by described guider, the unified route that can realize service call and communicate between person with ISP by guider, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
In order to realize above-described embodiment, the application also proposes a kind of service providing apparatus.
Figure 11 is the structural representation of the service providing apparatus of another embodiment of the application.ISP in the corresponding said method embodiment of service providing apparatus in the present embodiment.Wherein, ISP can provide to adopt the equipment such as the method for JAVA/ObjectiveC language compilation and the server of service.As shown in figure 11, this service providing apparatus comprises: receiver module 10, provide module 20 and sending module 30.
Particularly, what receiver module 10 was sent by the guider preset for the person that receives service call calls service request, described in call in service request the information comprising the service that will call.
Wherein, what service call person sent calls the information comprised in service request can be URL (UniformResoureLocator, URL(uniform resource locator)) address.
In the present embodiment, need between service call person and ISP, arrange a device, this device can be called guider, and the communication of guider for forwarding service call between person and ISP, unifies route to the communication between service call person and ISP.After what guider receives service call person sent call service request, mode as shown in Figure 1 or 2 can be adopted by its route to ISP.
There is provided module 20 for the information providing services according to the described service that will call, and obtain service result.More specifically, different services can be provided by different ISPs, now, after an ISP receives and calls service request, the service providing module 20 can provide this ISP can to provide, such as, the service that first service supplier provides " adding shopping cart ", guider according to pre-configured information when the information of the service that will call is a URL address, service request route will be called to first service supplier, after then first service supplier receives and calls service request, provide the service of " adding shopping cart ".Or, different services can be provided by same ISP, now, the corresponding module 20 that provides can comprise multiple providing unit for providing difference to serve, ISP can the corresponding relation of pre-configured URL address and service, to provide module 20 to call according to what receive the service that the URL address comprised in service request provides correspondence, such as, configure a URL address corresponding with " adding shopping cart ", 2nd URL address is corresponding with " entering shopping cart to settle accounts ", the service of " adding shopping cart " is provided when the information of the service that will call is a URL address afterwards, and the service of " entering shopping cart clearing " is provided when the information of the service that will call is the 2nd URL address.
Sending module 30 is for sending to described service call person by described service result by described guider.More specifically, after ISP obtains service result, described service result also for by synchronous mode or asynchronous mode, is sent to described service call person by described guider by sending module 30.
Optionally, see Figure 12, on the basis of Figure 11, this service providing apparatus also comprises: Registering modules 40.
Registering modules 40, for registering acceptable URL rule to described guider, calls service request described in the URL address route comprised to make described guider information that is regular according to described URL and the described service that will call.More specifically, ISP by oneself acceptable URL rule, can be supplied to described guider.Wherein, the acceptable URL rule of ISP, the i.e. set of this ISP's acceptable URL address.The service that this ISP can provide this URL address corresponding is shown when ISP can accept a URL address.After registration, guider can generate corresponding log-on message to ISP, wherein comprises the information of ISP and the URL rule of correspondence.
In an embodiment of the application, this URL rule can represent with regular expression.
In an embodiment of the application, after guider obtains this log-on message, receive comprise URL address call service request after, just can determine corresponding ISP according to this log-on message, and then service request route will be called to corresponding ISP.
What the present embodiment was sent by the guider of reception service call person through presetting calls service request, and according to the information providing services of the service that will call, and, service result is sent to described service call person by described guider, can be communicated with ISP by the guider preset, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
In order to realize above-described embodiment, the application also proposes a kind of service provider system.
Figure 13 is the structural representation of the service provider system of another embodiment of the application.This service provider system comprises the guider 100 described in above-mentioned any embodiment, service call device 200 and service providing apparatus 300.
What the present embodiment was sent by guider reception service call person calls service request, and will service request route be called to corresponding ISP, and, receive service result service result is sent to service call person that ISP sends, can realize unifying route to the communication between service call person and ISP, instead of directly carry out mutual between service call person and ISP, because ISP does not need to provide direct service to service call person, just do not need to provide different codings for different service call persons yet, therefore, repeated encoding can not be needed, raise the efficiency.
It should be noted that, in the description of the application, term " first ", " second " etc. only for describing object, and can not be interpreted as instruction or hint relative importance.In addition, in the description of the application, except as otherwise noted, the implication of " multiple " is two or more.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred implementation of the application comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by the embodiment person of ordinary skill in the field of the application.
Should be appreciated that each several part of the application can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the application can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
In the description of this specification, at least one embodiment that specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained in the application or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and described the embodiment of the application above, be understandable that, above-described embodiment is exemplary, can not be interpreted as the restriction to the application, and those of ordinary skill in the art can change above-described embodiment, revises, replace and modification in the scope of the application.

Claims (25)

1. a method for service is provided, it is characterized in that, comprising:
What receive that service call person sends calls service request, described in call in service request the information comprising the service that will call;
According to the information of the described service that will call, by described service request route of calling to corresponding ISP, to make described ISP according to the information providing services of the described service that will call and to obtain service result;
Receive the described service result that described ISP sends, and described service result is sent to described service call person.
2. method according to claim 1, it is characterized in that, the information of the described service that will call comprises the pre-configured URL address corresponding with the described service that will call, the information of the service will called described in described basis, by described service request route of calling to corresponding ISP, comprising:
According to the log-on message obtained in advance, determine the URL rule that described URL address belongs to, and determine the information of the ISP corresponding with described URL rule, in described log-on message, preserve the information of ISP and the corresponding relation of described URL rule;
By the described ISP calling service request route and specify to the information of described ISP.
3. method according to claim 2, is characterized in that, also comprises:
Receive the acceptable URL rule of described service provider registers;
Be kept at corresponding with the information of described ISP for described URL rule in described log-on message.
4. method according to claim 3, is characterized in that, described acceptable URL rule represents with regular expression.
5. method according to claim 1, is characterized in that, the described service result that the described ISP of described reception sends, and comprising:
Receive the described service result that described ISP adopts synchronous backtrack mode or asynchronous backtrack mode to send.
6. obtain a method for service, it is characterized in that, comprising:
By preset guider to ISP send call service request, described in call in service request the information comprising the service that will call, to make described ISP according to the information providing services of the described service that will call and to obtain service result;
Receive the described service result that described ISP is sent by described guider.
7. method according to claim 6, is characterized in that, the described service result that the described ISP of described reception is sent by described guider, comprising:
Receive described ISP and adopt synchronous backtrack mode or asynchronous backtrack mode, the described service result of transmission.
8. method according to claim 6, is characterized in that, also comprises:
According to the corresponding relation of pre-configured service and URL address, determine the URL address corresponding with the service that will call, to be included in described URL address in the information of the described service that will call.
9. a service providing method, is characterized in that, comprising:
What receive that service call person sent by the guider preset calls service request, described in call in service request the information comprising the service that will call;
According to the information providing services of the described service that will call, and obtain service result;
Described service result is sent to described service call person by described guider.
10. method according to claim 9, is characterized in that, the information of the described service that will call comprises the pre-configured URL address corresponding with the described service that will call, and described method also comprises:
Register acceptable URL rule to described guider, described in the URL address route comprised to make described guider information that is regular according to described URL and the described service that will call, call service request.
11. methods according to claim 10, is characterized in that, described acceptable URL rule represents with regular expression.
12. methods according to claim 10, is characterized in that, described described service result are sent to described service call person by described guider, comprising:
By synchronous mode or asynchronous mode, described service result is sent to described service call person by described guider.
13. 1 kinds of guiders, is characterized in that, comprising:
First receiver module, what send for the person that receives service call calls service request, described in call in service request the information comprising the service that will call;
Routing module, for the information according to the described service that will call, by described service request route of calling to corresponding ISP, to make described ISP according to the information providing services of the described service that will call and to obtain service result;
Second receiver module, for receiving the described service result that described ISP sends;
Sending module, for sending to described service call person by described service result.
14. devices according to claim 13, is characterized in that, the information of the described service that will call comprises the pre-configured URL address corresponding with the described service that will call, and described routing module, comprising:
Determining unit, for the log-on message that basis obtains in advance, determine the URL rule that described URL address belongs to, and determine the information of the ISP corresponding with described URL rule, in described log-on message, preserve the information of ISP and the corresponding relation of described URL rule;
Routing unit, for by the described ISP calling service request route and specify to the information of described ISP.
15. devices according to claim 14, is characterized in that, also comprise:
3rd receiver module, for receiving the acceptable URL rule of described service provider registers;
Preserve module, for being kept at corresponding with the information of described ISP for described URL rule in described log-on message.
16. devices according to claim 15, is characterized in that, described acceptable URL rule represents with regular expression.
17. devices according to claim 13, is characterized in that, described second receiver module is also for receiving the described service result that described ISP adopts synchronous backtrack mode or asynchronous backtrack mode to send.
18. 1 kinds of service call devices, is characterized in that, comprising:
Sending module, service request is called to ISP's transmission for the guider by presetting, describedly call in service request the information comprising the service that will call, to make described ISP according to the information providing services of the described service that will call and to obtain service result;
Receiver module, for receiving the described service result that described ISP is sent by described guider.
19. devices according to claim 18, is characterized in that, described receiver module is also for receiving the described service result that described ISP adopts synchronous backtrack mode or asynchronous backtrack mode to send.
20. devices according to claim 18, is characterized in that, also comprise:
Determination module, for the corresponding relation according to pre-configured service and URL address, determines the URL address corresponding with the service that will call, to be included in described URL address in the information of the described service that will call.
21. 1 kinds of service providing apparatus, is characterized in that, comprising:
Receiver module, what sent by the guider preset for the person that receives service call calls service request, described in call in service request the information comprising the service that will call;
Module is provided, for the information providing services according to the described service that will call, and obtains service result;
Sending module, for sending to described service call person by described service result by described guider.
22. devices according to claim 21, is characterized in that, the information of the described service that will call comprises the pre-configured URL address corresponding with the described service that will call, and described device also comprises:
Registering modules, for registering acceptable URL rule to described guider, calls service request described in the URL address route comprised to make described guider information that is regular according to described URL and the described service that will call.
23. devices according to claim 22, is characterized in that, described acceptable URL rule represents with regular expression.
24. devices according to claim 22, is characterized in that, described service result also for by synchronous mode or asynchronous mode, is sent to described service call person by described guider by described sending module.
25. 1 kinds of service provider systems, is characterized in that, comprise the guider described in claim 13-17, the service call device described in claim 18-20 and the service providing apparatus described in claim 21-24.
CN201410528521.4A 2014-10-09 2014-10-09 Service is provided and obtains the methods, devices and systems of service Active CN105577710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410528521.4A CN105577710B (en) 2014-10-09 2014-10-09 Service is provided and obtains the methods, devices and systems of service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410528521.4A CN105577710B (en) 2014-10-09 2014-10-09 Service is provided and obtains the methods, devices and systems of service

Publications (2)

Publication Number Publication Date
CN105577710A true CN105577710A (en) 2016-05-11
CN105577710B CN105577710B (en) 2019-06-11

Family

ID=55887364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410528521.4A Active CN105577710B (en) 2014-10-09 2014-10-09 Service is provided and obtains the methods, devices and systems of service

Country Status (1)

Country Link
CN (1) CN105577710B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227524A (en) * 2016-07-18 2016-12-14 北京妙医佳信息技术有限公司 A kind of PaaS platform framework for health control and its implementation
CN107181675A (en) * 2017-06-20 2017-09-19 北京奇艺世纪科技有限公司 Service calling method and device
CN108600360A (en) * 2018-04-18 2018-09-28 国电南京自动化股份有限公司 A kind of REST service system and method based on zookeeper
CN108959864A (en) * 2017-05-25 2018-12-07 阿里巴巴集团控股有限公司 Funcall authentication, the method and apparatus of calling function and authority information method for building up
CN109951528A (en) * 2019-02-21 2019-06-28 中国工商银行股份有限公司 Support method for processing business, the apparatus and system of more deployment modes
CN110311867A (en) * 2019-07-02 2019-10-08 江苏满运软件科技有限公司 Application module management method, device, electronic equipment, storage medium
CN110875961A (en) * 2018-08-31 2020-03-10 阿里巴巴集团控股有限公司 Data service processing method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388887A (en) * 2008-10-15 2009-03-18 中兴通讯股份有限公司 Network service processing method and system
CN101695076A (en) * 2009-09-21 2010-04-14 中兴通讯股份有限公司 Method and device of unified agent adaptation based on Web service and adaptation system
CN102255867A (en) * 2010-05-18 2011-11-23 华为技术有限公司 Service request processing method, device and system
CN102750281A (en) * 2011-04-19 2012-10-24 腾讯科技(深圳)有限公司 Script processing method and system of browser
CN103716308A (en) * 2013-12-17 2014-04-09 北京京东尚科信息技术有限公司 Multiprotocol platform communication method and multiprotocol platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388887A (en) * 2008-10-15 2009-03-18 中兴通讯股份有限公司 Network service processing method and system
CN101695076A (en) * 2009-09-21 2010-04-14 中兴通讯股份有限公司 Method and device of unified agent adaptation based on Web service and adaptation system
CN102255867A (en) * 2010-05-18 2011-11-23 华为技术有限公司 Service request processing method, device and system
CN102750281A (en) * 2011-04-19 2012-10-24 腾讯科技(深圳)有限公司 Script processing method and system of browser
CN103716308A (en) * 2013-12-17 2014-04-09 北京京东尚科信息技术有限公司 Multiprotocol platform communication method and multiprotocol platform

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227524A (en) * 2016-07-18 2016-12-14 北京妙医佳信息技术有限公司 A kind of PaaS platform framework for health control and its implementation
CN108959864A (en) * 2017-05-25 2018-12-07 阿里巴巴集团控股有限公司 Funcall authentication, the method and apparatus of calling function and authority information method for building up
CN107181675A (en) * 2017-06-20 2017-09-19 北京奇艺世纪科技有限公司 Service calling method and device
CN107181675B (en) * 2017-06-20 2020-03-03 北京奇艺世纪科技有限公司 Service calling method and device
CN108600360A (en) * 2018-04-18 2018-09-28 国电南京自动化股份有限公司 A kind of REST service system and method based on zookeeper
CN110875961A (en) * 2018-08-31 2020-03-10 阿里巴巴集团控股有限公司 Data service processing method, device and system
CN109951528A (en) * 2019-02-21 2019-06-28 中国工商银行股份有限公司 Support method for processing business, the apparatus and system of more deployment modes
CN109951528B (en) * 2019-02-21 2022-04-15 中国工商银行股份有限公司 Service processing method, device and system supporting multiple deployment modes
CN110311867A (en) * 2019-07-02 2019-10-08 江苏满运软件科技有限公司 Application module management method, device, electronic equipment, storage medium

Also Published As

Publication number Publication date
CN105577710B (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN105577710A (en) Service providing method, service acquiring method, devices and system
CN103905497B (en) Realize the method, apparatus and application platform of third-party application business website log
CN109729040B (en) Method, apparatus and computer readable medium for selection of a protocol
CN104869143A (en) Data sharing method and device, client and server
US9722890B2 (en) Integrated incident management for hybrid landscapes
CN101808051B (en) Application integration gateway and control method thereof
CN105721306A (en) Configuration information transmission method and device
CN104717284A (en) Menu management method, device and system
US20160345283A1 (en) Method and apparatus for adjacent node registration, and method and system for cross-node registration
CN101809950A (en) Method and apparatus for performing load balancing for a control plane of a mobile communication network
CN113206753A (en) Information configuration method and management unit
EP3142316B1 (en) Attribute operating method and apparatus
EP3075174B1 (en) Method and apparatus for identifying application instances within a machine-to-machine network domain
CN106571968B (en) Service switching method and system
CN103634298B (en) A kind of data base's connection processing method and device
CN111770123A (en) Communication method, apparatus and storage medium
US20120246235A1 (en) Attribute information sharing providing system, access information management device, access information proxy management device, method and program therefor
CN106453213A (en) Intersystem call method and device
US9609674B2 (en) Machine-to-machine domain proxy
EP3937460A2 (en) Enhanced identification in communication networks
CN105721398A (en) Data access method and device
CN106899504B (en) Cross-cluster service routing method and device
CN103222252A (en) Service access apparatus, method, computer program and computer program product for selective initiation of communication
CN105359494B (en) System, device, method and network server node is presented in mirror image between website
CN114172958A (en) Private computing node, system, method, apparatus, and storage medium

Legal Events

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