Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Seems jdk 6.0 already comes with a jax-ws implementation, and a little server you can embed. I havn't figured out all the pieces but here's a start:</p> <pre><code>mkdir -p helloservice/endpoint/ </code></pre> <p><strong>helloservice/endpoint/Hello.java :</strong></p> <pre><code>package helloservice.endpoint; import javax.jws.WebService; @WebService() public class Hello { private String message = new String("Hello, "); public void Hello() {} public String sayHello(String name) { return message + name + "."; } } </code></pre> <p><strong>helloservice/endpoint/Server.java:</strong></p> <pre><code>package helloservice.endpoint; import javax.xml.ws.Endpoint; public class Server { protected Server() throws Exception { System.out.println("Starting Server"); Object implementor = new Hello(); String address = "http://localhost:9000/SoapContext/SoapPort"; Endpoint.publish(address, implementor); } public static void main(String args[]) throws Exception { new Server(); System.out.println("Server ready..."); Thread.sleep(5 * 60 * 1000); System.out.println("Server exiting"); System.exit(0); } } </code></pre> <p><strong>Build the thing:</strong></p> <pre><code>mkdir build javac -d build helloservice/endpoint/*java $JAVA_HOME/wsgen -d build -s build -classpath . helloservice.endpoint.Hello </code></pre> <p><strong>Run the thing:</strong></p> <pre><code>java -cp build helloservice.endpoint.Server </code></pre> <p>Somethings running on <a href="http://localhost:9000/SoapContext/SoapPort" rel="noreferrer">http://localhost:9000/SoapContext/SoapPort</a> now. You can get the wsdl on <a href="http://localhost:9000/SoapContext/SoapPort?WSDL" rel="noreferrer">http://localhost:9000/SoapContext/SoapPort?WSDL</a></p> <p>Havn't gotten around to making a client yet..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload