dracoblue.net

HttpBindingInfoFactoryBean for CXF Apache

Today I was checking the

JSON-Support page for the Webservice Framework CXF.

While the webservice engine works great, I was not able to enable json-support, because the class HttpBindingInfoFactoryBean gave me a NoDefFoundError.

sf.setBindingFactory(new HttpBindingInfoFactoryBean());

It seems like the

documentation is just out of date.

The proper code (like taken from the mailinglist mail)

sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);

No everything works fine. Also the ?wsdl is still available, useful for fetching information about all available functions/methods.

In cxf, java by
@ 15 Aug 2009, Comments at Reddit & Hackernews

Give something back

Were my blog posts useful to you? If you want to give back, support one of these charities, too!

Report hate in social media Campact e.V. With our technology and your help, we protect the oceans from plastic waste. Gesellschaft fur Freiheitsrechte e. V. The civil eye in the mediterranean

Recent Dev-Articles

Read recently

Recent Files

About