Introduction - If you have any usage issues, please Google them yourself
Development environment: jdk1.6+ Tomcat7+ MyEclipse10
Download source code posted at the end of the article:
The first is implemented using the WSDL protocol: XFire is used here
XFire a free, open source SOAP framework, which builds a bridge between POJO and SOA, the main feature is to support the POJO in a very simple way to publish into a Web service, the principle is to automatically obtain the remote interface reflection mechanism
A WSDL is an XML language that describes a Web service and describes how to communicate with a Web service
Prepare: Download xfire-distribution-1.2.6.zip and unzip it before proceeding
(1), create a new Web project (server), the name is XFireWebService, its purpose is to test WebService server
XFire support for the project to support the class library, the xfire-1.2.6 lib all jar and xfire-all-1.2.6.jar copy to the project lib
(2), the XFire loaded into the system to increase web.xml configuration information