Introduction to Java Web Services xfire (basic) I

Source: Internet
Author: User

Getting started with xfire (basic) I

Xfire Basics

First
Download the release package of xfire1.2.
2: After the download, decompress the directory structure of xfire-distribution-1.2.zip.
Xfire-1.2/
+-API documentation for API xfire-1.2
+-Java example of examples xfire-1.2
+-Lib xfire-1.2 need to use jar packages, these jar packages need to be copied to the application of the WEB-INF/lib directory, it is best to copy
+-Manual xfire-1.2 manual, unfortunately e-paper
+-Modules
-Jar package for xfire-all-1.2.jar xfire-1.2

3: xfire-1.2 jar package description
X = required
O = optional

The package name VERSION basically uses the annotation license
Xfire-All 1.1 x MIT
Activation framework 1.0.2 + x 1.1 + is cddl
Commons-codec 1.3 o xfire client requires ASL 2.0 for HTTP access
Commons-httpclient 3.0 o xfire client requires ASL 2.0 for HTTP access
Commons-logging 1.0.4 x ASL 2.0
Javamail 1.4 x email attachment cddl for soap
Jaxen 1.1-beta-8 x if you use abstractxfiretest, you can use ASL 1.1.
JDOM 1.0 x ASL 1.1
Jetty 5.x o xfirehttpserver requires ASL 2.0
JUnit 3.8.1 o CPL 1.0 is used only when abstractxfiretest is used
Servletapi 2.3 X.
Spring 1.2.4 + x ASL 2.0
Stax-API 1.0.1 x ASL 2.0
Wsdl4j v1.5.2 x CPL 1.0
Xbean-spring 2.4 x ASL 2.0
(Xfire versions earlier than 1.1 Use 2.3)
Woodstox 2.9.3 x ASL 2.0

XMLSCHEMA 1.0.3 o dynamic xfire client used ASL 2.0

Xfire-jsr181-api 1.0-M1 o needed for jsr181 annotations MIT

3: deploy an example in xfire-1.2/Examples

How do I know whether the deployed Web Service works normally? We need to test. First, let's test whether the WSDL is available.
Enter the URL in the browser. Which URL? If our applicationProgramThe war file of is xfire. War,
The service name given in services. XML is banking,
The URL of the WSDL should be: http: // localhost: 9000/xfire/services/banking? WSDL.
Note: The first part of the URL, for example, http: // localhost: 9000, may vary depending on your application server.
In any case, when you enter a URL, you will see an XML document whose root element is.
This document is called the service WSDL. If you see it, this is the first proof that your application is available as a web service.
The displayed WSDL is as follows:

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.