Example building a SOAP Web Service with Java EE 7 using JAX-WS.
Generate WSDL from server into client use wsimport can be done with execute command below on terminal and keep remember to execute this on client directory.
wsimport -keep -verbose http://localhost:8080/server/AccountService\?wsdl -d src/main/java
Don't forget to specify directory target, put the code on src/main/java
and delete .class
files since we just need the .java
files.