Can you add this to your request header?
Accept: application/xml
John-M Baker wrote:
>
> Excellent! Sorry, I should have spotted that.
>
> As a matter of interest, when I run the standalone server client,
> responses are in this format:
>
> {"applicationConfiguration":{"id":"moo","name":"John's application"}}
>
> But I was expecting XML responses. The server is being created like this:
>
> JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
> sf.setResourceClasses(ApplicationConfigurationService.class);
> sf.setResourceProvider(ApplicationConfigurationService.class,
> new SingletonResourceProvider(new
> ApplicationConfigurationServiceImpl()));
> sf.setAddress("http://localhost:9000/");
>
> Server svr = sf.create();
>
> Is this correct?
>
>
> John Baker
> --
> Web SSO
> IT Infrastructure
> Deutsche Bank London
>
>
-----
Joshua Purcell
--
View this message in context:
http://www.nabble.com/CXF-2.1%2C-Rest-and-Spring-configuration-tp16938704p16962492.html
Sent from the cxf-user mailing list archive at Nabble.com.