Table of Contents maxLevel 4 minLevel 4
Using Maven
From the base directory of the sample (<PRODUCT_HOME>\samples\Jaxws-Jaxrs\<JAX-WS-Sample-Folder>
), the maven pom.xml
file can be used to build and run the demo. To determine <JAX-WS-Sample>, see Building and Running the JAX-WS SamplesSample Folder.
Using either UNIX or Windows:
...
If you wish to remove the target directory:
Code Block |
---|
run mvn clean |
Using Apache Ant
To deploy the sample service on the server run the following command, from the
<PRODUCT_HOME>\samples\Jaxws-Jaxrs\<JAX-RS-Sample-Folder>
directory. To determine <JAX-WS-Sample>, see Building and Running the JAX-WS SamplesSample Folder.Code Block ant
- Start the application server and access its Management Console at https://localhost:9443/carbon .
- On the Main menu, under Services, click List.
The Deployed Services window will appear. - Click on the respective JAX-RS sample (e.g., async_jaxws).
Execute one of the following command to run the client:
Code Block sh run-client.sh run-client.bat
- Try the sample with different QoS options that appear on its dashboard.
For different options run:
Code Block sh run-client.sh -help
JAX-WS Sample Folder
Sample | JAX-WS Sample Folder |
---|---|
Asynchronous Invocation | async_jaxws |
Build and Invoke a Service Using a WSDL | wsdl_first_jaxws |
Develop Services in Code-First Approach | java_first_jaxws |
JAX-WS Handlers | handlers_jaxws |
MTOM Sample for SWA and XOP | mtom_jaxws |
WS-Security Sample on Signature and Encryption | sign_encrypt_jaxws |
WS-Security Sample on UsernameToken and Timestamp | ws_security\ut |