post score 0 times, average 0.0

About webservice

Due to the JSON and JMI web services written in JAVA and PHP, this time it is natural to think about using webservice to manage the to-do list.What JAVA and PHP JSON, JMI, and webservice have in common is that they can provide server resource sharing. Web Service is cross-platform and can be invoked in different devices and different programming languages, so its application scope should be wider than RMI.

Webservice implementation management to-do list based on MySQl database query

Run the screenshot

Java implementation webservice+MySQl Java implementation webservice+MySQl Add User: Add Items: Inquiry Items: Delete Items: Clear Items: Java implementation webservice+MySQl

How server-side code is implemented

Here's how to implement the server-side code for the above functions:. My server has four main categories: database connection and method interface TodoListInterDbFace, database connection and method implementation class TodolistDb and method implementation class and webservice interface TodoListServerInterface, Webservice implementation class TodoListServer.  

The following is a schematic diagram:

Java implementation webservice+MySQl

How the client code is implemented

Wsimport -keep After parsing the WSDL: The main method for creating the TodoListClient class is:

  For the realization of the menu please refer to my blog article:


This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!

Reprinted Note Source: Baiyuan's Blog>>

Post comment


No Comment


Forget password?