Tuesday, March 31, 2009

Building webservice with spring and xfire

Download: sping-xfire.war


In previous post, I wrote a simple webservice by using apache axis. And today, I will show you how to make a webservice by using spring and xfire.
I assume that you have been similar with IDE and will detail in how to configure the application.
Library:
+ spring.jar
+ xfire.jar
+ log4j.jar
+ commons-logggin.jar
+ jdom.jar
Now, let look at application structure:


+EchoService.java is an interface in which there're one function:
public String printback(String text);
+EchoServiceImpl.java: implemented class of the above interface.




Here is web.xml:



then application.xml:



then xfire-servlet.xml:

No comments:

Post a Comment