title: "Hello World" application on Java JAX-WS
body: <p>I have a question ... 
  I have an implementation of a simple "Hello World" application on Java JAX-WS:</p>
  
  <p>I did not get access to the methods, specifically "getHelloWorldAsString". 
  I tried jquery and plugin "jquery.soap".
  How can I call a method from JavaScript?
  Can you give me an example? Or what do I change in Java code?</p>
  
  <p><strong>ITest.java File:</strong></p>
  
  <pre><code>package ru.ntcsiz.searcher.search.test;
  
  import javax.jws.WebMethod;
  import javax.jws.WebService;
  import javax.jws.soap.SOAPBinding;
  import javax.jws.soap.SOAPBinding.Style;
  
  //Service Endpoint Interface
  @SOAPBinding(style = Style.RPC)
  public interface ITest {
  
      @WebMethod String getHelloWorldAsString(String name);
  
  }
  </code></pre>
  
  <p><strong>TestClass.java:</strong></p>
  
  <pre><code>package ru.ntcsiz.searcher.search.test;
  
  import javax.jws.WebService;
  
  //Service Implementation
  @WebService(endpointInterface = "ru.ntcsiz.searcher.search.test.ITest")
  public class TestClass implements ITest {
  
      @Override
      public String getHelloWorldAsString(String name) {
      return "Hello World! It's works! " + name;
      }
  }
  </code></pre>
  
  <p><strong>TestClassPublisher.java:</strong></p>
  
  <pre><code>package ru.ntcsiz.searcher.search.test;
  
  import javax.xml.ws.Endpoint;
  
  public class TestClassPublisher {
  
      public static void main(String[] args) {
         Endpoint.publish("http://localhost:9999/ws/test", new TestClass());
      }
  }
  </code></pre>