THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
CXF has an initial implementation of JAX-RS (JSR-311): Java API for RESTfulWeb Services. JAX-RS provides a more standard way to build RESTful services in Java.
A demo called restful_jaxrs can be found in CXF distribution JAX-RS related demos are located under samples\jax_rs directory (CXF 2.1 only).
Understanding the basics
...
Code Block | ||||
---|---|---|---|---|
| ||||
@UriTemplate("/customerservice/") public class CustomerService { @HttpMethod("PUT") @UriTemplate("/customers/") public javax.xml.transform.dom.DOMSource updateCustomer(javax.xml.transform.dom.DOMSource ds) { .... } } |
Secure JAX-RS services
A demo called samples\jax_rs\basic_https shows you how to do communications using HTTPS.
Configuring JAX-RS services
...