cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpurcell <joshua.purc...@gmail.com>
Subject Re: CXF 2.1, Rest and Spring configuration
Date Tue, 29 Apr 2008 14:58:09 GMT

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.


Mime
View raw message