CN108306921A - Call external service method and application server - Google Patents
Call external service method and application server Download PDFInfo
- Publication number
- CN108306921A CN108306921A CN201710658100.7A CN201710658100A CN108306921A CN 108306921 A CN108306921 A CN 108306921A CN 201710658100 A CN201710658100 A CN 201710658100A CN 108306921 A CN108306921 A CN 108306921A
- Authority
- CN
- China
- Prior art keywords
- service
- service request
- calling
- application server
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000015654 memory Effects 0.000 claims abstract description 22
- 230000006870 function Effects 0.000 claims description 49
- 238000012795 verification Methods 0.000 claims description 14
- 238000004458 analytical method Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 20
- 230000005540 biological transmission Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 10
- 230000003993 interaction Effects 0.000 description 9
- 239000000284 extract Substances 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 230000000116 mitigating effect Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/61—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Marketing (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of application server, including memory, processor and storage are on a memory and the calling outside service systems that can run on a processor, calling outside service systems realize following steps when being executed by processor:Obtain the service request that mobile terminal client terminal is sent;It analyzes the service request and then determines the type of the service request;Calling service request is sent out according to the type of the service request;According to the calling service request, the data of external service are loaded;And external service data abstraction is back to the mobile terminal client terminal for field project.The present invention also provides a kind of calling external service methods.Application server provided by the invention and calling external service method can load external data, call external service, improve user experience.
Description
Technical field
The present invention relates to computer communication field more particularly to a kind of calling external service method and application servers.
Background technology
With the progress of the development and science and technology of society, service work(of the people to network service system, such as anti-fake system
It can require more and more, but many systems generally pass through hard coded at present and service is customized and realized, no calling external service
The service ability of raising system.
Invention content
In view of this, a kind of calling external service method of present invention proposition and application server, can load external data,
External service is called, user experience is improved.
First, to achieve the above object, the present invention proposes that a kind of application server, the application server include storage
Device, processor and it is stored in the calling outside service systems that can be run on the memory and on the processor, the tune
Following steps are realized when being executed by the processor with outside service systems:
Obtain the service request that mobile terminal client terminal is sent;
It analyzes the service request and then determines the type of the service request;
Calling service request is sent out according to the type of the service request;
According to the calling service request, the data of external service are loaded;And
It is that field project is back to the mobile terminal client terminal by external service data abstraction.
Optionally, calling service is sent out to the calling interface layer of the application server according to the type of the service request
Before the step of request, the processor is additionally operable to execute the calling outside service systems, to realize that following steps further include:
According to the type of the service request, judge whether to need to call external service;
If judgement need not call external service, the application server internal data is loaded.
Optionally, the processor is additionally operable to execute the calling outside service systems, to realize following steps:
Receive the data that the client that the mobile terminal client terminal is sent fills in the field project;
Whether correct verify the data that the field project is filled in;
Return to verification result.
Optionally, it before the step of analysis service request determines the type of the service request in turn, also wraps
Include following steps:
By the service request write request task list;
It sorts according to priority orders to the service request.
Optionally, calling service is sent out to the calling interface layer of the application server according to the type of the service request
The step of request, specifically includes:
Inquire the execution function of the corresponding external service of the service request type;
Sending has the call request for executing function name to the calling interface layer of the application server.
In addition, to achieve the above object, the present invention also provides a kind of calling external service method, this method is applied to application
Server, the method includes:
Obtain the service request that mobile terminal client terminal is sent;
It analyzes the service request and then determines the type of the service request;
Calling service request is sent out according to the type of the service request;
According to the calling service request, the data of external service are loaded;And
It is that field project is back to the mobile terminal client terminal by external service data abstraction.
Optionally, calling service is sent out to the calling interface layer of the application server according to the type of the service request
Before the step of request, further include:
According to the type of the service request, judge whether to need to call external service;
If judgement need not call external service, the application server internal data is loaded.
Optionally, the method further includes following steps:
Receive the data that the client that the mobile terminal client terminal is sent fills in the field project;
Whether correct verify the data that the field project is filled in;
Return to verification result.
Optionally, it before the step of analysis service request determines the type of the service request in turn, also wraps
Include following steps:
By the service request write request task list;
It sorts according to priority orders to the service request;
It is sent out to the calling interface layer of the application server according to the type of the service request and calls service request
Step specifically includes:
Inquire the execution function of the corresponding external service of the service request type;
Sending has the call request for executing function name to the calling interface layer of the application server.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers
Readable storage medium storing program for executing is stored with calling outside service systems, and the calling outside service systems can be held by least one processor
Row, so that at least one processor is executed such as the step of above-mentioned calling external service method.
Compared to the prior art, application server proposed by the invention, call external service method and computer-readable
Storage medium, first application server 2 obtain the service request that mobile terminal client terminal is sent;Then, the service is analyzed to ask
Seek and then determine the type of the service request;Then, calling service request is sent out according to the type of the service request;Into
And according to the calling service request, load the data of external service;Finally, it is field project by external service data abstraction
It is back to the mobile terminal client terminal.To realize load external data, external service is called.In this way, both can be to avoid existing
There is application server service function in technology single, the operation pressure of application server can also be mitigated by calling external service
Multifunction call is realized while power, improves user experience.
Description of the drawings
Fig. 1 is each one optional application environment schematic diagram of embodiment of the present invention;
Fig. 2 is the schematic diagram of one optional hardware structure of application server in Fig. 1;
Fig. 3 is the high-level schematic functional block diagram that the present invention calls outside service systems first embodiment;
Fig. 4 is the high-level schematic functional block diagram that the present invention calls outside service systems second embodiment;
Fig. 5 is the high-level schematic functional block diagram that the present invention calls outside service systems 3rd embodiment;
Fig. 6 is the high-level schematic functional block diagram that the present invention calls outside service systems fourth embodiment;
Fig. 7 is the high-level schematic functional block diagram that the present invention calls the 5th embodiment of outside service systems;
Fig. 8 is the implementation process diagram that the present invention calls external service method first embodiment;
Fig. 9 is the implementation process diagram that the present invention calls external service method second embodiment;
Figure 10 is the implementation process diagram that the present invention calls external service method 3rd embodiment;
Figure 11 is the implementation process diagram that the present invention calls external service method fourth embodiment;
Figure 12 is the implementation process diagram that the present invention calls the 5th embodiment of external service method.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
The every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as indicating or implying its relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection domain within.
As shown in fig.1, being each one optional application environment schematic diagram of embodiment of the present invention.
In the present embodiment, present invention can apply to include but are not limited to, mobile terminal 1, application server 2, network
In 3 application environment.Wherein, the mobile terminal 1 can be that mobile phone, smart phone, laptop, digital broadcasting connect
Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), navigation device etc. can
Mobile device, and such as number TV, desktop computer, notebook, server etc. fixed terminal.The application server
2 can be the computing devices such as rack-mount server, blade server, tower server or Cabinet-type server, the application clothes
Business device 2 can be independent server, can also be the server cluster that multiple servers are formed.The network 3 can be
Intranet (Intranet), internet (Internet), global system for mobile communications (Global System of
Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple
Access, WCDMA), 4G networks, 5G networks, bluetooth (Bluetooth), the wirelessly or non-wirelessly network such as Wi-Fi.
Wherein, in the application server 2 by the network 3 respectively with one or more mobile terminals 1 (in figure
Only show one) it communicates to connect, it is respectively mounted and has run corresponding with the application server 2 in each described mobile terminal 1
Application client (hereinafter " mobile terminal client terminal ").The mobile terminal client terminal is for responding mobile terminal
The operation of user creates long connection between the mobile terminal client terminal and the application server 2, so that described mobile whole
End client can be carried out data transmission and be interacted with the application server 2 by the long connection.
In the present embodiment, when being installed in the application server 2 and having run calling outside service systems 200, work as institute
When stating the calling operation of outside service systems 200, the application server 2 obtains the service request that mobile terminal client terminal is sent,
Analyze and determine the type for determining the service request when receiving the service request, and then to the application server
Calling interface layer sends out calling service request, and according to the calling service request, external clothes are loaded by the calling interface layer
External service data abstraction is finally that field project is back to the mobile terminal client terminal, realized by adding by the data of business
External data is carried, complete call external service avoids service function single, improves user experience.
As shown in fig.2, being the schematic diagram of 2 one optional hardware structure of application server in Fig. 1.In the present embodiment, institute
It states application server 2 may include, but is not limited only to, connection memory 11, processor 12, net can be in communication with each other by system bus
Network interface 13.It should be pointed out that Fig. 2 illustrates only the mobile terminal 1 with component 11-13, it should be understood that not
It is required that implement all components shown, the implementation that can be substituted is more or less component.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes
Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), it is static with
Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed only
Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be described answers
With the hard disk or memory of the internal storage unit of server 2, such as the application server 2.In further embodiments, described to deposit
Reservoir 11 can also be the External memory equipment of the application server 2, such as the plug-in type being equipped on the application server 2 is hard
Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the application server 2 or wrap
Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the application server 2 commonly used in storage
Make system and types of applications software, such as the program code etc. for calling outside service systems 200.In addition, the memory
11 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in answering described in control
It is carried out data interaction with the overall operation of server 2, such as execution with the mobile terminal 1 or is communicated relevant control and place
Reason etc..In the present embodiment, the processor 12 is used to run the program code stored in the memory 11 or processing data,
Such as run the calling outside service systems 200 etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in
Communication connection is established between the application server 2 and other electronic equipments.In the present embodiment, the network interface 13 is mainly used
In the application server 2 is connected with one or more mobile terminals 1 by the network 3, in the application service
Data transmission channel and communication connection are established between device 2 and one or more of mobile terminals 1.
So far, oneself is through describing the hardware configuration and work(of the application environment and relevant device of each embodiment of the present invention in detail
Energy.In the following, above application environment and relevant device will be based on, each embodiment of the present invention is proposed.
First, the present invention proposes a kind of calling outside service systems 200.
As shown in fig.3, being the functional block diagram that the present invention calls 200 first embodiment of outside service systems.This implementation
In example, the calling outside service systems 200 can be divided into one or more modules, one or more of modules
It is stored in the memory 11, and performed by one or more processors (being the processor 12 in the present embodiment),
To complete the present invention.For example, in figure 3, the calling outside service systems 200 can be divided into acquisition module 201, divide
Analyse module 202, request call module 203, load-on module 204 and feedback module 205.The so-called function module of the present invention refers to energy
The series of computation machine program instruction section for enough completing specific function, than program more suitable for describing the calling outside service systems
200 implementation procedure in the application server 2.The function of putting up with each function module 201-205 below is described in detail.
The acquisition module 201, the service request for obtaining mobile terminal client terminal transmission.
The application server 2 includes network interface layer, and network interface layer includes business interface layer and calling interface
Layer.The business interface layer receives the service request that mobile terminal client terminal is sent.The calling interface layer loads external data
Realize that external service is called in inside and outside data interaction, final realize.Each calling interface includes interface layer information, described
Interface layer information includes but not limited to that correspondence calls in the information such as function description, the service type of external service.
Specifically, the business interface layer of the application server 2 obtains mobile terminal client terminal by the acquisition module
The service request of transmission.In the present embodiment, the acquisition module 201 only handles a service request every time, has handled and has worked as
When preceding service request, another service request can be just handled.Wherein, another service request can come from the clothes of same user
The service request of business request or different user.
The analysis module 202, the type for analyzing the service request and then the determining service request.
It will be recalled from above that each calling interface includes interface layer information, the interface layer information includes but unlimited
In information such as corresponding function description, the service types for calling in external service.
Specifically, when the application server 2 receives the service request information that the mobile terminal client terminal is sent,
The analysis module 202 analyzes the service request information, by extracting the keyword of the service request information, according to described
Keyword is mapped to the interface layer information, so that it is determined that the service request type.For example, when the service request received is
" how to judge whether that meeting loan compresses condition" when, the server analysis and keyword for extracting this service request information is
" loan " and " compressing ", is mapped to interface layer information, is described to the function of the external service of the Application of Interface according to interface message,
If the corresponding service of A interfaces is compresses loan transaction, function description includes " compressing " and " loan ", then server determines service
The type of request is mortgage loan business.In another example, it is assumed that user is " loan number in front-end interface input service request information
There is restriction" when, server analysis simultaneously extracts the keyword of this service request information as " loan " and " number " and is mapped to
Interface layer information describes the function of the external service of the Application of Interface according to interface message, if the corresponding service of B interface is normal
Objective business is borrowed, function description includes " number " and " loan ", then server determines that the type of service request is often to borrow objective business.
It is understood that the extraction for critical field, can extract the word of similar import, such as " debt-credit number has restriction" can
With the critical field of extraction for " loan " and " number ".The above citing is merely to preferably explain present disclosure, not
Restriction as the present invention.
The request call module 203, for the calling according to the type of the service request to the application server
Interface layer sends out calling service request.
Specifically, after the type of the service request is determined, the request call module 203 is to the application service
The calling interface layer of device 2 sends out calling service request, to load external data, realizes 2 inside and outside data of the application server
Interaction.
The load-on module 204, for according to the calling service request, loading the data of external service.
Specifically, according to the calling service request, the load-on module 204 loads external number by calling interface layer
According to startup external service realizes 2 inside and outside data interaction of the application server.
The feedback module 205, for being that field project is back to the mobile terminal visitor by external service data abstraction
Family end.
Specifically, after starting external service, the application server 2 loads external data, and passes through the feedback module
External service data high abstraction is returned to the mobile terminal client terminal by 205 for field project.For example, calling " mortgage loan "
When service, general user is it is to be appreciated that meet which type of condition meets mortgage loan, such as the house property under user name
Quantity, the service life of house property, automobile quantity, automobile service life etc., external service data are back to the mobile terminal
The field project of client includes house property quantity, the service life of house property, automobile quantity, automobile service life.In another example adjusting
When with " often borrow visitor " service, general user it should be understood that the limit provided a loan every time or loan number, as user's cut-off is current
Loan number, lending bank, lending bank's number etc., then the external service data are back to the mobile terminal client
The field project at end includes loan number, lending bank, lending bank's number etc..Accordingly, user is according to itself practical feelings
Condition and each Field Options content fill in related data.In house property quantity options, 2 are filled in.
By above-mentioned function module 201-205, calling outside service systems 200 proposed by the invention, first application clothes
Business device 2 obtains the service request that mobile terminal client terminal is sent;Then, it analyzes the service request and then determines that the service is asked
The type asked;Then, calling service request is sent out according to the type of the service request;In turn, it is asked according to the calling service
It asks, loads the data of external service;Finally, it is that field project is back to the mobile terminal client by external service data abstraction
End.To realize load external data, external service is called.In this way, both can be to avoid application server service in the prior art
Have a single function, can also by calling external service, the operating pressure for mitigating application server while to realize multifunction call,
Improve user experience.
Further, the above-mentioned first embodiment that outside service systems 200 are called based on the present invention proposes the of the present invention
Two embodiments (as shown in Figure 3).In the present embodiment, the calling outside service systems 200 further include judgment module 206,
In:
The judgment module 206 judges whether to need to call external service for the type according to the service request.
The load-on module 204 loads if being additionally operable to judge that external service need not be called in the application server
Portion's data.
The calling module 203, if be additionally operable to judge to need to call external service, according to the type of the service request
Calling service request is sent out to the calling interface layer of the application server.
Above it will be appreciated that in the first embodiment of the invention, the application server 2 first divides when receiving service request
It analyses the service request and then determines the type of the service request.Normally, 2 inside of application server is comprising by related service
Project, to meet the needs of partial service request.
Therefore, in the present embodiment, the judgment module 206 judges the service according to the type of the service request
Whether request is that service item inside application server 2 passes through the load if it is, external service need not be called
Module 205 loads the internal data of application server 2, and internal database is abstracted as to the mobile terminal of field project return
Client.When the judgment module 206 judges that the service request is not belonging to the internal services project of application server 2, lead to
The calling module 203 is crossed, calling service request is sent out to the calling interface layer of the application server, passes through load-on module
206 load external datas, realize and call external service.
Whether in the other embodiment of invention, server also judges whether the solicited message is legal, i.e., be present in interior
In external service, if it does not, and judge the service request for illegal request, and result is fed back into use by front-end interface
Family.
By above-mentioned function module 203-204 and 206, calling outside service systems 200 proposed by the invention can be sentenced
It is disconnected whether to need to call external service, if judging that external service need not be called, load number inside the application server
According to, if judge to need to call external service, according to the type of the service request to the calling interface of the application server
Layer sends out calling service request, realizes that inside and outside service combines, improves user experience.
Further, the above-mentioned first embodiment that outside service systems 200 are called based on the present invention proposes the of the present invention
Three embodiments (as shown in Figure 5).In the present embodiment, the calling outside service systems 200 further include authentication module 207,
In:
The acquisition module 201 is additionally operable to obtain the client of the mobile terminal client terminal transmission in the field project
The data filled in.
It will be recalled from above that in the first embodiment, external service data high abstraction is field by the application server 2
Return to the mobile terminal client terminal.Such as when calling " mortgage loan " service, the concept field project of return is:Under name in an account book
House property quantity, the service life of house property, automobile quantity, automobile service life.User passes through movement according to the actual conditions of itself
Client terminals fill in the related data of each concept field.
Specifically, the acquisition module 201 obtains the client of the mobile terminal client terminal transmission in the field project
The data filled in.
The authentication module 207, it is whether correct for verifying the data that the field project is filled in.
Specifically, financial fraud in order to prevent, the application server 2 are getting the mobile terminal client terminal transmission
Client in the data that the field project is filled in, verifying the data that the field project is filled in by authentication module 208 is
No correct, in the present embodiment, the authentication module 208 is verified the client and is filled in by the data of the inquiry client
Data it is whether correct.Still illustrate by taking " mortgage loan " external service as an example, when user fills in house property amount field option
One writing is filled out in " 2 " and automobile amount field option, the authentication module inquires external server database, according to user information
Whether two set houses and 1 automobile are really possessed under examination user name, and whether verification two sets of houses and automobile, which meet, compresses
The requirement of loan.
The feedback module 205 is additionally operable to return to verification result.
Specifically, after the application server 2 has verified the data that the field project is filled in, verification result is returned
To the mobile terminal client terminal.For example, really possess two sets of houses and 1 automobile under verification user name, described two sets of verification
Whether house and automobile meet the requirement for compressing loan, then return and meet mortgage loan.If under verification user name and non-genuine gathering around
There are two sets of houses and 1 automobile, then it is wrong to return to assets information, please reaffirm.It is understood that the above citing is only more
The good explanation present invention, is not intended as the restriction of the present invention.
By above-mentioned function module 201,205 and 207, calling outside service systems 200 proposed by the invention, additionally it is possible to
When obtaining the client of the mobile terminal client terminal transmission in the data that the field project is filled in, the field project is verified
Whether the data filled in are correct, and return to verification result to the mobile terminal client terminal, improve the safety for calling external service
Property while, moreover it is possible to feed back information to client in time, improve user experience.
Further, the above-mentioned first embodiment that outside service systems 200 are called based on the present invention proposes the of the present invention
Four embodiments (as shown in Figure 6).In the present embodiment, the calling outside service systems 200 further include sorting module 208,
In
The sorting module 208 is used for the service request write request task list;
The sorting module 208 is additionally operable to sort to the service request according to priority orders.
Specifically, application server 2 can receive multiple service requests of mobile terminal client terminal transmission simultaneously, described more
A service request can be that can be originated from and multiple users from the same user.It will be described by the sorting module 208
Service request write request task list, and sort to the service request according to priority orders.In the present embodiment, it services
Request is sorted according to priority level, and according to that can be the time, the service request first received be placed for the arrangement of priority level
On the head of queue, after the service request that receives be placed on the tail portion of queue.
By above-mentioned function module 208, calling outside service systems 200 proposed by the invention, additionally it is possible to by the clothes
Business request write request task list, sorts to the service request according to priority orders.So that the application server 2 exists
When receiving multiple service requests, processing that can be without any confusion.
Further, the above-mentioned first embodiment that outside service systems 200 are called based on the present invention proposes the of the present invention
Five embodiments (as shown in Figure 7).In the present embodiment, the calling outside service systems 200 further include enquiry module 209 and right
Transmission block 210.
The enquiry module 209, the execution function for inquiring the corresponding external service of the service request type.
The sending module 210, for sending with the call request for executing function name to the application server
Calling interface layer.
It will be recalled from above that in the first embodiment, after the type of the service request is determined, to the application service
The calling interface layer of device 2 sends out calling service request, to load external data, realizes 2 inside and outside data of the application server
Interaction.
Specifically, 2 storage inside of the application server is by packaged execution function, different execution function pairs
The external service answered is different, and user sends service request to the application server 2 by mobile terminal client terminal and is
The execution function provided in business interface layer to call the application server 2.Business interface layer passes through the enquiry module
The corresponding external service of the 209 inquiry service requests, and send to have by the sending module 210 and correspond to external service
The call request of function name is to the calling interface layer.
By above-mentioned function module 209-210, calling outside service systems 200 proposed by the invention, additionally it is possible to inquire
The execution function of the corresponding external service of the service request type, and send there is the call request for executing function name extremely
The calling interface layer of the application server loads external data to realize startup external service.
In addition, the present invention also proposes a kind of calling external service method.
As shown in fig.8, being the implementation process diagram that the present invention calls external service method first embodiment.In this reality
It applies in example, the execution sequence of the step in flow chart shown in fig. 5 can change according to different requirements, and certain steps can be with
It omits.
Step S301 obtains the service request that mobile terminal client terminal is sent.
The application server 2 includes network interface layer, and network interface layer includes business interface layer and calling interface
Layer.The business interface layer receives the service request that mobile terminal client terminal is sent.The calling interface layer loads external data
Realize that external service is called in inside and outside data interaction, final realize.Each calling interface includes interface layer information, described
Interface layer information includes but not limited to that correspondence calls in the information such as function description, the service type of external service.
Specifically, the business interface layer of the application server 2 obtains mobile terminal client terminal by the acquisition module
The service request of transmission.In the present embodiment, a service request, when having handled current service request, just meeting are only handled
Handle another service request.Wherein, another service request can come from the service request or different user of same user
Service request.
Step S302 analyzes the service request and then determines the type of the service request.
It will be recalled from above that each calling interface includes interface layer information, the interface layer information includes but unlimited
In information such as corresponding function description, the service types for calling in external service.
Specifically, when the application server 2 receives the service request information that the mobile terminal client terminal is sent,
The service request information is analyzed, by extracting the keyword of the service request information, institute is mapped to according to the keyword
Interface layer information is stated, so that it is determined that the service request type.For example, when the service request received is " how to judge whether to accord with
It closes loan and compresses condition" when, server analysis and extract this service request information keyword be " loan " and " compressing ",
It is mapped to interface layer information, the function of the external service of the Application of Interface is described according to interface message, such as the corresponding clothes of A interfaces
To compress loan transaction, function description includes " compressing " and " loan " for business, then server determine the type of service request for
Give as security loan transaction.In another example, it is assumed that user is that " loan number has restriction in front-end interface input service request information" when,
Server analysis and the keyword for extracting this service request information are " loan " and " number " and are mapped to interface layer information, root
The function of the external service of the Application of Interface is described according to interface message, if the corresponding service of B interface is the objective business of often loan, work(
It can describe to include " number " and " loan ", then server determines that the type of service request is often to borrow visitor's business.It is understood that
Extraction for critical field can extract the word of similar import, and such as " debt-credit number has restriction" keyword that can extract
Section is " loan " and " number ".The above citing is not intended as the limit of the present invention merely to preferably explain present disclosure
It is fixed.
Step S303 sends out calling clothes according to the type of the service request to the calling interface layer of the application server
Business request.
Specifically, it after the type of the service request is determined, is sent out to the calling interface layer of the application server 2
Service request is called to realize 2 inside and outside data interaction of the application server to load external data.
Step S304 loads the data of external service according to the calling service request.
Specifically, according to the calling service request, external data is loaded by calling interface layer, starts external service,
Realize 2 inside and outside data interaction of the application server.
External service data abstraction is that field project is back to the mobile terminal client terminal by step S305.
Specifically, after starting external service, the application server 2 loads external data, and by by external service number
It is that field project returns to the mobile terminal client terminal according to high abstraction.For example, when calling " mortgage loan " service, general user
It is to be appreciated that meeting which type of condition meets mortgage loan, such as the use of house property quantity, house property under user name
The time limit, automobile quantity, automobile service life etc., external service data are back to the field project of the mobile terminal client terminal
It include house property quantity, the service life of house property, automobile quantity, automobile service life.In another example calling " often borrowing visitor " service
When, general user it should be understood that the limit provided a loan every time or loan number, as user end current loan number, loan
Bank, lending bank's number etc., then the external service data be back to the field project packet of the mobile terminal client terminal
Loan number, lending bank, lending bank's number etc. are included.Accordingly, user selects according to own actual situation and each field
Item content fills in related data.In house property quantity options, 2 are filled in.
S301-305 through the above steps, calling external service method proposed by the invention, first application server 2 obtain
The service request for taking mobile terminal client terminal to send;Then, it analyzes the service request and then determines the class of the service request
Type;Then, calling service request is sent out according to the type of the service request;In turn, according to the calling service request, load
The data of external service;Finally, it is that field project is back to the mobile terminal client terminal by external service data abstraction.To
It realizes load external data, calls external service.In this way, both can be to avoid application server service function list in the prior art
One, it can also improve and use by calling external service, the operating pressure for mitigating application server while to realize multifunction call
It experiences at family.
Further, the above-mentioned first embodiment of external service method is called based on the present invention, and it is outer to propose that the present invention calls
The second embodiment of portion's method of servicing.
As shown in figure 9, being the implementation process diagram that the present invention calls external service method second embodiment.The present embodiment
In, the method includes:
Step S401 obtains the service request that mobile terminal client terminal is sent.
Step S402 analyzes the service request and then determines the type of the service request.
Step S403 judges whether to need to call external service according to the type of the service request, if judging not needing
External service is called, step S404 is executed, if judging to need to call external service, thens follow the steps S405
Step S404 loads the application server internal data.
Step S405 sends out calling clothes according to the type of the service request to the calling interface layer of the application server
Business request.
Step S406 loads the data of external service according to the calling service request.
External service data abstraction is that field project is back to the mobile terminal client terminal by step S407.
Above it will be appreciated that in the first embodiment of the invention, the application server 2 first divides when receiving service request
It analyses the service request and then determines the type of the service request.Normally, 2 inside of application server is comprising by related service
Project, to meet the needs of partial service request.
Therefore, in the present embodiment, the application server 2 judges the service according to the type of the service request
Whether request is service item application server 2 inside, if it is, external service need not be called, load application service
Internal database is abstracted as the mobile terminal client terminal of field project return by the internal data of device 2.When judging the clothes
When business request is not belonging to the internal services project of application server 2, calling is sent out to the calling interface layer of the application server
Service request is realized by loading external data and calls external service.
Whether in the other embodiment of invention, server also judges whether the solicited message is legal, i.e., be present in interior
In external service, if it does not, and judge the service request for illegal request, and result is fed back into use by front-end interface
Family.
S401-S407 through the above steps, calling external service method proposed by the invention, is capable of deciding whether to need
External service is called, if judging that external service need not be called, loads the application server internal data, if judging to need
When calling external service, calling clothes are sent out to the calling interface layer of the application server according to the type of the service request
Business request realizes that inside and outside service combines, improves user experience.
Further, the above-mentioned first embodiment of external service method is called based on the present invention, and it is outer to propose that the present invention calls
The 3rd embodiment of portion's method of servicing.
As shown in Figure 10, it is the implementation process diagram of present invention calling external service method 3rd embodiment.This implementation
In example, the method further includes:
Step S501 obtains the data that the client that the mobile terminal client terminal is sent fills in the field project.
It will be recalled from above that in the first embodiment, external service data high abstraction is field by the application server 2
Return to the mobile terminal client terminal.Such as when calling " mortgage loan " service, the concept field project of return is:Under name in an account book
House property quantity, the service life of house property, automobile quantity, automobile service life.User passes through movement according to the actual conditions of itself
Client terminals fill in the related data of each concept field.
Specifically, the application server 2 obtains the client of the mobile terminal client terminal transmission in the field project
The data filled in.
Whether correct step S502 verifies the data that the field project is filled in.
Specifically, financial fraud in order to prevent, the application server 2 are getting the mobile terminal client terminal transmission
Client in the data that the field project is filled in, it is whether correct by verifying the data that the field project is filled in, at this
In embodiment, whether just the application server 2 verifies data that the client fills in by inquiring the data of the client
Really.Still illustrate by taking " mortgage loan " external service as an example, when user fills in " 2 " and automobile quantity in house property amount field option
One writing is filled out in Field Options, the authentication module inquires external server database, and being checked under user name according to user information is
It is no really to possess two sets of houses and 1 automobile, it verifies two sets of houses and whether automobile meets the requirement for compressing loan.
Step S503 returns to verification result.
Specifically, specifically, it after the application server 2 has verified the data that the field project is filled in, will verify
As a result it is back to the mobile terminal client terminal.For example, really possessing two sets of houses and 1 automobile under verification user name, verify
Whether two sets of houses and automobile meet the requirement for compressing loan, then return and meet mortgage loan.If verifying under user name simultaneously
Non-genuine to possess two sets of houses and 1 automobile, then it is wrong to return to assets information, please reaffirm.It is understood that above lift
Example is only preferably to explain the present invention, is not intended as the restriction of the present invention.
S501-S503 through the above steps, calling external service method proposed by the invention, additionally it is possible to described in acquisition
The client that mobile terminal client terminal is sent verifies the data that the field project is filled in the data that the field project is filled in
It is whether correct, and return to verification result to the mobile terminal client terminal, while improving the safety for calling external service, also
Client can be fed back information in time, improve user experience.
Further, the above-mentioned first embodiment of external service method is called based on the present invention, and it is outer to propose that the present invention calls
The fourth embodiment of portion's method of servicing.
As shown in figure 11, it is the implementation process diagram of present invention calling external service method fourth embodiment.This implementation
In example, the method further includes:
Step S601, by the service request write request task list.
Step S602 sorts to the service request according to priority orders.
Specifically, application server 2 can receive multiple service requests of mobile terminal client terminal transmission simultaneously, described more
A service request can be that can be originated from and multiple users from the same user.In the present embodiment, the application service
Device 2 is by sorting to the service request by the service request write request task list, and according to priority orders.It is described
Service request sorts according to priority level, and the arrangement foundation of priority level can be time, the service request first received
Be placed on the head of queue, after the service request that receives be placed on the tail portion of queue.
S601-602 through the above steps, calling external service method proposed by the invention can also ask the service
Write request task list is sought, is sorted according to priority orders to the service request.So that the application server 2 is receiving
When to multiple service requests, processing that can be without any confusion.
Further, the above-mentioned first embodiment of external service method is called based on the present invention, and it is outer to propose that the present invention calls
5th embodiment of portion's method of servicing.
As shown in figure 12, it is the implementation process diagram of the 5th embodiment of present invention calling external service method.This implementation
In example, the method further includes:
Step S701 inquires the execution function of the corresponding external service of the service request type.
Step S702, sending has the call request for executing function name to the calling interface of the application server
Layer.
It will be recalled from above that in the first embodiment, after the type of the service request is determined, to the application service
The calling interface layer of device 2 sends out calling service request, to load external data, realizes 2 inside and outside data of the application server
Interaction.
Specifically, 2 storage inside of the application server is by packaged execution function, different execution function pairs
The external service answered is different, and user sends service request to the application server 2 by mobile terminal client terminal and is
The execution function provided in business interface layer to call the application server 2.Business interface layer inquires the service request
Corresponding external service, and the call request with the function name for corresponding to external service is sent to the calling interface layer.
S701-702 through the above steps, calling external service method proposed by the invention can also inquire the service
The execution function of the corresponding external service of request type, and sending has the call request for executing function name to the application
The calling interface layer of server loads external data to realize startup external service.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of application server, which is characterized in that the application server includes memory, processor and is stored in described deposit
On reservoir and the calling outside service systems that can run on the processor, the calling outside service systems are by the processing
Device realizes following steps when executing:
Obtain the service request that mobile terminal client terminal is sent;
It analyzes the service request and then determines the type of the service request;
Calling service request is sent out according to the type of the service request;
According to the calling service request, the data of external service are loaded;And
It is that field project is back to the mobile terminal client terminal by external service data abstraction.
2. application server as described in claim 1, which is characterized in that according to the type of the service request to the application
Before the calling interface layer of server sends out the step of calling service request, the processor is additionally operable to execute outside the calling
Service system, to realize that following steps further include:
According to the type of the service request, judge whether to need to call external service;
If judgement need not call external service, the application server internal data is loaded.
3. application server as described in claim 1, which is characterized in that the processor is additionally operable to execute outside the calling
Service system, to realize following steps:
Receive the data that the client that the mobile terminal client terminal is sent fills in the field project;
Whether correct verify the data that the field project is filled in;
Return to verification result.
4. application server as described in claim 1, which is characterized in that described in the analysis service request determines in turn
Further include following steps before the step of type of service request:
By the service request write request task list;
It sorts according to priority orders to the service request.
5. application server according to any one of claims 1-4, which is characterized in that according to the type of the service request to
The calling interface layer of the application server sends out the step of calling service request, specifically includes:
Inquire the execution function of the corresponding external service of the service request type;
Sending has the call request for executing function name to the calling interface layer of the application server.
6. a kind of calling external service method is applied to application server, which is characterized in that the method includes:
Obtain the service request that mobile terminal client terminal is sent;
It analyzes the service request and then determines the type of the service request;
Calling service request is sent out according to the type of the service request;
According to the calling service request, the data of external service are loaded;And
It is that field project is back to the mobile terminal client terminal by external service data abstraction.
7. calling external service method as claimed in claim 6, which is characterized in that according to the type of the service request to institute
State application server calling interface layer send out call service request the step of before, further include:
According to the type of the service request, judge whether to need to call external service;
If judgement need not call external service, the application server internal data is loaded.
8. calling external service method as claimed in claim 6, which is characterized in that the method further includes following steps:
Receive the data that the client that the mobile terminal client terminal is sent fills in the field project;
Whether correct verify the data that the field project is filled in;
Return to verification result.
9. the calling external service method as described in claim 6-8 is any, which is characterized in that the analysis service request
And then further include following steps before the step of determining the type of the service request:
By the service request write request task list;
It sorts according to priority orders to the service request;
The step of calling service request is sent out to the calling interface layer of the application server according to the type of the service request,
It specifically includes:
Inquire the execution function of the corresponding external service of the service request type;
Sending has the call request for executing function name to the calling interface layer of the application server.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has calling outside service systems, institute
It states and calls outside service systems that can be executed by least one processor, so that at least one processor executes such as claim
The step of calling external service method described in any one of 6-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710658100.7A CN108306921A (en) | 2017-08-04 | 2017-08-04 | Call external service method and application server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710658100.7A CN108306921A (en) | 2017-08-04 | 2017-08-04 | Call external service method and application server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108306921A true CN108306921A (en) | 2018-07-20 |
Family
ID=62872614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710658100.7A Pending CN108306921A (en) | 2017-08-04 | 2017-08-04 | Call external service method and application server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108306921A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278133A (en) * | 2019-07-31 | 2019-09-24 | 中国工商银行股份有限公司 | Inspection method, device, calculating equipment and the medium executed by server |
CN110430257A (en) * | 2019-07-31 | 2019-11-08 | 中国工商银行股份有限公司 | Information processing method, device, system and readable storage medium storing program for executing |
CN111368237A (en) * | 2020-03-09 | 2020-07-03 | 无锡开云信息技术有限公司 | Distributed website cache staticizing method, server and system |
CN112242989A (en) * | 2019-07-16 | 2021-01-19 | 富士施乐株式会社 | Information processing apparatus and recording medium |
CN115442422A (en) * | 2022-08-05 | 2022-12-06 | 广州小鹏汽车科技有限公司 | Service providing method, device, vehicle and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102024234A (en) * | 2010-06-04 | 2011-04-20 | 西本新干线股份有限公司 | Electronic transaction service platform |
CN104239156A (en) * | 2013-06-21 | 2014-12-24 | 阿里巴巴集团控股有限公司 | External service call method and system |
CN106020948A (en) * | 2016-05-10 | 2016-10-12 | 中国银联股份有限公司 | Flow process scheduling method and device |
-
2017
- 2017-08-04 CN CN201710658100.7A patent/CN108306921A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102024234A (en) * | 2010-06-04 | 2011-04-20 | 西本新干线股份有限公司 | Electronic transaction service platform |
CN104239156A (en) * | 2013-06-21 | 2014-12-24 | 阿里巴巴集团控股有限公司 | External service call method and system |
CN106020948A (en) * | 2016-05-10 | 2016-10-12 | 中国银联股份有限公司 | Flow process scheduling method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112242989A (en) * | 2019-07-16 | 2021-01-19 | 富士施乐株式会社 | Information processing apparatus and recording medium |
CN110278133A (en) * | 2019-07-31 | 2019-09-24 | 中国工商银行股份有限公司 | Inspection method, device, calculating equipment and the medium executed by server |
CN110430257A (en) * | 2019-07-31 | 2019-11-08 | 中国工商银行股份有限公司 | Information processing method, device, system and readable storage medium storing program for executing |
CN111368237A (en) * | 2020-03-09 | 2020-07-03 | 无锡开云信息技术有限公司 | Distributed website cache staticizing method, server and system |
CN111368237B (en) * | 2020-03-09 | 2024-03-19 | 无锡开云信息技术有限公司 | Distributed website cache staticizing method, server and system |
CN115442422A (en) * | 2022-08-05 | 2022-12-06 | 广州小鹏汽车科技有限公司 | Service providing method, device, vehicle and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108306921A (en) | Call external service method and application server | |
CN104301117A (en) | Identity verification method and device | |
CN107885656A (en) | Product algorithm automated testing method and application server | |
CN107871280A (en) | Loan administration method, application server and computer-readable storage medium | |
CN107911401A (en) | Application plug-in expansion function methods and application server | |
CN107871279A (en) | User ID authentication method and application server | |
CN109800149A (en) | Application interface method for generating test case and server | |
CN114095567B (en) | Data access request processing method and device, computer equipment and medium | |
CN107895273A (en) | Attend a banquet identity information display methods, application server and computer-readable recording medium | |
CN108718337A (en) | Website account login, verification, verification information processing method, apparatus and system | |
CN107908603A (en) | Dynamic generation document method and application server | |
CN109447384A (en) | Verification method, device, equipment and the storage medium of air control system | |
CN109951437A (en) | Safety certifying method, device and server based on recognition of face | |
CN110503545A (en) | Loan is independently into part method, terminal device, storage medium and device | |
CN108171699A (en) | Setting loss Claims Resolution method, server and computer readable storage medium | |
CN107908480A (en) | Wages computational methods, application server and computer-readable recording medium | |
CN112711640A (en) | Method and device for configuring business handling process | |
CN111352851A (en) | Program testing method and device, computer equipment and storage medium | |
CN111314424B (en) | Component management method and system of service platform | |
CN107798536A (en) | Credit line treating method and apparatus | |
CN103067465B (en) | Sharing files method and system | |
CN110503563A (en) | Risk control method and system | |
CN111930505B (en) | Data resource management method and system for big data platform, server and medium | |
CN109918277A (en) | Electronic device, the evaluation method of system log cluster analysis result and storage medium | |
CN109688096A (en) | Recognition methods, device, equipment and the computer readable storage medium of IP address |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180720 |
|
RJ01 | Rejection of invention patent application after publication |