Hi, Thanks for your comments. I agree with you, creating a Web service in java is NOT difficult if you use XFire.
The process of writing a bean, renaming it with *.jws extension and placing it in tomcat\webapps\axis folder has some issues. Here are those:
1. Your application must have many other Java classes. If from any of them, you want to invoke a method of your "exposed" bean, how would you do that? Using Web services? That'll be a big NO. Web services are not practical for intra-application calls.
2. If your bean is not just for "hello world", it'll have to talk to some other classes of your application. Being inside another web archive named "axis", how will it see other Java classes of the same application? Your "bean" is in a separate web application now, isn't it?
XFire allows you to expose your methods as Web services from inside the same application. This is known as embeddability.
Best regards, Shahid
|