@FastInfoset annotation on a web service does not work in JBoss WS CXF

Solution Verified - Updated -

Issue

  • We are using EAP 5 with CXF installed. We have a web service which is also annotated with @org.jboss.ws.annotation.FastInfoset:
@WebService
@FastInfoset
public class MyWebServiceImpl implements MyWebService {
  ...
}
  • However, the annotation @FastInfoset seems to be ignored. Even when the client requests a Fast Infoset message, the reply is still received in XML format.
  • Running the same example works fine on EAP 5 without CXF installed, where we can see binary data exchanged.
  • How should I do in order for Fast Infoset to work with CXF?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x
  • JBoss WS CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.