Table of Contents | ||||
---|---|---|---|---|
|
Using Maven
Follow the steps given below before you build and run the sample:
- Open the maven
pom.xml
file, which is in the base directory of the sample (i.e., sample folder in your product pack using a command line and go to the<PRODUCT_HOME>\samples\Jaxws-Jaxrs\<JAX-WS-Sample-Folder>
). To determine<JAX-WS-Sample>
, see directory. The folders for Jax-ws samples are listed here: JAX-WS Sample Folder. Build the demo and create a WAR file using the following command.
Code Block mvn clean install ()
Deploy the generated WAR file in WSO2 AS with the related logs on the console using the following command:
Code Block mvn -Pdeploy
Start the WSO2 Application Server by executing one of the following commands, where
<PRODUCT_HOME>
is the directory where you installed the product distribution:OS Command On Windows <PRODUCT_HOME>\bin\wso2server.bat --run
On Linux/Solaris sh <PRODUCT_HOME>/bin/wso2server.sh
Deploy the generated WAR file on WSO2 AS with the related logs on the console.
Code Block mvn -Pdeploy
Run the client
Code Block mvn -Pclient
...
Log in to the management console and click List on the Main menu, under Manage/Applications. This opens the Running Applications page. The deployed applications will be listed here.
You can open the required web application by clicking the Find Services action.
Info | ||
---|---|---|
If you want to remove the target directory, run the following command inside the
|
Using Apache Ant
Info |
---|
You need Apache Ant 1.6.2 or higher to build the samples. |
...