title: Steps in creating a web service using Axis2 - The client code
body: <p>I am trying to create a web service, my tools of trade are:</p>
  
  <p>**</p>
  
  <blockquote>
    <p>Axis2,  Eclipse,  Tomcat,  Ant</p>
  </blockquote>
  
  <p>**</p>
  
  <p>I need to create a web service from Code, i.e. Write a basic java class which will have the methods to be declared in the WSDL. Then use java2WSDL.sh to create my WSDL.</p>
  
  <p>So, is this approach correct:</p>
  
  <ol>
  <li>Write my Java class with actual business logic</li>
  </ol>
  
  <blockquote>
  <pre><code>package packageNamel;
  
  public class Hello{
  public void World(String name)
            {
              SOP("Hello" + name);
            }
  }
  </code></pre>
  </blockquote>
  
  <ol start="2">
  <li>Now, when I pass this Hello.java to java2WSDL.sh, this will give me the WSDL.</li>
  <li><p>Finally, I will write the services.xml file, and create the Hello.aar with following dir structure:</p>
  
  <p>Hello.aar</p>
  
  <ul>
  <li>packageName
  
  <ul>
  <li>Hello.class</li>
  </ul></li>
  <li>META-INF
  
  <ul>
  <li>services.xml</li>
  <li>MANIFEST.MF</li>
  <li>Hello.WSDL</li>
  </ul></li>
  </ul></li>
  </ol>
  
  <p>Now, I assume, my service will be deployed when I put the aar in tomcat1/webapps/axis2/WEB-INF/services</p>
  
  <p>But, here comes my problem, HOW DO I ACCESS THE METHOD <code>World(String name)</code>???!!, i.e. I am clueless about the client code!</p>
  
  <p>Please enlighten me on making a very basic web service and calling the method. The above described 3 steps might be wrong. It's a community wiki, feel free to edit.</p>
  
  <p>Thanks</p>