Java 2 micro edition (J2ME)-based Web Service interface calling method

A technology of interface and interface address, which is applied in the field of J2ME technology and Web Service communication, can solve the problems that the operation mode of value-added business is difficult to be universally applicable to all users, the difficulty of program development is different, and the development cost is high, so as to reduce development cost, enrich data information, Effects of low processing performance and storage performance

Active Publication Date: 2011-11-23
NEW SINGULARITY INT TECHN DEV
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Realize the Web Service interface call operation on different mobile terminal system platforms. Due to the poor portability between different system platforms, if the mobile terminals of the general users can carry out value-added services by calling the Web Service interface, it is necessary to separately target different system platforms. The development of Web Service interface calling programs will inevitably lead to very high development costs; and the difficulty of program development for implementing Web Service interface calling operations on different system platforms is also different, requiring developers to have a good understanding of the mobile terminal system platform, so the development technology Staff requirements are also quite high
Due to the limitations of the above factors, it has been difficult for mobile terminals to carry out value-added services by calling Web Service interfaces.

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
  • Java 2 micro edition (J2ME)-based Web Service interface calling method
  • Java 2 micro edition (J2ME)-based Web Service interface calling method
  • Java 2 micro edition (J2ME)-based Web Service interface calling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] In this embodiment, the mobile terminal needs to call the Web Service interface to obtain the weather data of Chongqing. The interface address for calling the Web Service interface is "http: / / www.feinno.com / weatherservice / ", and the call parameter is the city that needs to query the weather data Name "Chongqing".

[0025] Adopt method of the present invention to call the method flow of Web Service interface on J2ME platform such as figure 1 As shown, the specific steps are as follows: build an XML compiler and an XML interpreter on the J2ME platform; pre-set the interface address and call parameters for calling the Web Service interface on the J2ME platform, and the XML compiler will generate The Web Service interface call request in XML format; then the J2ME platform sends the Web Service interface call request to the Web Service server through the communication network, and waits to obtain the Web Service service data in XML format returned by the Web Service server, ...

Embodiment 2

[0067] This embodiment is another implementation scheme for obtaining the weather data of Chongqing in Embodiment 1. The method of calling the Web Service interface on its J2ME platform is basically the same as that of the embodiment, except that the constructed XML compiler and XML interpreter are different. .

[0068] The XML compiler constructed in this embodiment is mainly composed of a compilation function comparison table, a Web Service interface call request template and a compilation function value extraction module;

[0069] The compiling function comparison table records the corresponding relationship between the interface address for calling the Web Service interface input by the J2ME platform and the XML interface address function, and the corresponding relationship between the calling parameters for calling the Web Service interface input by the J2ME platform and the XML calling parameter function; Compilation function comparison The specific structure of th...

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 Java 2 micro edition (J2ME)-based Web Service interface calling method. In the method, an extensive markup language (XML) encoder and an XML decoder are constructed on a J2ME platform for Web Service interface calling request application processing and XML-format Web Service data resolution processing to realize the Web Service interface calling of the J2ME platform, so that mobile terminals with JAVA virtual machines all can realize a Web Service interface calling function; and the conventional mobile terminals in the market generally support the J2ME platform, thereby solving the problem of general applicability in value added services developed by calling Web Service interfaces by the mobile terminals. By the scheme provided by the invention, the value added services can be run on all the mobile terminals supporting the JAVA virtual machines only by development on the J2ME platform, and are not required to be repeatedly developed for different mobile terminal system platforms, so the development cost of the value added services is reduced.

Description

technical field [0001] The invention relates to the field of J2ME technology and Web Service communication technology, in particular to a method for invoking a Web Service interface based on J2ME. Background technique [0002] With the rapid development of communication technology and the popularization of mobile terminals, mobile terminal value-added services have gradually integrated into people's lives. Through the value-added services provided by service providers, people can browse and communicate information anytime and anywhere, which is very convenient. people's life, study and work. The pace of people's life is accelerating, the frequency of information updates is getting faster and faster, and people's requirements for instant information are getting higher and higher. Timely updating value-added service information data has become a must for ensuring the service quality of value-added services and enhancing the competitive advantages of value-added services. The ...

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 Applications(China)
IPC IPC(8): H04L29/08H04L29/10
Inventor 黄明春梅林赵思扬
Owner NEW SINGULARITY INT TECHN DEV
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