All-round analysis of Web services development steps

Source: Internet
Author: User
Tags web services tomcat soapui

Introduction: The development of Web services is continuous, resilient, it plays a more and more important role, while WEB services are implemented more often, which leads many developers who want to learn Web services not to know how to do it, This tutorial chooses the most popular ways to implement Web services today, and illustrates the development process of Web services in a comprehensive way through concrete examples.

Basic development environment

Operating system: This tutorial is used for Windows Vista Enterprise, if your system is Linux, please choose to download the corresponding version of other tools, including development tools, Java EE server, Apache Ant, Soapui.

Development tools: Eclipse IDE for SOA developers version, go to the http://www.eclipse.org/downloads/Web site to download, this version of the Eclipse tool integrates some Web Services plug-ins, for Open WEB Services provides some convenience.

Java EE Server: apache-tomcat-6.0.18, can download to http://tomcat.apache.org/download-60.cgi, use any version of more than 5.0 can, of course, you can also use Jboss and other Java EE servers.

JDK: Download the 1.5.0_17 version to http://java.sun.com and install it after downloading.

Other tools: Apache Ant vsersion "1.6.5" for code packaging, to http://ant.apache.org/downloads, soapui 3.5 for Web Services testing, to http://www.soapui.org /download, any version can be, for this tutorial has no impact.

Web Services Introduction

Web Services is a new platform for building interoperable distributed applications; The Web services platform is a set of standards that defines how an application interacts with the Web, and you can write Web services on any of your favorite platforms in any language you like, as long as we can query and visit these services through WEB services standards Ask. Simply put, web Service is a modular application that can be described, published, positioned, and invoked on the Web. There are a number of ways to implement Web services, this article also not one by one, looking for a few I think the most commonly used to share several implementations, first introduced using Axis to implement Web services development, and then introduce the use of CXF to develop Web services. For each implementation approach, I have to use a step-by-step method to explain to everyone, from the construction of the project until the delivery of Services, we can also go to the web search for this aspect of the relevant tutorials, a lot, but most of it is simply to teach you how to develop a Service, How to test? How can I verify that it is ready to be delivered to the user? Speak very little, not to mention the automation of the project later, less gossip, the following we will enter the Service of specific development examples to explain, each instance with a detailed analysis process.

Developing Web Services with Axis

Preparing the Environment

Apache Axis2 1.5 Build (30-04-2009) to http://ws.apache.org/axis2 download;

Copy the Axis2.war to the webapps of the apache-tomcat-6.0.18;

Axis2.war This package provides us with the basic Environment for service operation, including the service-dependent jar package, service parsing, and so on, we just need to pack the developed service into AAR and then put it in the directory structure, and the language can sometimes is in plain, below we still through a concrete example to explain under.

Development Services

Create a new Java project named Ws_axis_example

Figure 1, New ws_axis_example

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.