Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2021-07-13
ULTRAPOWER SOFTWARE
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides a method and device for service invocation to solve the problems of heavy workload and low efficiency when checking the cause of failure of existing service invocation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for calling a service
  • A method and device for calling a service
  • A method and device for calling a service

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for calling a service. The method includes: encapsulating each client that calls a service of a preset server to obtain a packaged client that calls a service of a preset server; For the input service request, select the corresponding encapsulated client according to the service request, send the service request to the preset server through the corresponding client, call the service interface of the preset server to provide services; receive the result data returned by the preset server And analyze the result data, and output the analyzed result data to the user. The service invocation method and device of this embodiment can quickly troubleshoot the problem of abnormal invocation of the interface during the service invocation process, and is easy for subsequent developers to develop and facilitate daily maintenance.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for calling a service. Background technique [0002] At present, in the process of invoking a service (such as a Web Service service), since the method of the Web Service client calls the interface of the Web Service service separately, when a service invocation fails and it is necessary to troubleshoot the cause of the failure, the prior art It is to enter the corresponding log before and after the execution of each method that calls the Web Service service interface to check the location of the exception. This method not only requires a lot of work, but also the written log cannot be overwritten due to too much legacy code. to all locations, and thus cannot complete the abnormal call detection, and the troubleshooting efficiency is low. Contents of the invention [0003] The invention provides a method and device for service invocation to solve the prob...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/24H04L29/08
CPCH04L41/0803H04L67/02H04L67/60
Inventor 刘伟
Owner ULTRAPOWER SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products