title: How to create Web Services in Java (with Eclipse)
body: <p>I am really really having hard time to create simple "Hello World" Web Service in Java. If you exclude several mobile Android mobile apps I have done, I am pretty new to Java environment. </p>
  
  <p>First I tried Axis2 and that simply doesn't work out of the box. Fresh installation of Eclipse, Tomcat 6.0 and Axis2. Tried sample test app and it failed miserably. You can read about it <a href="https://stackoverflow.com/questions/7100326/how-to-create-axis2-web-service">here</a>. My conclusion is that Axis2 simply doesn't work (maybe it used to work). I will try to go back to install older versions, maybe one will magically start working. I have to modify some old project at work that was using Axis2, so that's why I have to stick with it. I would hate to have to migrate to some other tool.</p>
  
  <p>Then I ran on Oracle article <a href="http://java.sun.com/developer/technicalArticles/WebServices/getstartjaxrpc/" rel="nofollow noreferrer">Getting Started with JAX-RPC</a> and I was thinking, cool, let's try that. Well, I just managed to get pissed off. After getting half way through the article and trying to write some simple test web service I realized that their code examples are poorly written. Missing brackets, wrong references, missing explanations, etc...</p>
  
  <p>First of all, an interface should extend not implement. Am I right?</p>
  
  <blockquote>
    <p>public interface SunRegPort <strong>implements</strong> java.rmi.Remote {</p>
  </blockquote>
  
  <p>Also, this doesn't exist:</p>
  
  <blockquote>
    <p>import <strong>java.xml</strong>.rpc.server.ServiceLifecycle;</p>
  </blockquote>
  
  <p>But this does:</p>
  
  <blockquote>
    <p>import <strong>javax.xml</strong>.rpc.server.ServiceLifecycle;</p>
  </blockquote>
  
  <p>Well, I don't feel competent to criticize too much (cause of my level of knowledge about this subject of course), but after all I am suspicious that this article is complete JUNK and therefore I am not able to follow it. </p>
  
  <p>Please somebody tell me that I am wrong and if anybody has some advice or link to some How-To page that talks about web services, I would appreciate.</p>
  
  <p>Thanks.</p>