Apache CXF
...
Example Projects
The following tables provide information about a subset of the example projects provided by Apache CXF in the standard distributions.
JAX-WS
...
Examples
Project Example Name | Project Locations | Example Description | Example LocationProject Description | |
---|---|---|---|---|
Java First using JAX-WS APIs and JSR-181 | java_first_jaxws | Sample illustrates how to develop a service using the "code first" approach with the JAX-WS APIs.Java First JAX-WS APIs and JSR-181 | java_first_jaxws_factory_bean | |
Java First demo service using the JAXWSFactoryBeans | Sample illustrates how to develop a service using the JAXWSFactoryBeans. It also makes use of LoggingInterceptors. The sample takes the "code first" approach using JAX-WS APIs. | Java First POJO | java_first_pojojaxws_factory_bean | |
Java First POJO Sample | Sample illustrates how to develop a service that is "code first", POJO-based. This sample uses the JAXB Data binding by default, but you can use Aegis Data binding by removing a few lines detailed in the README.txt file.Spring HTTP | java_first_spring_supportpojo | ||
Spring HTTP Sample | Sample will lead you through creating your first service with Spring. You'll learn how to write a simple JAX-WS "code-first" service, set up the HTTP Servlet transport and use CXF's Spring beans. | java_first_spring_support | ||
JAX-WS Asynchronous | jaxws_async | Demo using Document/Literal Style | Sample using Document/Literal Style sample illustrates the use of the JAX-WS asynchronous invocation model. | jaxws_async |
JAX-WS Dispatch/Provider jaxws_dispatch_providerDemo | Sample demonstrates the use of JAX-WS Dispatch and Provider interface. | jaxws_dispatch_provider | ||
JAX-WS Handler Demo | jax_ws_handlers | Sample shows how JAX-WS handlers are used. The server uses a SOAP protocol handler which logs incoming and outgoing messages to the console. | jax_ws_handlers | |
RESTful Hello World Demo | Sample shows REST based Web Services using the JAX-WS Provider/Dispatch. | restful_dispatch |
WSDL-
...
First Examples
Project Example Name | Project Locations | Example Description | Example LocationProject Description | |
---|---|---|---|---|
WSDL First | wsdl_first | Sample shows how to build and call a web service using a given WSDL (also called Contract First). | Hello World using Document/Literal Style and a Dynamic Client | wsdl_first_dynamic_client |
CXF Dynamic Client Sample | Sample illustrates the use of the CXF dynamic client against a standalone server using SOAP 1.1 over HTTP. | Hello World using HTTPS communications | wsdl_first_https_dynamic_client | |
WSDL first demo using HTTPS | Sample takes the hello world sample a step further by doing the communication using HTTPS. | wsdl_first_https | ||
WSDL first demo Hello World using BARE Style in XML Binding (pure XML over HTTP) | wsdl_first_pure_xml | Sample illustrates the use of Apache CXF's xml binding. This specific sample shows you how xml binding works with the doc-lit bare style. | wsdl_first_pure_xml | |
WSDL first demo Hello World using RPC-Literal Stylewsdl_first_rpclit | Sample demonstrates the use of the hello world sample with RPC-Literal style binding. | wsdl_first_rpclit | ||
WSDL first demo using SOAP12 in Hello World SOAP12 using Document/Literal Style | wsdl_first_soap12 | Sample shows the use of Apache CXF's SOAP 1.2 capabilities. | wsdl_first_soap12 | |
CXF sample Hello World using WRAPPED Style in XML Binding (pure XML over HTTP) | wsdl_first_xml_wrapper | Sample illustrates the use of Apache CXF's xml binding. This specific sample shows you how xml binding works with the doc-lit wrapped style. | wsdl_first_xml_wrapped |
JAX-RS
...
Examples
Project Example Name | Project Locations | Project Example Description | Example Location | ||
---|---|---|---|---|---|
JAX-RS sample collection | More then 20 JAX-RS examples | RESTful Hello World | restful_dispatch | Sample shows REST based Web Services using the JAX-WS Provider/Dispatch. | |
RESTful HTTP Binding restful_http_bindingDemo | Sample shows how to create RESTful services using CXF's HTTP binding. The server in the sample creates 3 different endpoints: a RESTful XML endpoint, a RESTful JSON endpoint, and a SOAP endpoint. |
Javascript Samples
restful_http_binding |
Javascript Examples
Example Name | Example Description | Example Location | Project Name | Project Locations | Project Description |
---|---|---|---|---|---|
Generated JavaScript using JAX-WS APIs and JSR-181 | js_browser_client_java_first | Sample shows the generation of JavaScript client code from a JAX-WS server.JavaScript Client | js_browser_client_simple_java_first | ||
JavaScript Client | Sample using Document/Literal Style sample illustrates the use of the JavaScript client generator. This sample deploys the service based on the wsdl_first demo, and then provides a browser-compatible client that communicates with it. | js_browser_client_simple | |||
Hello World Client sample using JavaScript client | js_client | Sample demonstrates the use of (non-browser) JavaScript client to call a CXF server. | js_client | ||
Hello World sample using JavaScript and E4X Implementations | js_provider | Sample demonstrates the use of the JavaScript and E4X dynamic languages to implement JAX-WS Providers. | js_provider |
WS-*
...
Examples
Project Example Name | Project Locations | Example Description | Example LocationProject Description |
---|---|---|---|
WS-Addressing ws_addressingDemo | Sample shows how WS-Addressing support in Apache CXF may be enabled. | ws_addressing | |
WS-Policy Demo | ws_policy | Sample shows how the CXF WS-Policy framework in Apache CXF uses WSDL 1.1 Policy attachments to enable the use of WS-Addressing. | ws_policy |
WS-RM ws_rmDemo | Sample shows how WS-ReliableMessaging support in Apache CXF may be enabled. | ws_security\interopfestrm | |
Security Interofest | Sample is being used to help implement WS-SecurityPolicy, WS-SecureConversation, and WS-Trust within CXF. | ws_security\interopfest | |
WS-Security (Signature and Encryption) | ws_security_sign_enc | Sample shows how WS-Security support in Apache CXF may be enabled. WS-Security can be configured to the Client and Server endpoints by adding WSS4JInterceptors. Both Server and Client can be configured for outgoing and incoming interceptors. Various Actions like, Timestamp, UsernameToken, Signature, Encryption, etc., can be applied to the interceptors by passing appropriate configuration properties. | ws_security_sign_enc |
WS-Security (UsernameToken and Timestamp)ws_security_ut | Sample shows how WS-Security support in Apache CXF may be enabled. WS-Security can be configured to the Client and Server endpoints by adding WSS4JInterceptors. Both Server and Client can be configured for outgoing and incoming interceptors. Various Actions like, Timestamp, UsernameToken, Signature, Encryption, etc., can be applied to the interceptors by passing appropriate configuration properties. | ws_security_ut | |
WS-Security (UsernameToken and Timestamp) | ws_security\ut_policy | Sample shows how WS-Security support in Apache CXF may be enabled. WS-Security can be configured to the Client and Server endpoints by adding WS-SecurityPolicies into the WSDL. | ws_security\ut_policy |
WS-Security (Signature and UsernameToken) | ws_security\ut_sign | Sample shows how WS-Security support in Apache CXF may be enabled. WS-Security can be configured to the Client and Server endpoints by adding WSS4JInterceptors. Both Server and Client can be configured for outgoing and incoming interceptors. Various Actions like, Timestamp, UsernameToken, Signature, Encryption, etc., can be applied to the interceptors by passing appropriate configuration properties. | ws_security\ut_sign |
Data Bindings
...
Examples
Project Example Name | Project Locations | Project Description | Example Description | Example Location |
---|---|---|---|---|
CXF sample using code first POJO's and the Aegis Binding | Aegis | aegis | Sample illustrates how to develop a service that is "code first", POJO-based. This sample uses the Aegis data binding. | aegis |
Aegis Standalone | aegis_standaloneCXF sample using the Aegis Binding without any webservice | Sample shows you how you can use Aegis with no web service at all (standalone) as a mapping between XML and Java. | aegis_standalone | |
Hello World using Document/Literal Style and XMLBeans |
...
Sample illustrates the use of the JAX-WS APIs and with the XMLBeans data binding to run a simple client against a standalone server using SOAP 1.1 over HTTP. |
...
xmlbeans |
CXF and JMS Examples
Example Name | Example Description | Example Location |
---|---|---|
Java First demo using JAX-WS and JMS |
| java_first_jaxws_jms |
JMS Transport Publish/Subscribe Demo using Document-Literal Style | Sample using Document-Literal Style sample demonstrates use of the Document-Literal style binding over JMS transport using the pub/sub mechanism. | jms_pubsub |
JMS Transport Queue Demo using Document-Literal Style | Sample using Document-Literal Style sample demonstrates use of the Document-Literal style binding over JMS Transport using the queue mechanism. | jms_queue |
JBI Examples
Example Name | Example Description | Example Location |
---|---|---|
JBI EPEC |
JBI Samples
Project Name | Project Locations | Project Description | |
---|---|---|---|
JBI EPEC | integration\JBI\external_provider_external_consumer | Sample illustrates how external CXF client using SOAP/HTTP can communicate with external CXF server using SOAP/JMS through JBI SOAP and JMS binding component (as a transformer).JBI EPIC | integration\JBI\external_provider_internalexternal_consumer |
JBI EPIC | Sample illustrates how internal CXF client that is deployed into CXF service engine can communicate with external CXF server through a generic JBI JMS binding component (as a router). | JBI and Handlers | integration\JBI\handlersexternal_provider_internal_consumer |
JBI and Handlers | Sample shows how JAX-WS handlers can be used in CXF service engine. The sample consists of a CXF Service Engine and a test service assembly. The service assembly contains two service units: a service provider (server) and a service consumer (client). | JBI IPEC | integration\JBI\internal_provider_external_consumerhandlers |
JBI IPEC | Sample illustrates how external CXF client can communicate with internal CXF server which is deployed into CXF service engine through a generic JBI binding component (as a router). | JBI IPIC | integration\JBI\internal_provider_internalexternal_consumer |
JBI IPIC | Sample shows how CXF can be used to implement service implementations for a Java Business Integration (JBI) container. The sample consists of a CXF Service Engine and a test service assembly. The service assembly contains two service units: a service provider (server) and a service consumer (client). |
JCA Samples
integration\JBI\internal_provider_internal_consumer |
JCA Examples
Example Name | Example Description | Example Location | Project Name | Project Locations | Project Description |
---|---|---|---|---|---|
Inbound Connection CXF J2EE | integration\jca\inbound | Sample shows how to expose an Enterprise Java Bean over SOAP/HTTP using CXF. | integration\jca\inbound | ||
CXF Inbound Resource Adapter Message Driven Beanintegration\jca\inbound-mdb* | Three samples... new inbound resource adapter samples (inbound-mdb, inbound-mdb-dispatch, and inbound-mdb-dispatch-wsdl). This series of inbound adapter samples leverages the JCA Specification Version 1.5 and Message Driven Bean in EJB 2.1 to activate CXF service endpoint facade inside the application server. For more information about the JCA message inflow model, please refer to chapter 12 (Message Inflow) of the JCA Specification 1.5. | integration\jca\inbound-mdb* | |||
Outbound Connection CXF J2EE | integration\jca\outbound | sample Sample shows how to connect with an Apache CXF Web service using a Servlet deployed in an application server; Hello World (SOAP over HTTP) | integration\jca\outbound | ||
CXF Outbound Resource Adapter IBM WebSphere 6.1 | integration\jca\outbound.wsa61 | sample Sample demonstrates the new CXF outbound resource adapter. |
Miscellaneous Samples
integration\jca\outbound.wsa61 |
Miscellaneous Examples
Example Name | Example Description | Example Location | ||
---|---|---|---|---|
CXF Sampe using a callback object | ||||
Project Name | Project Locations | Project Description | ||
Callback | callback | Sample shows a client creating a callback object by passing an EndpointReferenceType to the server. The EndpointReferenceType is then used by the server to call back on the callback object. | callback | |
CXF Sample of Stream GZIP Interceptorconfiguration_interceptor | Example shows how to develop an interceptor and add the interceptor into the interceptor chain through configuration. | configuration_interceptor | ||
Groovy with Spring Support | groovy_spring_support | Sample shows how to create groovy web service implemented with Spring. You'll learn how to write a simple groovy script web service. | groovy_spring_support | |
Colocated Demo Co-located using Document/Literal Style |
| in_jvm_transport sample. Note: Project’s README.txt does not provide a sample description. | ||
JMS Transport | jms_pubsub | Sample using Document-Literal Style sample demonstrates use of the Document-Literal style binding over JMS transport using the pub/sub mechanism. | ||
JMS Transport | jms_queue | Sample using Document-Literal Style sample demonstrates use of the Document-Literal style binding over JMS Transport using the queue mechanism. | ||
MTOM MTOM Demo for SWA & XOPmtom | Sample illustrates the use of a SOAP message with an attachment and XML-binary Optimized Packaging. | mtom | ||
MTOSI Alarm Retrieval (SOAP OVER HTTP)mtosi_1.1\alarm_retrieval | Sample demonstrates a simple CXF based client/server Web service implementing the MTOSI alarm retrieval service. | mtosi_1.1\alarm_retrieval | ||
Ruby Script | ruby_spring_support | Sample shows how to create ruby web service implemented with Spring. You'll learn how to write a simple ruby script web service. | ruby_spring_support | |
Sample usingSOAP Headers | SOAP Headers | soap_header | Sample illustrates Apache CXF's support for SOAP headers. | soap_header |
CORBA
...
Examples
Project Example Name | Project Locations | Example Description | Example LocationProject Description |
---|---|---|---|
CORBA Bank | corba\bank | Sample illustrates the use of JAX-WS API's for creating a service that uses the CORBA/IIOP protocol for communication. It also shows throwing exceptions across that connection. | corba\bank |
CORBA Bank with WS-Addressing | corba\bank_ws_addressing | Sample illustrates the use of the JAX-WS APIs to run a simple "Bank" application using CORBA/IIOP instead of SOAP/XML. It also contains standard CORBA client/server applications using pure CORBA code so you can see the JAX-WS client hit a pure CORBA server and a pure CORBA client hit the JAX-WS server. | corba\bank_ws_addressing |
CORBA Hello Worldcorba\hello_world | Sample illustrates the use of the JAX-WS APIs to run a simple "hello world" application using CORBA/IIOP instead of SOAP/XML. It also contains standard CORBA client/server applications using pure CORBA code so you can see the JAX-WS client hit a pure CORBA server and a pure CORBA client hit the JAX-WS server. | corba\hello_world |