It is really very difficult for me to create a simple Hello World web service in Java. If you exclude some of the mobile mobile apps for mobile devices that I made, I'm pretty new to the Java environment.
At first I tried Axis2 and it just doesn't work out of the box. A fresh install of Eclipse, Tomcat 6.0, and Axis2. Tried a test application and it failed. You can read about it here . I came to the conclusion that Axis2 just did not work (maybe it worked). I will try to return to the installation of old versions, perhaps one of them will magically start working. I need to change some old project at work that used Axis2, so I have to stick with it. I would really like to switch to another tool.
Then I ran the Oracle article Getting Started with JAX-RPC , and I thought cool, let's try this. Well, I just managed to get angry. Having received half of the article and trying to write some simple test web services, I realized that their code examples were poorly written. Missing brackets, incorrect references, lack of explanation, etc.
First of all, the interface should not extend to the implementation. I'm right?
SunRegPort public interface implements java.rmi.Remote {
In addition, this does not exist:
import java.xml .rpc.server.ServiceLifecycle;
But it does:
import javax.xml .rpc.server.ServiceLifecycle;
Well, I don’t feel competent to criticize too much (because of my level of knowledge about this subject), but in the end I am suspicious that this article is full of JUNK and therefore I can’t follow it.
Please tell me that I'm wrong, and if anyone has any advice or a link to some How-To page that talks about web services, I would appreciate it.
Thanks.