Perfect! I didn't put it in the header, I simply used Firefox instead of wget. So it appears wget --post-file does not include application/xml in the default Accept header.
I think we need an example that shows a bean exposed through WS & jaxrs through Spring. There are an awful lot of examples but only one covers Spring (java_first_spring_support). John Baker -- Web SSO IT Infrastructure Deutsche Bank London URL: http://websso.cto.gt.intranet.db.com jpurcell <[EMAIL PROTECTED]> 29/04/2008 15:58 Please respond to [email protected] To [email protected] cc Subject Re: CXF 2.1, Rest and Spring configuration 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. --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
