CN105577710B - Service is provided and obtains the methods, devices and systems of service - Google Patents

Service is provided and obtains the methods, devices and systems of service Download PDF

Info

Publication number
CN105577710B
CN105577710B CN201410528521.4A CN201410528521A CN105577710B CN 105577710 B CN105577710 B CN 105577710B CN 201410528521 A CN201410528521 A CN 201410528521A CN 105577710 B CN105577710 B CN 105577710B
Authority
CN
China
Prior art keywords
service
isp
information
url
called
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.)
Active
Application number
CN201410528521.4A
Other languages
Chinese (zh)
Other versions
CN105577710A (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

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application proposes a kind of methods, devices and systems for providing service and obtaining service.The method of the offer service includes: the calling service request for receiving service caller and sending, the information called in service request comprising the service to be called;According to the information of the service to be called, the calling service request is routed to corresponding ISP, so that the ISP is according to the information providing services of the service to be called and obtains service result;The service result that the ISP sends is received, and the service result is sent to the service caller.This method, which can be realized, carries out unified routing to the communication between service caller and ISP, does not need to improve efficiency for different service caller repeated encodings.

Description

Service is provided and obtains the methods, devices and systems of service
Technical field
This application involves field of communication technology more particularly to a kind of method, apparatus for providing service and obtaining service and it is System.
Background technique
The client of application program can be communicated with ISP, obtain the service of needs.Wherein, client is for example wrapped Include Javascript module and using JAVA/ObjectiveC language module, Javascript module by JSBridge with ISP's communication.
In the related technology, for different types of client, ISP needs to encode respectively, for example, corresponding Javascript module uses a kind of coding mode, and the corresponding module using JAVA/ObjectiveC language is compiled using another Code mode.This mode will lead to that there are repeated work, inefficients.
Summary of the invention
The application is intended to solve at least some of the technical problems in related technologies.
For this purpose, the purpose of the application is to propose that a kind of method for providing and servicing, this method can reduce repetition volume Code, improves efficiency.
Further object is to propose a kind of method for obtaining service.
Further object is to propose a kind of method for providing and servicing.
Further object is to propose a kind of navigation device.
Further object is to propose a kind of service call device.
Further object is to propose a kind of service providing apparatus.
Further object is to propose a kind of service provider system.
In order to achieve the above objectives, the method for the offer service that the embodiment of the present application proposes, comprising: receive service caller hair The calling service request sent, the information called in service request comprising the service to be called;According to the clothes to be called The calling service request is routed to corresponding ISP, so that the ISP is according to described by the information of business The information providing services of the service to be called simultaneously obtain service result;Receive the service knot that the ISP sends Fruit, and the service result is sent to the service caller.
The method for the offer service that the embodiment of the present application proposes, is asked by receiving the calling service that service caller is sent It asks, and service request will be called to be routed to corresponding ISP, and, receive the service result of ISP's transmission simultaneously Service result is sent to service caller, may be implemented to carry out the communication between service caller and ISP unification Routing, rather than directly interacted between service caller and ISP, since ISP does not need to service Caller provides direct service therefore, can not there is no need to provide different codings for different service callers yet Repeated encoding is needed, is improved efficiency.
In order to achieve the above objectives, the method for the acquisition service that the embodiment of the present application proposes, comprising: filled by preset navigation It sets to send to ISP and calls service request, the information called in service request comprising the service to be called, so that The ISP is according to the information providing services of the service to be called and obtains service result;The service is received to mention The service result that donor is sent by the navigation device.
The method for the acquisition service that the embodiment of the present application proposes is called service request by sending, and is led by preset Boat device will call service request to be routed to corresponding ISP, and, it receives ISP and is filled by the navigation The service result of transmission is set, the unified road communicated between service caller and ISP can be realized by navigation device By, rather than directly interacted between service caller and ISP, since ISP does not need to adjust to service User provides direct service and therefore, can be not required to also there is no need to provide different codings for different service callers Repeated encoding is wanted, is improved efficiency.
In order to achieve the above objectives, the method for the offer service that the embodiment of the present application proposes, comprising: it is logical to receive service caller Cross the calling service request that preset navigation device is sent, the information called in service request comprising the service to be called; According to the information providing services of the service to be called, and obtain service result;The service result is passed through into the navigation Device is sent to the service caller.
The method for the offer service that the embodiment of the present application proposes, is sent out by receiving service caller through preset navigation device The calling service request sent, and according to the information providing services of the service to be called, and, service result is passed through into the navigation Device is sent to the service caller, can be communicated by preset navigation device with ISP, rather than takes It is directly interacted between business caller and ISP, since ISP does not need to provide directly to service caller Service, also there is no need to provide different codings for different service callers, therefore, it may not be necessary to repeated encoding, It improves efficiency.
In order to achieve the above objectives, the navigation device that the embodiment of the present application proposes, comprising: the first receiving module, for receiving The calling service request that service caller is sent, the information called in service request comprising the service to be called;Route mould The calling service request is routed to corresponding ISP for the information of the service to be called according to by block, with Make the ISP according to the information providing services of the service to be called and obtains service result;Second receives mould Block, the service result sent for receiving the ISP;Sending module, for the service result to be sent to The service caller.
The navigation device that the embodiment of the present application proposes, the calling service request sent by receiving service caller, and will Service request is called to be routed to corresponding ISP, and, it receives the service result that ISP sends and will service As a result it is sent to service caller, may be implemented to carry out the communication between service caller and ISP unified routing, Rather than directly interacted between service caller and ISP, since ISP does not need to service caller Direct service is provided, also there is no need to provide different codings for different service callers, therefore, it may not be necessary to weight Multiple coding, improves efficiency.
In order to achieve the above objectives, the service call device that the embodiment of the present application proposes, comprising: sending module, for passing through Preset navigation device is sent to ISP calls service request, includes the service to be called in the calling service request Information so that the ISP is according to the information providing services of the service to be called and obtains service result;It connects Receive module, the service result sent for receiving the ISP by the navigation device.
The service call device that the embodiment of the present application proposes calls service request by sending, and passes through preset navigation Device will call service request to be routed to corresponding ISP, and, it receives ISP and passes through the navigation device The service result of transmission can realize the unified routing communicated between service caller and ISP by navigation device, Rather than directly interacted between service caller and ISP, since ISP does not need to service caller Direct service is provided, also there is no need to provide different codings for different service callers, therefore, it may not be necessary to weight Multiple coding, improves efficiency.
In order to achieve the above objectives, the service providing apparatus that the embodiment of the present application proposes, comprising: receiving module, for receiving The calling service request that service caller is sent by preset navigation device, described call includes to be called in service request The information of service;Module is provided, for the information providing services of the service to be called according to, and obtains service result;Hair Module is sent, for the service result to be sent to the service caller by the navigation device.
The service providing apparatus that the embodiment of the present application proposes is sent by receiving service caller through preset navigation device Calling service request, and according to the information providing services of the service to be called, and, service result is passed through into the navigation and is filled It sets and is sent to the service caller, can be communicated by preset navigation device with ISP, rather than service It is directly interacted between caller and ISP, since ISP does not need to provide directly to service caller Service, also there is no need to provide different codings for different service callers, therefore, it may not be necessary to which repeated encoding mentions High efficiency.
In order to achieve the above objectives, the service provider system that the embodiment of the present application proposes, including described in any of the above-described aspect Navigation device, service call device and service providing apparatus.
The service provider system that the embodiment of the present application proposes receives the calling that service caller is sent by navigation device and takes Business request, and service request will be called to be routed to corresponding ISP, and, receive the service knot that ISP sends Service result is simultaneously sent to service caller by fruit, may be implemented to carry out the communication between service caller and ISP Unified routing, rather than directly interacted between service caller and ISP, due to ISP do not need to Service caller provides direct service therefore, can also there is no need to provide different codings for different service callers Not need repeated encoding, improve efficiency.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of the method for offer service that one embodiment of the application proposes;
Fig. 2 is a kind of flow diagram of the method for offer service that another embodiment of the application proposes;
Fig. 3 is a kind of flow diagram of the method for acquisition service that another embodiment of the application proposes;
Fig. 4 is a kind of flow diagram of the method for offer service that another embodiment of the application proposes;
Fig. 5 is a kind of flow diagram of the method for offer service that another embodiment of the application proposes;
Fig. 6 is a kind of flow diagram of the method for offer service that another embodiment of the application proposes;
Fig. 7 is a kind of structural schematic diagram for navigation device that another embodiment of the application proposes;
Fig. 8 is a kind of structural schematic diagram for navigation device that another embodiment of the application proposes;
Fig. 9 is a kind of structural schematic diagram for service call device that another embodiment of the application proposes;
Figure 10 is a kind of structural schematic diagram for service call device that another embodiment of the application proposes;
Figure 11 is a kind of structural schematic diagram for service providing apparatus that another embodiment of the application proposes;
Figure 12 is a kind of structural schematic diagram for service providing apparatus that another embodiment of the application proposes;
Figure 13 is a kind of structural schematic diagram for service provider system that another embodiment of the application proposes.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the application, and should not be understood as the limitation to the application.On the contrary, this The embodiment of application includes all changes fallen within the scope of the spiritual and intension of attached claims, modification and is equal Object.
Below with reference to the accompanying drawings offer service according to the embodiment of the present application is provided and obtain the method, apparatus of service and be System.
Fig. 1 is the flow diagram of the method for the offer service that one embodiment of the application proposes, this method comprises:
S101: navigation device receives the calling service request that service caller is sent, and includes in the calling service request The information of the service to be called.
In the related technology, during obtaining service, service caller is directly communicated with ISP, service Caller is, for example, Javascript module or the module using JAVA/ObjectiveC language.
And in the present embodiment, a device will be added, which is properly termed as navigation device, and navigation device setting is servicing Between caller and ISP, navigation device is used to forward the communication between service caller and ISP, to clothes Communication between business caller and ISP carries out unified routing.Specifically, the process that navigation device executes may refer to The process that the present embodiment provides.
Wherein, the information for including in the calling service request that service caller is sent can be URL (Uniform Resoure Locator, uniform resource locator) address.When configuring service, different services can configure not ISP The same address URL, to obtain corresponding service according to the address URL.
S102: the information of the service to be called according to of navigation device will call service request to be routed to corresponding clothes Be engaged in supplier, so that the ISP is according to the information providing services of the service to be called and obtains service result.
Wherein, different services can be provided by the same ISP, alternatively, different services can also be by difference ISP provide.
The corresponding relationship that can be pre-configured in navigation device between the information and ISP of the service to be called, root According to the corresponding relationship, service request will be called to be routed to corresponding ISP.
By taking the information of the service to be called is the address URL as an example, navigation device can according to the registration information obtained in advance, Determine the URL rule that the address URL belongs to, and the information of determining ISP corresponding with the URL rule, the note The information of ISP and the corresponding relationship of the URL rule are saved in volume information;The calling service request is routed to The specified ISP of the information of the ISP.
In another embodiment, referring to fig. 2, before step S101 further include:
S201: the acceptable URL rule of service provider registers is received.
Specifically, oneself acceptable URL rule can be supplied to the navigation device by ISP.Wherein, it services The acceptable URL rule of supplier, the i.e. set of the address ISP acceptable URL.When ISP can be with Receive to show that the ISP can provide the corresponding service in the address URL when an address URL.
In one embodiment of the application, which can be indicated with regular expression.
S202: it is stored in the URL rule is corresponding with the information of ISP in registration information.
Specifically, after registration, corresponding registration information can be generated in navigation device to ISP, wherein including service The information of supplier and corresponding URL rule.
After navigation device obtains the registration information, after receiving the calling service request comprising the address URL, so that it may Corresponding ISP is determined according to the registration information, and then service request will be called to be routed to corresponding ISP.
S103: navigation device receives the service result that ISP sends, and service result is sent to service call Person.
Specifically, after navigation device receives the service result that ISP sends, service result is sent to request The service caller of the service.In the specific embodiment of the application, which can be using synchronous return mode Or asynchronous return mode returns to service caller.
The calling service request that the present embodiment is sent by receiving service caller, and service request will be called to be routed to pair The ISP answered, and, it receives the service result that ISP sends and service result is sent to service caller, It may be implemented to carry out the communication between service caller and ISP unified routing, rather than service caller and service It is directly interacted between supplier, since ISP does not need to provide direct service to service caller, also just not It needs to provide different codings for different service callers, therefore, it may not be necessary to which repeated encoding improves efficiency.
It is above-mentioned based on navigation device, correspondingly, referring to Fig. 3, the application is another when executing subject is service caller What one embodiment proposed, which obtains the method serviced, includes:
S301: it is sent by preset navigation device to ISP and calls service request, the calling service request In include the service to be called information so that information providing services of the ISP according to the service to be called And obtain service result.
Wherein, service caller can be Javascript module or the module using JAVA/ObjectiveC language.
The information for calling the service to be called for including in service request can be URL (Uniform Resoure Locator, uniform resource locator) address.
Service caller when needing to obtain service, such as when needing to carry out " be added shopping cart " this operation, adjust by service User can send calling service request, with acquisition " shopping cart is added " this service.
Service caller can be pre-configured with the corresponding relationship of service Yu the address URL, for example, configuration " be added shopping cart " with First address URL is corresponding, later includes the first address URL in calling service request.
In the present embodiment, need that navigation device is arranged between service caller and ISP.Navigation device receives After the calling service request sent to service caller, it can be routed it by the way of as shown in Figure 1 or 2 and be mentioned to service Donor.
S302: the service result that ISP is sent by the navigation device is received.
Specifically, different services can be provided by different ISPs, at this point, an ISP receives After calling service request, it is possible to provide the service that the ISP is capable of providing " is added for example, first service supplier provides The service of shopping cart ", navigation device according to preconfigured information when the information of the service to be called is the first address URL, Service request will be called to be routed to first service supplier, then after first service supplier receives calling service request, provided The service of " shopping cart is added ".Alternatively, different services can be provided by the same ISP, at this point, ISP It can be pre-configured with the corresponding relationship of the address URL and service, to call the address URL for including in service request based on the received Corresponding service is provided, for example, the first address URL of configuration is corresponding with " be added shopping cart ", the 2nd address URL with " into shopping Vehicle clearing " are corresponding, provide the service of " shopping cart is added " when the information of the service to be called is the first address URL later, and The service of " entering shopping cart to settle accounts " is provided when the information of the service to be called is the 2nd address URL.
After ISP obtains service result, clothes can be returned to by navigation device using asynchronously or synchronously mode Business caller.
The present embodiment calls service request by sending, and service request will be called to be routed to by preset navigation device Corresponding ISP, and, the service result that ISP is sent by the navigation device is received, it can be by leading Boat device realizes the unified routing communicated between service caller and ISP, rather than service caller and service provide Directly interacted between person, since ISP does not need to provide direct service to service caller, also there is no need to Different codings is provided for different service callers, therefore, it may not be necessary to which repeated encoding improves efficiency.
Correspondingly, when executing subject is ISP, as shown in figure 4, the offer that another embodiment of the application proposes The method of service includes:
S401: ISP receives the calling service request that service caller is sent by preset navigation device, institute State the information called in service request comprising the service to be called.
Wherein, ISP can be the method and service for being capable of providing and writing using JAVA/ObjectiveC language The equipment such as server.
The information for including in the calling service request that service caller is sent can be URL (Uniform Resoure Locator, uniform resource locator) address.
In the present embodiment, need that navigation device is arranged between service caller and ISP.Navigation device receives After the calling service request sent to service caller, it can be routed it by the way of as shown in Figure 1 or 2 and be mentioned to service Donor.
S402: ISP obtains service result according to the information providing services of the service to be called.
Specifically, different services can be provided by different ISPs, at this point, an ISP receives After calling service request, it is possible to provide the service that the ISP is capable of providing " is added for example, first service supplier provides The service of shopping cart ", navigation device according to preconfigured information when the information of the service to be called is the first address URL, Service request will be called to be routed to first service supplier, then after first service supplier receives calling service request, provided The service of " shopping cart is added ".Alternatively, different services can be provided by the same ISP, at this point, ISP It can be pre-configured with the corresponding relationship of the address URL and service, to call the address URL for including in service request based on the received Corresponding service is provided, for example, the first address URL of configuration is corresponding with " be added shopping cart ", the 2nd address URL with " into shopping Vehicle clearing " are corresponding, provide the service of " shopping cart is added " when the information of the service to be called is the first address URL later, and The service of " entering shopping cart to settle accounts " is provided when the information of the service to be called is the 2nd address URL.
S403: the service result is sent to the service caller by the navigation device by ISP.
Specifically, after ISP obtains service result, navigation device can be passed through using asynchronously or synchronously mode Return to service caller.
Optionally, referring to Fig. 5, before step S401 further include:
S501: service caller sends registration information to the navigation device.
Specifically, oneself acceptable URL rule can be supplied to the navigation device by ISP.Wherein, it services The acceptable URL rule of supplier, the i.e. set of the address ISP acceptable URL.When ISP can be with Receive to show that the ISP can provide the corresponding service in the address URL when an address URL.ISP is registering Afterwards, corresponding registration information can be generated in navigation device, wherein the information comprising ISP and corresponding URL rule.
In one embodiment of the application, which can be indicated with regular expression.
In one embodiment of the application, after navigation device obtains the registration information, receiving comprising the address URL Calling service request after, so that it may corresponding ISP is determined according to the registration information, and then service request will be called It is routed to corresponding ISP.
The present embodiment is by receiving the calling service request that sends through preset navigation device of service caller, and according to wanting The information providing services of the service of calling, and, service result is sent to the service caller by the navigation device, It can be communicated by preset navigation device with ISP, rather than it is straight between service caller and ISP It connects and interacts, since ISP does not need to provide direct service to service caller, also there is no need to for difference Service caller different codings is provided, therefore, it may not be necessary to which repeated encoding improves efficiency.
Fig. 6 is the method for the offer service that another embodiment proposes, as shown in fig. 6, this method comprises:
S601: ISP's navigation device registers acceptable URL rule.
Specifically, oneself acceptable URL rule can be supplied to navigation device by ISP.
Wherein, the acceptable URL rule of ISP, the i.e. set of the address ISP acceptable URL. It is corresponding that the set expression of the address the ISP acceptable URL ISP can provide the address URL in the set Service.
Optionally, the set of the address URL may include the address URL or multiple addresses URL.
In one embodiment of the application, which can be indicated with regular expression.
Navigation device receive service provider registers acceptable URL rule after can generate corresponding registration information, Navigation device can be stored in registration for the acceptable URL rule of service provider registers is corresponding with the information of the ISP In information.
For example, the registration information of a corresponding ISP includes:
^Http://taobao\.com/business/.*
BusinessClass
Wherein, ^Http: //taobao .com/business/.* be the URL rule indicated with regular expression, BusinessClass is the information of ISP.
S602: service caller navigation device, which is sent, calls service request, and calling includes to be called in service request The information of service.
Wherein, service caller may include: Javascript module, alternatively, using JAVA/ObjectiveC language Module.Service invocation request can be sent to navigation device by JSBridge by service caller.
The information for calling the service to be called for including in service request can be URL (Uniform Resoure Locator, uniform resource locator) address.
Specifically, service caller can be pre-configured with the corresponding relationship of service Yu the address URL, for example, " purchase is added in configuration Object vehicle " is corresponding with the first address URL, later includes the first address URL in calling service request.
S603: navigation device, according to the registration information obtained in advance, determines the URL after receiving calling service request The URL rule that address belongs to, and the information of determining ISP corresponding with the URL rule, and the service of calling is asked The ISP for asking the information for being routed to the ISP specified.
Wherein, the information of ISP and the corresponding relationship of the URL rule are saved in registration information.
In one embodiment of the application, after navigation device obtains registration information, the tune comprising the address URL is being received When with service request, the URL rule that the address URL belongs to is determined, so that it may advise according to the registration information is determining with the URL The then information of corresponding ISP.
Specifically, navigation device can ask the service of calling according to the information of ISP corresponding with the URL rule The ISP for asking the information for being routed to the ISP specified.
For example, the acceptable URL rule of the service provider registers be ^Http: //taobao .com/ Business/.* executes the entitled BusinessClass of processor class of URL rule, then, it is asked when navigation device receives When the address URL for including in asking belongs to above-mentioned URL rule, navigation device will call service request to be routed to BusinessClass Corresponding processor class.
S604: ISP, which receives, calls service request, and according to the information providing services of the service to be called, And obtain service result.
Specifically, different services can be provided by different ISPs, at this point, an ISP receives After calling service request, it is possible to provide the service that the ISP is capable of providing " is added for example, first service supplier provides The service of shopping cart ", navigation device according to preconfigured information when the information of the service to be called is the first address URL, Service request will be called to be routed to first service supplier, then after first service supplier receives calling service request, provided The service of " shopping cart is added ".Alternatively, different services can be provided by the same ISP, at this point, ISP It can be pre-configured with the corresponding relationship of the address URL and service, to call the address URL for including in service request based on the received Corresponding service is provided, for example, the first address URL of configuration is corresponding with " be added shopping cart ", the 2nd address URL with " into shopping Vehicle clearing " are corresponding, provide the service of " shopping cart is added " when the information of the service to be called is the first address URL later, and The service of " entering shopping cart to settle accounts " is provided when the information of the service to be called is the 2nd address URL.
S605: service result is sent to navigation device by ISP.
It, can be using asynchronously or synchronously after ISP obtains service result in the specific embodiment of the application Mode returns to service caller by navigation device.
S606: navigation device receives the service result that ISP sends, and service result is sent to service call Person.
The present embodiment configures the registration information of ISP, navigation dress by setting navigation device in navigation device Set can according to the registration information by call service request be routed to corresponding ISP, can be realized service caller with Unified routing between ISP, rather than directly interacted between service caller and ISP, due to clothes Business supplier does not need to provide direct service to service caller, and also there is no need to provide not for different service callers Same coding, therefore, it may not be necessary to which repeated encoding improves efficiency.Meanwhile the development process of service is become into unified mould Formula can be applicable in a variety of situations, reduce coding and repeat, reduce development difficulty.
In order to realize above-described embodiment, the application also proposes a kind of navigation device.
Fig. 7 is the structural schematic diagram of the navigation device of another embodiment of the application.The navigation device setting is adjusted in service Between user and ISP, navigation device is used to forward the communication between service caller and ISP, to service Communication between caller and ISP carries out unified routing.As shown in fig. 7, the navigation device includes: the first reception mould Block 10, routing module 20, the second receiving module 30 and sending module 40.
Specifically, the first receiving module 10 is used to receive the calling service request of service caller transmission, the calling clothes It include the information of the service to be called in business request.Wherein, the information for including in the calling service request that service caller is sent It can be URL (Uniform Resoure Locator, uniform resource locator) address.ISP configure service when, Different services can configure the different addresses URL, to obtain corresponding service according to the address URL.
Routing module 20 is used for the information of the service to be called according to, and the calling service request is routed to correspondence ISP so that the ISP is according to the information providing services of the service to be called and obtains service knot Fruit.Wherein, different services can be provided by the same ISP, alternatively, different services can also be by different clothes Business supplier provides.
The corresponding relationship that can be pre-configured in navigation device between the information and ISP of the service to be called, road By module 20 according to the corresponding relationship, service request will be called to be routed to corresponding ISP.
Second receiving module 30 is used to receive the service result that the ISP sends.
Sending module 40 is used to the service result being sent to the service caller.
More specifically, sending module 40 will after the second receiving module 30 receives the service result that ISP sends Service result is sent to the service caller for requesting the service.In the specific embodiment of the application, which can To return to service caller using synchronous return mode or asynchronous return mode.
Optionally, referring to Fig. 8, the navigation device further include: determination unit 21, routing unit 22, third receiving module 50 With preserving module 60.Wherein, routing module 20 includes determination unit 21 and routing unit 22.
Specifically, it is determined that unit 21 is used to determine the URL that the address URL belongs to according to the registration information obtained in advance Rule, and the information of determining ISP corresponding with the URL rule, preservation ISP in the registration information The corresponding relationship of information and the URL rule.
By taking the information of the service to be called is the address URL as an example, determination unit 21 can be believed according to the registration obtained in advance Breath determines the URL rule that the address URL belongs to, and the information of determining ISP corresponding with the URL rule, institute The corresponding relationship of information and the URL rule that ISP is saved in registration information is stated, then routing unit 22 will be described Service request is called to be routed to the ISP that the information of the ISP is specified.
Third receiving module 50 is used to receive the acceptable URL rule of the service provider registers.More specifically, clothes Being engaged in supplier can be regular by oneself acceptable URL, be supplied to the navigation device.Wherein, the acceptable URL of ISP Rule, the i.e. set of the address ISP acceptable URL.When ISP can receive an address URL Show that the ISP can provide the corresponding service in the address URL.
In one embodiment of the application, which can be indicated with regular expression.
Preserving module 60 is used to be stored in registration letter for the URL rule is corresponding with the information of the ISP In breath.More specifically, ISP is after registration, corresponding registration information is can be generated in preserving module 60, wherein including clothes The information and corresponding URL rule of business supplier.
After navigation device obtains the registration information, after receiving the calling service request comprising the address URL, so that it may Corresponding ISP is determined according to the registration information, and then service request will be called to be routed to corresponding ISP.
In the specific embodiment of the application, the second receiving module 30 is also used to receive the ISP and uses The service result that synchronous return mode or asynchronous return mode are sent.
The calling service request that the present embodiment is sent by receiving service caller, and provided according to the service obtained in advance The registration information of person will call service request to be routed to corresponding ISP, and, receive the clothes that ISP sends Service result is simultaneously sent to service caller by business result, may be implemented to the communication between service caller and ISP Unified routing is carried out, rather than is directly interacted between service caller and ISP, since ISP is not required to Direct service to be provided to service caller, also there is no need to provide different codings for different service callers, because This, it may not be necessary to repeated encoding improves efficiency.
In order to realize above-described embodiment, the application also proposes a kind of service call device.
Fig. 9 is the structural schematic diagram of the service call device of another embodiment of the application.Service call in the present embodiment Device corresponds to the service caller in above method embodiment.Wherein, service caller can be Javascript module or Using the module of JAVA/ObjectiveC language.As shown in figure 9, the service call device includes: sending module 10 and reception mould Block 20.
Specifically, sending module 10, which is used to send by preset navigation device to ISP, calls service request, It include the information of the service to be called in the calling service request, so that the ISP is according to the clothes to be called The information providing services of business simultaneously obtain service result.Wherein, call the information for the service to be called for including in service request can Think URL (Uniform Resoure Locator, uniform resource locator) address.
Service caller sends mould when needing to obtain service, such as when needing to carry out " be added shopping cart " this operation Block 10 can send calling service request, with acquisition " shopping cart is added " this service.
Service caller can be pre-configured with the corresponding relationship of service Yu the address URL, for example, configuration " be added shopping cart " with First address URL is corresponding, later includes the first address URL in calling service request.
In the present embodiment, need that a device is arranged between service caller and ISP, which can claim For navigation device, navigation device is used to forward the communication between service caller and ISP, to service caller kimonos Communication between business supplier carries out unified routing.After navigation device receives the calling service request of the transmission of sending module 10, It can be routed it by the way of as shown in Figure 1 or 2 to ISP.
Receiving module 20 is for receiving the service result that the ISP is sent by the navigation device.? After ISP obtains service result, receiving module 20 be also used to receive the ISP using synchronous return mode or The service result that the asynchronous return mode of person is sent.
Optionally, as shown in Figure 10, on the basis of Fig. 9, the service call device further include: determining module 30.
Determining module 30 is used for the corresponding relationship according to preconfigured service and the address URL, the determining and clothes to be called It is engaged in the corresponding address URL, so that the address URL to be included in the information of the service to be called.More specifically, different Service can be provided by different ISPs, at this point, an ISP receive call service request after, can mention For the service that the ISP is capable of providing, for example, first service supplier provides the service of " shopping cart is added ", navigation dress It sets according to preconfigured information when the information of the service to be called is the first address URL, service request will be called to be routed to First service supplier after then first service supplier receives calling service request, provides the service of " shopping cart is added ".Or Person, different services can be provided by the same ISP, at this point, ISP can be pre-configured with the address URL with The corresponding relationship of service, to call the address URL for including in service request to provide corresponding service based on the received, for example, It is corresponding with " shopping cart is added " to configure the first address URL, the 2nd address URL is corresponding with " entering shopping cart to settle accounts ", ought want later The service of " shopping cart is added " is provided when the information of the service of calling is the first address URL, and when the information of the service to be called The service of " entering shopping cart to settle accounts " is provided when being the 2nd address URL.
The present embodiment calls service request by sending, and service request will be called to be routed to by preset navigation device Corresponding ISP, and, the service result that ISP is sent by the navigation device is received, it can be by leading Boat device realizes the unified routing communicated between service caller and ISP, rather than service caller and service provide Directly interacted between person, since ISP does not need to provide direct service to service caller, also there is no need to Different codings is provided for different service callers, therefore, it may not be necessary to which repeated encoding improves efficiency.
In order to realize above-described embodiment, the application also proposes a kind of service providing apparatus.
Figure 11 is the structural schematic diagram of the service providing apparatus of another embodiment of the application.Service in the present embodiment provides Device corresponds to the ISP in above method embodiment.Wherein, ISP, which can be, is capable of providing using JAVA/ The equipment such as the server of method and service that ObjectiveC language is write.As shown in figure 11, which includes: to connect It receives module 10, module 20 and sending module 30 is provided.
Specifically, receiving module 10 is asked for receiving the calling service that service caller is sent by preset navigation device It asks, the information called in service request comprising the service to be called.
Wherein, the information for including in the calling service request that service caller is sent can be URL (Uniform ResoureLocator, uniform resource locator) address.
In the present embodiment, need that a device is arranged between service caller and ISP, which can claim For navigation device, navigation device is used to forward the communication between service caller and ISP, to service caller kimonos Communication between business supplier carries out unified routing.After navigation device receives the calling service request of service caller transmission, It can be routed it by the way of as shown in Figure 1 or 2 to ISP.
The information providing services that module 20 is used for the service to be called according to are provided, and obtain service result.More Body, different services can be provided by different ISPs, be asked at this point, an ISP receives the service of calling After asking, providing module 20 can provide the service that the ISP is capable of providing, and " be added for example, first service supplier provides The service of shopping cart ", navigation device according to preconfigured information when the information of the service to be called is the first address URL, Service request will be called to be routed to first service supplier, then after first service supplier receives calling service request, provided The service of " shopping cart is added ".Alternatively, different services can be provided by the same ISP, at this point, corresponding offer Module 20 may include multiple for providing the offer unit of different services, and ISP can be pre-configured with the address URL and clothes The corresponding relationship of business calls the address URL for including in service request to provide corresponding clothes based on the received in order to provide module 20 Business, for example, the first address URL of configuration is corresponding with " shopping cart is added ", the 2nd address URL is corresponding with " entering shopping cart to settle accounts ", The service of " shopping cart is added " is provided when the information of the service to be called is the first address URL later, and when the clothes to be called The service of " entering shopping cart to settle accounts " is provided when the information of business is the 2nd address URL.
Sending module 30 is used to the service result being sent to the service caller by the navigation device.More Body, after ISP obtains service result, sending module 30 is also used to through synchronous mode or asynchronous mode, by institute It states service result and the service caller is sent to by the navigation device.
Optionally, referring to Figure 12, on the basis of Figure 11, the service providing apparatus further include: registration module 40.
Registration module 40 is used to register acceptable URL rule to the navigation device so that the navigation device according to The address URL for including in the URL rule and the information of the service to be called routes the calling service request.More specifically Oneself acceptable URL rule can be supplied to the navigation device by ground, ISP.Wherein, ISP is acceptable URL rule, i.e. the set of the address ISP acceptable URL.When ISP with can receiving a URL Show that the ISP can provide the corresponding service in the address URL when location.After registration, navigation device can by ISP To generate corresponding registration information, wherein the information comprising ISP and corresponding URL rule.
In one embodiment of the application, which can be indicated with regular expression.
In one embodiment of the application, after navigation device obtains the registration information, receiving comprising the address URL Calling service request after, so that it may corresponding ISP is determined according to the registration information, and then service request will be called It is routed to corresponding ISP.
The present embodiment is by receiving the calling service request that sends through preset navigation device of service caller, and according to wanting The information providing services of the service of calling, and, service result is sent to the service caller by the navigation device, It can be communicated by preset navigation device with ISP, rather than it is straight between service caller and ISP It connects and interacts, since ISP does not need to provide direct service to service caller, also there is no need to for difference Service caller different codings is provided, therefore, it may not be necessary to which repeated encoding improves efficiency.
In order to realize above-described embodiment, the application also proposes a kind of service provider system.
Figure 13 is the structural schematic diagram of the service provider system of another embodiment of the application.The service provider system includes upper State navigation device 100 described in any embodiment, service call device 200 and service providing apparatus 300.
The present embodiment receives the calling service request that service caller is sent by navigation device, and will call service request It is routed to corresponding ISP, and, it receives the service result that ISP sends and service result is sent to clothes Business caller may be implemented to carry out the communication between service caller and ISP unified routing, rather than service and adjust It is directly interacted between user and ISP, since ISP does not need to provide direct clothes to service caller Business, also there is no need to provide different codings for different service callers, therefore, it may not be necessary to which repeated encoding improves Efficiency.
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the present application, without It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present application, unless otherwise indicated, the meaning of " multiple " It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment is example Property, it should not be understood as the limitation to the application, those skilled in the art within the scope of application can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (15)

1. a kind of provide the method for service characterized by comprising
Receive the calling service request that service caller is sent, the letter called in service request comprising the service to be called Breath;
According to the information of the service to be called, the calling service request is routed to corresponding ISP, so that The ISP is according to the information providing services of the service to be called and obtains service result;
The service result that the ISP sends is received, and the service result is sent to the service call Person;
The information of the service to be called includes the preconfigured address URL corresponding with the service to be called, described According to the information of the service to be called, the calling service request is routed to corresponding ISP, comprising:
According to the registration information obtained in advance, the URL rule that the address URL belongs to is determined, and determination is right with the URL rule The information of the ISP answered, the information that ISP is saved in the registration information are closed with the corresponding of URL rule System;
The specified ISP of the information that the calling service request is routed to the ISP;
Further include:
Receive the acceptable URL rule of the service provider registers;
It is stored in the URL rule is corresponding with the information of the ISP in the registration information;
Wherein, the acceptable URL rule of ISP, i.e., the set of the described address ISP's acceptable URL, when When the ISP can receive an address URL, it is corresponding to show that the ISP can provide the address URL Service, after registration, navigation device generates corresponding registration information to the ISP, wraps in the corresponding registration information Contain: the information of the ISP and the corresponding URL rule.
2. the method according to claim 1, wherein the acceptable URL rule is indicated with regular expression.
3. the method according to claim 1, wherein the service for receiving the ISP and sending As a result, comprising:
Receive the service result that the ISP is sent using synchronous return mode or asynchronous return mode.
4. a kind of method for obtaining service characterized by comprising
It is sent by preset navigation device to ISP and calls service request, comprising to adjust in the calling service request The information of service, so that the ISP is according to the information providing services of the service to be called and is serviced As a result;
Receive the service result that the ISP is sent by the navigation device;
Further include:
According to the corresponding relationship of preconfigured service and the address URL, the address URL corresponding with the service to be called is determined, with Just the address URL is included in the information of the service to be called;
Wherein, the ISP is pre-configured with the corresponding relationship of the address URL and service, to call clothes based on the received The address URL for including in business request provides corresponding service;
The service result for receiving the ISP and being sent by the navigation device, comprising:
The ISP is received using synchronous return mode or asynchronous return mode, the service result of transmission.
5. a kind of service providing method characterized by comprising
The calling service request that service caller is sent by preset navigation device is received, includes in the calling service request The information of the service to be called;
According to the information providing services of the service to be called, and obtain service result;
The service result is sent to the service caller by the navigation device;
The information of the service to be called includes the preconfigured address URL corresponding with the service to be called, described Method further include:
Acceptable URL rule is registered to the navigation device, so that the navigation device is according to the URL rule and described wants The address URL for including in the information of the service of calling routes the calling service request;
Wherein, the acceptable URL rule of ISP, i.e., the set of the described address ISP's acceptable URL, when When the ISP can receive an address URL, it is corresponding to show that the ISP can provide the address URL Service, after registration, navigation device generates corresponding registration information to the ISP, wraps in the corresponding registration information Contain: the information of the ISP and the corresponding URL rule.
6. according to the method described in claim 5, it is characterized in that, the acceptable URL rule is indicated with regular expression.
7. according to the method described in claim 5, it is characterized in that, described send out the service result by the navigation device Give the service caller, comprising:
By synchronous mode or asynchronous mode, the service result is sent to the service call by the navigation device Person.
8. a kind of navigation device characterized by comprising
First receiving module includes for receiving the calling service request of service caller transmission, in the calling service request The information of the service to be called;
The calling service request is routed to corresponding clothes for the information of the service to be called according to by routing module Be engaged in supplier, so that the ISP is according to the information providing services of the service to be called and obtains service result;
Second receiving module, the service result sent for receiving the ISP;
Sending module, for the service result to be sent to the service caller;
The information of the service to be called includes the preconfigured address URL corresponding with the service to be called, described Routing module, comprising:
Determination unit, for determining the URL rule that the address URL belongs to according to the registration information that obtains in advance, and determine with The information of the corresponding ISP of URL rule, save in the registration information ISP information and the URL The corresponding relationship of rule;
Routing unit, the service that the information for the calling service request to be routed to the ISP is specified provide Person;
Further include:
Third receiving module, for receiving the acceptable URL rule of the service provider registers;
Preserving module, for being stored in the URL rule is corresponding with the information of the ISP in the registration information;
Wherein, the acceptable URL rule of ISP, i.e., the set of the described address ISP's acceptable URL, when When the ISP can receive an address URL, it is corresponding to show that the ISP can provide the address URL Service, after registration, navigation device generates corresponding registration information to the ISP, wraps in the corresponding registration information Contain: the information of the ISP and the corresponding URL rule.
9. device according to claim 8, which is characterized in that the acceptable URL rule is indicated with regular expression.
10. device according to claim 8, which is characterized in that second receiving module is also used to receive the service The service result that supplier is sent using synchronous return mode or asynchronous return mode.
11. a kind of service call device characterized by comprising
Sending module calls service request for sending by preset navigation device to ISP, the calling service It include the information of the service to be called in request, so that the ISP provides according to the information of the service to be called It services and obtains service result;
Receiving module, the service result sent for receiving the ISP by the navigation device;
Determining module, for the corresponding relationship according to preconfigured service and the address URL, determination is corresponding with the service to be called The address URL, so that the address URL is included in the information of the service to be called;
Wherein, the ISP is pre-configured with the corresponding relationship of the address URL and service, to call clothes based on the received The address URL for including in business request provides corresponding service;
The receiving module is also used to receive the ISP and is sent using synchronous return mode or asynchronous return mode The service result.
12. a kind of service providing apparatus characterized by comprising
Receiving module, the calling service request sent for receiving service caller by preset navigation device, the calling It include the information of the service to be called in service request;
Module is provided, for the information providing services of the service to be called according to, and obtains service result;
Sending module, for the service result to be sent to the service caller by the navigation device;
The information of the service to be called includes the preconfigured address URL corresponding with the service to be called, described Device further include:
Registration module, for registering acceptable URL rule to the navigation device, so that the navigation device is according to The address URL for including in URL rule and the information of the service to be called routes the calling service request;
Wherein, the acceptable URL rule of ISP, i.e., the set of the described address ISP's acceptable URL, when When the ISP can receive an address URL, it is corresponding to show that the ISP can provide the address URL Service, after registration, navigation device generates corresponding registration information to the ISP, wraps in the corresponding registration information Contain: the information of the ISP and the corresponding URL rule.
13. device according to claim 12, which is characterized in that the acceptable URL rule regular expression table Show.
14. device according to claim 12, which is characterized in that the sending module be also used to through synchronous mode or The service result is sent to the service caller by the navigation device by asynchronous mode.
15. a kind of service provider system, which is characterized in that including navigation device, claim 11 described in claim 8-10 Service providing apparatus described in the service call device and claim 12-14.
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 CN105577710A (en) 2016-05-11
CN105577710B true 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)

Families Citing this family (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
CN108959864B (en) * 2017-05-25 2021-09-24 阿里巴巴集团控股有限公司 Method and device for function call authentication and function call and authority information establishing method
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
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

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

Also Published As

Publication number Publication date
CN105577710A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN105577710B (en) Service is provided and obtains the methods, devices and systems of service
CN109257509B (en) Communication method, system, server and storage medium based on virtual number
US20170134480A1 (en) Techniques For Sharing Application States
CN109729040B (en) Method, apparatus and computer readable medium for selection of a protocol
CN105554094B (en) Data interactive method and device
CN104657201B (en) Application program method for pushing, device, equipment and system
CN109639636A (en) Business datum forwarding, business data processing method, device and electronic equipment
CN106161664A (en) Domain name analytic method and device, data transmission method and device
CN109660578A (en) CDN's returns source processing method and processing device, system
US20170118166A1 (en) Domain intercommunication in shared computing environments
KR20150103220A (en) System architecture, subsystem, and method for opening of telecommunication network capability
EP3319270A1 (en) Service registration method, usage method and relevant apparatus
CN105704171A (en) System and method for realizing content delivery network (CDN) access
CN106357713A (en) Remote procedure call realizing method, client side device and server device
WO2018222356A1 (en) Enhanced telephony application server session management
EP2999242A1 (en) Method and device for resource migration
CN104219257A (en) Web real-time communication method, system, server and client
CN109327555A (en) Distributed hair system, method and device
CN103944990A (en) Method and server capable of supporting multiple accounts based on second-level domain names
CN104702646A (en) Data transmission method and device and communication system
CN105814853B (en) Qos method for improving, apparatus and system
CN104145488B (en) A kind of method for processing business, system and relevant device
CN106156308B (en) Local updating method and system for webpage
CN104753938A (en) Information processing method and electronic equipment
CN105814860B (en) A kind of method and apparatus of business routing

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