REST Service Code Generation via XML Interface Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The development of Representational State Transfer (REST) web services is labor-intensive and error-prone due to the manual analysis and coding of service interface details, which is time-consuming and costly using existing tools.

Innovation Solution

An automated method for generating REST service code using a code generator that processes XML files output from REST analysis tools, creating programming language classes deployable on platforms like Java via Jersey REST containers, reducing human error and development time.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If manual analysis and coding of service interface details is used, then developers can create REST services, but the process becomes labor-intensive and time-consuming

Engineering Contradiction:
ImproveREST service development speedVSAvoidTime required for manual coding
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent performs preliminary analysis of the service interface to extract characteristics and generate a template before actual code generation. The analysis step identifies endpoints, parameters, and data models in advance, allowing the code generator to efficiently produce ready-to-use REST service code without requiring manual coding of these elements.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates a template based on the analyzed service interface characteristics and uses this template to generate the actual REST service code. The template serves as a reusable pattern that captures the structure and conventions of REST services, allowing automatic generation of code that follows best practices without manual intervention for each service.

Inventive Principle:
Principle #26Copying

2Productivity

If manual analysis and coding of service interface details is used, then developers can create REST services, but the process becomes excessively costly

Engineering Contradiction:
ImproveREST service development efficiencyVSAvoidDevelopment cost
Core Design Contradiction:
ProductivityVSEase of manufacture

Solution Approach 1:

The patent creates a template based on the analyzed service interface characteristics and uses this template to generate the actual REST service code. The template serves as a reusable pattern that captures the structure and conventions of REST services, allowing automatic generation of code that follows best practices without manual intervention for each service.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The code generator automatically performs tasks that would otherwise require manual developer intervention. It analyzes service interfaces, extracts characteristics, generates templates, and produces complete REST service code autonomously, reducing the need for manual coding effort and associated labor costs.

Inventive Principle:
Principle #25Self-service

3Reliability

If manual analysis and coding of service interface details is used, then developers can create REST services, but errors increase

Engineering Contradiction:
ImproveREST service code accuracyVSAvoidComplexity of manual coding process
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent creates a template based on the analyzed service interface characteristics and uses this template to generate the actual REST service code. The template serves as a reusable pattern that captures the structure and conventions of REST services, allowing automatic generation of code that follows best practices without manual intervention for each service.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent incorporates validation logic that checks generated code against the service interface characteristics and REST conventions. The code generator provides feedback during the generation process to ensure consistency and correctness, reducing errors that would occur with manual coding.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS9916137B2Rest service source code generation
Publication Date: 2018.03.13 ORACLE INT CORP
  • US9916137B2 patent drawing
  • US9916137B2 patent drawing
  • US9916137B2 patent drawing

AI summary

A system and method for facilitating development of a web service, such as a Representational State Transfer (REST) web service. The example method includes determining one or more characteristics of a service interface and incorporating the resulting information in a file; and automatically generating computer code to implement a REST service based on the file. In a more specific embodiment, the file is an XML file, which may be output from a REST analysis tool applied to the service interface. The web service may leverage or include one or more resources that have been mapped to a REST service via a code generator used to implement the generating step.