Tag Archives: cxf

CXF – Validating JAX-RS WADL files in unit tests

What’s the best way to stop developers breaking the WADLs generated by CXF for Java-first JAX-RS services? Make breaking the WADLs break the build of course. Continue reading

JBoss Fuse – Deploying JAX-RS services with Fuse 6.2 and Java 8

Depending on the parts of CXF your JAX-RS services utilise, you might have a little OSGi-wrangling on your hands if you want to deploy them to JBoss Fuse 6.2 on Java 1.8
Continue reading

CXF – Missing WADL method parameter element types with JSON JAX-RS services

If you’re using JSON to exchange data with your CXF JAX-RS service clients you might find your out-of-the-box WADL file a little light on detail. Continue reading

CXF – Using interceptors to provide simple, property-based response filters

An example of building a CXF interceptor to provide a lightweight, property driven mechanism for web service consumers to filter response sets to suit their needs. Continue reading

JAXWS – Handling multi-dimensional arrays of interfaces

If you’ve exposed your value objects via interfaces in your Java service classes JAXB is unlikely to play nicely with them. Here we look at using adapters to help it map between interfaces and implementations and in particular getting this to work with multi-dimensional arrays. Continue reading

CXF – Using Interceptors to process SOAP headers in a JAX-WS web service

JAX-WS Handlers are perfectly adequate for implementing simple, cross-service features of a Java web-service. For more complex scenarios though, there’s a good chance your web-service framework might have more to offer you. Here we look at using a CXF Interceptor rather than a JAX-WS Handler for header processing Continue reading

CXF – Using Handlers to process SOAP headers in a JAX-WS web service

When using SOAP headers to specify the non-functional, generic aspects of a JAX-WS web-service, handler classes can offer a more effective solution than header annotated method parameters while still retaining a high degree of portability across implementations. Here we look at a simple example of using a JAX-WS handler with Apache CXF. Continue reading

CXF – Adding security by IP whitelisting

Creating a simple Interceptor class to enforce IP address based security for an Apache CXF web-service Continue reading

CXF – Java first web services with existing JAXB classes

If you’re exposing existing Java code containing JAXB generated value objects as a Java First JAX-WS web-service with Apache CXF you might run into an unexpected problem. Continue reading