You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Apache CXF Sample projects

JAX-WS Samples

Project Locations

Project Description

java_first_jaxws

Java First using JAX-WS APIs and JSR-181 sample illustrates how to develop a service using the "code first" approach with the JAX-WS APIs.

java_first_jaxws_factory_bean

Java First JAX-WS APIs and JSR-181 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 POJO 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.

java_first_spring_support

Spring HTTP 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.

jaxws_async

JAX-WS Asynchronous sample using Document/Literal Style sample illustrates the use of the JAX-WS asynchronous invocation model.

jaxws_dispatch_provider

JAX-WS Dispatch/Provider sample demonstrates the use of JAX-WS Dispatch and Provider interface.

jax_ws_handlers

JAX-WS Handler sample shows how JAX-WS handlers are used. The server uses a SOAP protocol handler which logs incoming and outgoing messages to the console.

WSDL-first Samples

wsdl_first

WSDL First shows how to build and call a web service using a given WSDL (also called Contract First).

wsdl_first_dynamic_client

Hello World using Document/Literal Style and a Dynamic Client sample illustrates the use of the CXF dynamic client against a standalone server using SOAP 1.1 over HTTP.

wsdl_first_https

Hello World using HTTPS communications sample takes the hello world sample a step further by doing the communication using HTTPS.

wsdl_first_pure_xml

Hello World using BARE Style in XML Binding (pure XML over HTTP) 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_rpclit

Hello World using RPC-Literal Style sample demonstrates the use of the hello world sample with RPC-Literal style binding.

wsdl_first_soap12

Hello World SOAP12 using Document/Literal Style sample shows the use of Apache CXF's SOAP 1.2 capabilities.

wsdl_first_xml_wrapper

Hello World using WRAPPED Style in XML Binding (pure XML over HTTP) 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.

JAX-RS Samples

Project Locations

Project Description

restful_dispatch

RESTful Hello World sample shows REST based Web Services using the JAX-WS Provider/Dispatch.

restful_http_binding

RESTful HTTP Binding 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

Project Locations

Project Description

js_browser_client_java_first

Generated JavaScript using JAX-WS APIs and JSR-181 sample shows the generation of JavaScript client code from a JAX-WS server.

js_browser_client_simple

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_client

Hello World Client sample using JavaScript client sample demonstrates the use of (non-browser) JavaScript to call a CXF server.

js_provider

Hello World sample using JavaScript and E4X Implementations sample demonstrates the use of the JavaScript and E4X dynamic languages to implement JAX-WS Providers.

WS-* Samples

Project Locations

Project Description

ws_addressing

WS-Addressing sample shows how WS-Addressing support in Apache CXF may be enabled.

ws_policy

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_rm

WS-RM sample shows how WS-ReliableMessaging support in Apache CXF may be enabled.

ws_security\interopfest

This CXF sample is being used to help implement WS-SecurityPolicy, WS-SecureConversation, and WS-Trust within CXF.

ws_security_sign_enc

WS-Security (Signature and Encryption) 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) 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_policy

WS-Security (UsernameToken and Timestamp) 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_sign

WS-Security (Signature and UsernameToken) 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.

Data Bindings Samples

Project Locations

Project Description

aegis

Aegis sample illustrates how to develop a service that is "code first", POJO-based. This sample uses the Aegis data binding.

aegis_standalone

Aegis Standalone sample shows you how you can use Aegis with no web service at all as a mapping between XML and Java.

xmlbeans

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.

JBI Samples

Project Locations

Project Description

integration\JBI\external_provider_external_consumer

JBI EPEC 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).

integration\JBI\external_provider_internal_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).

integration\JBI\handlers

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).

integration\JBI\internal_provider_external_consumer

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).

integration\JBI\internal_provider_internal_consumer

JBI IPTC 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

Project Locations

Project Description

integration\jca\inbound Inbound

Connection CXF J2EE sample shows how to expose an Enterprise Java Bean over SOAP/HTTP using CXF.

integration\jca\inbound-mdb*

CXF Inbound Resource Adapter Message Driven Bean samples; three 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\outbound

Outbound Connection CXF J2EE 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.wsa61

CXF Outbound Resource Adapter IBM WebSphere 6.1 sample demonstrates the new CXF outbound resource adapter.

Miscellaneous Samples

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.

configuration_interceptor

Stream GZIP Interceptor Example shows how to develop an interceptor and add the interceptor into the interceptor chain through configuration.

groovy_spring_support

Groovy with 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.

in_jvm_transport

Co-located using Document/Literal Style sample. Note: Project’s README.txt does not provide a sample description.

jms_pubsub

JMS Transport sample using Document-Literal Style sample demonstrates use of the Document-Literal style binding over JMS transport using the pub/sub mechanism.

jms_queue

JMS Transport sample using Document-Literal Style sample demonstrates use of the Document-Literal style binding over JMS Transport using the queue mechanism.

mtom

MTOM for SWA & XOP sample illustrates the use of a SOAP message with an attachment and XML-binary Optimized Packaging.

mtosi_1.1\alarm_retrieval

MTOSI Alarm Retrieval (SOAP OVER HTTP) sample demonstrates a simple CXF based client/server Web service implementing the MTOSI alarm retrieval service.

ruby_spring_support

Ruby Script sample shows how to create ruby web service implemented with Spring. You'll learn how to write a simple ruby script web service.

soap_header

SOAP Headers sample illustrates Apache CXF's support for SOAP headers.

CORBA Samples

Project Locations

Project 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_ws_addressing

CORBA Bank with 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\hello_world

CORBA 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.

  • No labels