# US 2004/0083465 A1 · Method and system for connecting to an application programming interface

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0083465 A1
- Document ID: US20040083465A1
- Status: Published application
- Kind: A1
- Application number: 10/281,793
- Filed: 2002-10-28
- Published: 2004-04-29
- Earliest claimed: 2002-10-28
- Inventors: Weijia Zhang; Richard Ball Landau
- Web page: https://patentgrep.com/patent/US20040083465A1

## CPC

- G06F 8/70: Software maintenance or management
- G06F 9/4484: {Executing subprograms}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A translation layer connects a user program to an application programming interface by constructing function calls from a template text file that maps user program functions to application programming interface function primitives and by translating function call output received from the application programming interface to a user program format. The translation layer provides a programmable function-based connection that is able to alter the procedure and the semantics of data used to perform a function. For instance, a single user program function call may conditionally invoke plural application programming interface primitives. The translation layer improves flexibility in development of user programs by mediating with application programming interfaces through modifiable template text file and translation rules.

## Claims

### Claim 1

A system for translating between a user program layer and an application programming interface, the system comprising:
a user program function interface having plural functions callable by the user program layer;
a template text file having a map of relationships between the functions and application programming interface functions;
a function constructor interfaced with the user program function interface and the template text file, the function constructor operable to apply the template text file to a function called by the user program to construct a function formatted for the application programming interface;
a connector operable to communicate the formatted function to the application programming interface and to receive a response from the application programming interface;
translation rules operable to translate application programming interface output to a user program format; and
a parser interfaced with the connector and the user program function interface, the parser operable to apply the translation rules to the application programming interface response to translate the response to a user program format.

### Claim 2 (depends on 1)

The system of claim 1 wherein the application programming interface comprises an application server.

### Claim 3 (depends on 1)

The system of claim 1 wherein the function constructor is further operable to apply the template text file to a user program function by combining plural primitive application programming interface functions.

### Claim 4 (depends on 1)

The system of claim 1 wherein the template text file comprises encoded function maps for security.

### Claim 5 (depends on 1)

The system of claim 1 wherein the template text file comprises a user program function operable to call application programming interface functions having a different calling sequence.

### Claim 6 (depends on 1)

The system of claim 1 wherein the constructor is operable to apply the template text file to re-map the semantics of predetermined data values and representations between a client and server.

### Claim 7 (depends on 1)

The system of claim 1 wherein the function constructor is further operable to apply the template text file to a user program function by conditionally executing primitive application programming interface functions.

### Claim 8 (depends on 7)

The system of claim 7 wherein the conditional execution depends on a user program data input.

### Claim 9 (depends on 7)

The system of claim 7 wherein the conditional execution depends on an application programming interface response.

### Claim 10 (depends on 1)

The system of claim 1 wherein the template text file comprises an Extensible Mark-up Language schema.

### Claim 11 (depends on 1)

The system of claim 1 wherein the template text file comprises a subset of application programming interface primitive functions that excludes primitive functions not called by the user program.

### Claim 12 (depends on 1)

The system of claim 1 wherein at least one of the plural functions of the user program function interface comprises a remote function call.

### Claim 13

A method for translating between a user program and an application programming interface, the method comprising:
requesting a function call by the user program;
merging function call type and input data with a text template to format the function call for the application programming interface;
sending the formatted function call to the application programming interface;
receiving output of the formatted function call from the application programming interface;
applying translation rules to the output to translate the output to a user program format; and
returning the translated output to the user program.

### Claim 14 (depends on 13)

The method of claim 13 wherein merging further comprises merging the user program with plural application programming interface primitive functions.

### Claim 15 (depends on 14)

The method of claim 14 wherein merging further comprises formatting the plural application programming interface primitive functions to conditionally execute depending on results returned from called application programming interface primitive functions.

### Claim 16 (depends on 13)

The method of claim 13 further comprising:
modifying one or more application programming interface function and data inputs; and
updating the user program to communicate with the application programming interface by modifying the text template to format one or more user program function calls to use the modified application programming interface function and data inputs.

### Claim 17 (depends on 13)

The method of claim 13 further comprising:
defining the text template to call a subset of less than all primitive functions associated with the application programming interface.

### Claim 18

A medium readable by an information handling system, the medium storing instructions operable to translate between a user program and an application programming interface, the instructions comprising:
a text template operable to map user program functions to application programming interface functions;
translation rules operable to translate application programming interface output to a user program format;
a function constructor operable to accept user program function calls and to apply the text template to determine associated application programming interface functions; and
a rules parser operable to accept application programming interface output and to apply the translation rules to format the output for the user program.

### Claim 19 (depends on 18)

The medium of claim 18 wherein the function constructor is further operable to apply the text template to associate a user program function call with plural application programming interface function primitives.

### Claim 20 (depends on 19)

The medium of claim 19 wherein the association between the user program function call and the plural application programming interface function primitives comprises a conditional execution of at least one function primitive.
