Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device and system for session processing

A technology of equipment and processing flow, applied in the computer field, can solve problems such as inability to obtain session data and inability to implement API call equipment

Active Publication Date: 2017-04-12
HUAWEI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0017] exist figure 2 In the process shown in , the session data can only be set and extracted in one client API call process. If the client initiates two API calls, the second call cannot obtain the session data set by the first API call
[0018] To sum up, the current API open technology cannot realize that when the API calling device calls multiple APIs of the API agent successively, the API called later obtains the session data set during the previous API call, so as to realize the session association of multiple API calls

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
  • Method, device and system for session processing
  • Method, device and system for session processing
  • Method, device and system for session processing

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0198] In the API proxy engine 402, the API proxy execution module 4021 calls the transaction ID mapping module 4022 to complete the typical message definition of the mapping between the external transaction ID and the internal transaction ID.

[0199] Obtain internal transaction ID (API proxy execution module 4021->transaction ID mapping module 4022)

[0200] 1) Request message definition (as shown in Table 1):

[0201] Table 1

[0202]

[0203] 2) Response message definition (as shown in Table 2)

[0204] Table 2

[0205] parameter name Value description Field Type Resultcode Result code, 0 means success integer ResultDesc result description string InnerTransactionID internal transaction ID string

example 2

[0207] A typical message definition for API proxy engine 402 to cache session data to data cache 403 .

[0208] Set session (API Proxy Engine 402 -> Data Cache 403)

[0209] 1) Request message definition (as shown in Table 3):

[0210] table 3

[0211]

[0212] 2) Response message definition (as shown in Table 4):

[0213] Table 4

[0214] parameter name Value description Field Type Resultcode result code. 0 means success integer ResultDesc result description string

example 3

[0216] The API proxy engine 402 acquires a typical message definition of session data from the data cache 403 .

[0217] Get Session (API Proxy Engine 402 <- Data Cache 403)

[0218] 1) Request message definition (as shown in Table 5):

[0219] table 5

[0220]

[0221] 2) Response message definition (as shown in Table 6):

[0222] Table 6

[0223]

[0224] In the following, the present invention will be described through specific examples.

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 present invention relates to the field of computer technology, in particular to a method, device and system for session processing. It is used to realize the session association when the API calling device calls multiple APIs on the API agent successively. In the method provided by the embodiment of the present invention, the API agent caches the session data of the session corresponding to the first API during the processing flow of executing the first API; during the processing flow of executing the second API, according to the request for calling the second API The external transaction identification ID included in is used to identify the session corresponding to the first API, obtain the session data of the session cached in the processing flow of executing the first API, and process the session according to the obtained session data. Wherein, the API proxy obtains the session data of the session corresponding to the first API according to the external transaction ID in the request for calling the second API, and performs session processing according to the obtained session data, realizing the session association between the first API and the second API.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device and system for session processing. Background technique [0002] With the rapid development of Internet technology, more and more services can be provided through the Internet, such as: ordering meals, booking tickets, shopping, etc. In the traditional way, Internet service providers provide services to users through their own WEB portals. When customer needs change frequently, Internet service providers need to continuously update the interface of WEB portals according to customer needs, which makes maintenance difficult. [0003] Therefore, some Internet service providers will open the services provided by the application programming interface (Application Programming Interface, API), and third-party developers or Internet companies use these APIs to develop a variety of applications to meet user personalization and diversity. demand. [0004] Such ...

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): H04L29/06H04L29/08
CPCH04L67/14H04L67/561
Inventor 李世华
Owner HUAWEI TECH CO LTD