Tag Archives: CXF

CXF SOAP Client Example to Use Plain Text Password Authentication

CXF SOAP client can be configured to support various web authentication strategies via its out WSS4JOutInterceptor. For example it can be configured to support plain text username/password or digest based authentication. This post will show the plain text case.  First … Continue reading

Posted in Java | Tagged , , , , | Leave a comment

CXF REST Client Parses Badgefish JSON Data

Badgerfish is one of the JSON conventions supported by CXF. To use it with CXF RS Client, you need to add both cxf-rt-rs-extension-providers and cxf-rt-rs-client to your dependencies. Then you can create a JSON provider and pass it to the … Continue reading

Posted in Java | Tagged , , , | Leave a comment

How to Serialize Map in Apache CXF

When developing CXF based web services, did you ever get “org.apache.cxf.interceptor.Fault: Marshalling Error: java.util.Map is not known to this context” error message? This is caused by JAXB, the default databinding used by CXF, unable to marshal/unmarshal Java Maps. The common … Continue reading

Posted in Java, Programming | Tagged , , , , , , , | 1 Comment