Method and device for establishing Web service

A web service and server technology, applied in the computer field, can solve problems such as the complex structure of Tomcat, low efficiency of creating web services, and slow response speed of web services

Inactive Publication Date: 2014-01-08
LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
View PDF0 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when using the Spring framework to create REST-based Web services, on the one hand, due to the large number of .XML files used when config

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 and device for establishing Web service
  • Method and device for establishing Web service
  • Method and device for establishing Web service

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] A method for creating a Web service provided by an embodiment of the present invention, such as figure 1 As shown, the execution body of the method may include a computing node, and the method may include:

[0043] S101. The computing node creates a web project, and integrates the web project with Jersey.

[0044] Java is a general term for an object-oriented programming language (Java language) that can write cross-platform application software and the Java platform. Wherein, the Java platform is composed of a Java Virtual Machine (Java Virtual Machine, JVM) and a Java Application Programming Interface (Application Programming Interface, API).

[0045] It should be noted that, the method for creating a Web service provided by the embodiment of the present invention can be implemented on the Java platform using the Java language.

[0046] REST is a set of architectural constraints and principles based on which software developers can design web services centered on sy...

Embodiment 2

[0066] A method for creating a Web service provided by an embodiment of the present invention, such as figure 2 As shown, the execution body of the method may include a computing node, and the method may include:

[0067] S201. A computing node creates a web project.

[0068] Java is a general term for an object-oriented programming language that can write cross-platform application software and the Java platform. The Java platform consists of a Java virtual machine and a Java application programming interface.

[0069] It should be noted that, the method for creating a Web service provided by the embodiment of the present invention can be implemented on the Java platform using the Java language.

[0070] REST is a set of architectural constraints and principles by which a software developer can design a system's resource-centric Web services, which can include how clients written in different languages ​​process and transmit the state of a resource over HTTP . Thus an ap...

Embodiment 3

[0122] Such as image 3 As shown, the embodiment of the present invention provides an apparatus 1 for creating a Web service, and the apparatus 1 for creating a Web service may include:

[0123] The creating unit 10 is used for creating Web projects.

[0124] The processing unit 11 is configured to integrate the Web project created by the creation unit 10 with Jersey, and connect the Web project and the Jetty server according to a preset software interface, and connect to the JDBI server according to a preset command. The above-mentioned Web project and database are created to create a Web service corresponding to the above-mentioned Web project.

[0125] Optionally, the processing unit 11 is specifically configured to add the Jersey core class library to the configuration file of the Web project created by the creation unit 10, and configure the configuration file in the configuration file of the Web project. Describes Jersey's interceptors.

[0126] Optionally, the proces...

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 provides a method and a device for establishing a Web service, which relate to the technical field of a computer and are capable of increasing the establishing efficiency and the response speed of a REST-based Web service. The method comprises the steps of establishing Web engineering, integrating the Web engineering with Jersey, connecting the Web engineering with a Jetty server according to a preset software interface, and connecting the Web engineering with a database through JDBI according to a preset command for establishing the Web service corresponding to the Web engineering.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for creating a Web service. Background technique [0002] At present, with the development of Internet applications, such as social networking and online payment, the number of Internet users is increasing rapidly. Since REST (Representational State Transfer, representational state transfer) gives priority to the characteristics of distribution and scalability, it is especially suitable for the Internet field where the number of users is growing rapidly. Therefore, in today's rapid growth of Internet users, it is necessary to develop REST-based web services have become key. [0003] In the prior art, developers usually use the Spring framework to create REST-based Web services. Developers use .XML files to configure Spring, use Tomcat as an embedded HTTP (Hypertext Transport Protocol, Hypertext Transfer Protocol) service container, and use Hibernate to est...

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
IPC IPC(8): H04L29/08
Inventor 姚晓鹏孟大巍
Owner LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products