The jaxws-pojo
quickstart is a working example of the web service endpoint created from a POJO.
The jaxws-pojo
quickstart demonstrates the use of JAX-WS in {productNameFull} as a simple POJO web service application.
You can check that the Web Service is running and deployed correctly by accessing the following URL: http://localhost:8080/jaxws-pojo-endpoint/JSEBean?wsdl. This URL will display the deployed WSDL endpoint for the Web Service.
-
Make sure you Install the Quickstart Parent Artifact in Maven.
-
Verify that the service is deployed properly.
-
Open a terminal and navigate into the client directory of this quickstart.
$ cd client/
-
Type this command to run the client.
$ mvn exec:java
-
You should see the following response.
JSEBean pojo: pojoClient calling
../shared-doc/undeploy-the-quickstart.adoc ../shared-doc/run-the-quickstart-in-jboss-developer-studio.adoc
For this quickstart, follow the special instructions to Deploy and Undeploy a Quickstart Containing Server and Java Client Projects
-
To build all of the artifacts, right-click on the {artifactId} parent project, and choose Run As –> Maven install.
-
To deploy the service:
-
Right-click on the {artifactId}-service subproject, and choose Run As –> Run on Server.
-
Choose the server and click Finish.
-
This starts the server and deploys the service to the server.
-
-
To access the application:
-
Right-click on the {artifactId}-client subproject and choose Run As –> Java Application.
-
Choose the Client class and click OK.
-
You should see the following message in the Console tab:
JSEBean pojo: pojoClient calling
-
-
To undeploy the project, right-click on the {artifactId} parent project and choose Run As –> Maven build. Enter
wildfly:undeploy
for the Goals and click Run.