architecture. How to switch economy from the original technology architecture to the SOA architecture has become a problem for many enterprises.
XFire Overview
XFire is an open source framework provided by the Codehaus organization that builds a bridge between POJO and SOA, with the main feature supporting the release of POJO to Web services in a very simple way, which not only gives full play to POJO, b
Recently in the study of Java Development WebService, found on the network of several popular options axis, XFire, CFX (XFire of the Next generation), a few days ago turned a few of these three choices of comparative articles, they have some concepts. Decide to practice a sample of yourselfBefore you start, let's introduce some concepts:XFire Java SOAP Framework Overview (excerpt: http://tech.it168.com/j/e/
Xfire Development Example--helloworld ChapterTime:2007-09-11 20:09 Category: Web Service prev | Post Author Juxtapose | 1 Latest Reply | Trackback (0) | PermalinkThis article starts with the most basic HelloWorld use case and describes how to develop a Web service application using Xfire. Complex Web Service applications can be developed in the future.Development environment: eclipse3.2+tomcat5.5.9+xfire1.2
The original blog website address of this instance is: TaobaoBefore you begin, we will introduce some concepts:
Xfire JavaSoap framework Overview (from: http://tech.it168.com/j/e/2006-10-28/200610281432707.shtml)MyeclipseWebServices is built on the xfire external oap framework and tools, and xfire is an open-source external oap framework. It has a lightweight inf
A few days ago the work of contact with a lot of system WebService call, here want to talk about WebService based on spring+xfire implementation of the client stepped on some pits, need to test the point of concern.Configuration items for XfireIt is relatively easy to implement WS client clients in spring, just to write an interface class that is consistent with the WebService interface. There are several parameters to follow in the configuration of X
Today, the technology is updated too fast, so you will miss a lot of things. Today I spent some time researching xfire, but when I finished the demo, when Baidu found that xfire had been updated, cxf, as the next-generation xfire product, would completely replace xfire. It seems that I am outdated. Since the demo has b
Spring is the most popular Java EE Framework at the moment, but using spring's SPRING-WS development WebService is tedious. Xfire is an open source project that simplifies webservice development, and the combination of spring and xfire can greatly simplify webservice development in applications based on the spring framework.
Spring and Xfire can be combined in a
First of all, I have used the above open source framework and JWS. Looking at the previous series of Java6 JWs, it is clear that Java6 JWs is the easiest in terms of both development and deployment. We can not help but recall: with the JAVA6, still need Axis2, XFire, cxf it. To answer this question, you need to compare the implementation of several JWS and other functions to make it clear. 1, JWS is an implementation of the Java language for WebSer
The injection of empty in the spring framework is a headache, and it is easier to find the cause of the problem when WebService and the spring framework fit.
In the SSO system encountered this problem, in the service implementation class to inject Ibatis database operations Mapper has been empty, and finally found that the reason is Xfire and spring when used in conjunction with the normal use of Xfire con
;
}
}
Helloserviceimpl. Java
The method is to pass in a user object, change the username and password of this object to the value we set, and then return this object.Package test;
Public class helloserviceimpl implements ihelloservice ...{
Public void print ()...{
System. Out. println ("action ");
}
Public user getuser (User user )...{
User. setusername ("new name ");
User. setpassword ("new password ");
Return user;
}
}
Ihelloservice. Aegis. XML is bound to the return type for complex p
code has been tested, all passed .The error was reported java.lang.ClassNotFoundException:org.jdom.Element when creating a Web service because the version of the Jdom jar package was imported incorrectly.The jar packages used include:Activation-1.0.2.jarCommons-codec-1.4.jarCommons-httpclient-3.1.jarCommons-logging-1.1.2.jarJaxen-1.1.6.jarJdom-1.0.jarLog4j.jarspring-2.5.6Spring-context-3.2.1.release.jarStax-api-1.0-2.jarStax-utils-20070216.jarWsdl4j-1.6.3.jarWss4j-1.5.12.jarWstx-asl-3.2.0.jarXbe
tools provided by AXIS2 will be your choice. 3, Xfire is a high-performance WebService framework, in JAVA6 before its popularity even more than Apache Axis2,xfire Advantage is the development of convenient, and the existing Web integration is good, can be integrated, and development is very convenient. However, there are no related code tools available for languages other than Java.
Server (provides Webservice interfaces for clients ):
Tools: myeclipse-8.6.1-win32, apache-tomcat-7.0.11
Development steps: 1. Create a project
File-> New-> Web Service Project. The Web Service Project window is displayed. Enter the Project Name (Demo in this example), select XFire, and click next until the Project is completed.
After the creation, open the generated web. xml file. You can see that XFire ha
Xfire Creating an WebService instance appXfire makes it easy to publish Web services in a Java EE application. Compared with other Web service engines,The configuration of the Xfire is simple enough to integrate with spring very easily.: Http://xfire.codehaus.org/Download.A. Publish WebService using Xfire1. Create a service interface Package com.test.service; Import Com.test.service.bean.User;
First, is the so-called "工欲善其事, its prerequisite", the following to configure the operating environment it!
Download Xfire-distribution-1.2.6.zip compressed package to local, unzip the Xfire-all-1.2.6.jar and Lib folder inside the jar into the same folder Xfirejars.
Download install tomcat and the associated Eclipse project, this thought everyone understood, not much to say.
Open Eclipse,
First, create a Web Service Project:
After you click Finish, myeclipse will automatically generate services for you. XML and Web application directory structure, where services. XML is the configuration file you export the service, note in WEB-INF/web. xfire servlet is configured in the XML file.
2. Now, write the pojo class to be exported. The first is the interface:
Package net. rubyeye. webservicedemo;// Generated by myeclipsePublic i
Create a Web Service
1. Create a WEB Project2. Right-click the project and choose myeclipse> Add xfire web service.
3. Create a web service and set it in a pop-up window
4. the system automatically adds File Analysis:
Service. xml
Ihelloworld. Java
Package hellows; // generated by myeclipsepublic interface ihelloworld {Public String example (string message );}
Helloworldimpl. Java
Package hellows; // generated by
XFire Java SOAP Framework Overview (excerpt: http://tech.it168.com/j/e/2006-10-28/200610281432707.shtml)MyEclipse Web Services is based on the Xfire Java SOAP Framework and tools, and Xfire is an open-source Java SOAP Framework. It has a lightweight information processing module that is combined with soap information through Stax. Provides a simple API that works
Since myeclipse7.5, it seems that the xfire plug-in is not enabled by default. I used myeclipse10.6 today and found that no xfire plug-in has been successfully added.
Add steps
1. Open myeclipse-> help-> myeclipse configuration center and wait patiently.
2. Dashboard tab-> myeclipse features scroll bar drop-down to the bottom
Select xfire Web Services Support
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.