title: Java web service client + Axis + Eclipse + Tomcat
body: <p>I'm new to java web services.</p>
  
  <p>Now i'm trying to create a web service client to access a WSDL based web service. So using eclipse i generated the required client stubs/Binding stubs/Port/Port proxy/ServiceLocator etc.</p>
  
  <p>According to my understanding next step is to create a class with the main method to invoke it. Can anyone help me to write that piece of code or at least some links to refer?</p>
  
  <p><strong>EDITED</strong>
  Thank you so much for the hint @pavan-kumar. Finally i come up with following code and it works. Thanks again.</p>
  
  <pre><code>package clients;
  
  import requiredClasses;
  
  public class TestClient {
      public static void main(String args[]) throws Exception
      {
          TestPortProxy tProxy = new TestPortProxy();
  
          RequestEntity rEntity = new RequestEntity();
          rEntity.setAttribute1(100);
          rEntity.setAttribute2("value1");
  
          tProxy.webServiceAction(rEntity);   
      }
  }
  </code></pre>