@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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content