A method and device for calling a service
A service invocation and server technology, applied in the field of service invocation, can solve the problems of heavy workload and low efficiency, and achieve the effect of improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] figure 1 It is a schematic flow chart of a service invocation method according to an embodiment of the present invention. Referring to FIG. 1, the service invocation method in this embodiment includes the following steps:
[0038] Step S101, encapsulating each client that invokes the service of the preset server to obtain the encapsulated client that invokes the service of the preset server;
[0039] Step S102, uniformly receive the service request input by the user through the encapsulation client, and select a corresponding client among the encapsulation clients according to the service request,
[0040] Step S103, send the service request to the preset server through the corresponding client, and call the service interface of the preset server to provide the service;
[0041] Step S104, receiving the result data returned by the preset server, analyzing the result data, and outputting the analyzed result data to the user.
[0042] Depend on figure 1 As can be seen,...
Embodiment 2
[0044] The main implementation steps of the method for service invocation in this embodiment are as follows:
[0045] First, when a service request input by a user is received, the corresponding client is selected according to the client identification parameter in the service request, and the request parameter in the service request is sent to the preset server through the corresponding client. Specifically, enter the initialized Controller control layer according to the user's instruction. The Controller control layer mainly receives the service request sent by the user, and the interface of the Web Service service (such as the service of the PASM server) will be called by the encapsulation client in the Controller control layer. , and the encapsulation client is the unified entry for invoking the Web Service service provided by this embodiment.
[0046] Then, the Controller control layer uses the invokeReq method of the AbStractReqPasmService class to process the user's ser...
Embodiment 3
[0070] image 3 It is a structural block diagram of a service calling device according to an embodiment of the present invention, see image 3 , the means 300 for service invocation include:
[0071] The client encapsulation unit 301 is configured to encapsulate each client that invokes the service of the preset server to obtain an encapsulated client that invokes the service of the preset server;
[0072] The request receiving unit 302 is configured to uniformly receive the service request input by the user through the encapsulation client, and select a corresponding client in the encapsulation client according to the service request,
[0073] The calling unit 303 is configured to send the service request to the preset server through the corresponding client, and call the service interface of the preset server to provide the service;
[0074] The parsing unit 304 is configured to receive the result data returned by the preset server, analyze the result data, and output the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com