Re: Why is the default 'accept' for WebClient text/xml

2011-12-05 Thread Sergey Beryozkin
On 29/11/11 10:13, Sergey Beryozkin wrote: Hi On 29/11/11 01:19, douglassparker wrote: If a server method is annotated with @Produces( {MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML} ) and the client does not provide an Accept Header, my understanding is that the response MIME type shoul

Re: Why is the default 'accept' for WebClient text/xml

2011-11-29 Thread Sergey Beryozkin
ing Accept type, if a client does not mind then given that the server says it can serve either JSON or XML, then it means both formats are perfectly fine in case of a missing Accept Sergey -- View this message in context: http://cxf.547215.n5.nabble.com/Why-is-the-default-accept-for-Web

Re: Why is the default 'accept' for WebClient text/xml

2011-11-28 Thread douglassparker
like this.) But it doesn't. It defaults to XML. Isn't this a violation of the spec? -- View this message in context: http://cxf.547215.n5.nabble.com/Why-is-the-default-accept-for-WebClient-text-xml-tp5013707p5030783.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Why is the default 'accept' for WebClient text/xml

2011-11-23 Thread Sergey Beryozkin
Hi, On 23/11/11 03:10, Benson Margulies wrote: On Tue, Nov 22, 2011 at 10:50 AM, Sergey Beryozkin wrote: Hi Benson On 22/11/11 14:40, Benson Margulies wrote: Does the standard demand that the default setting of accept for WebClient be text/xml? This seems completely arbitrary to me. Why not

Re: Why is the default 'accept' for WebClient text/xml

2011-11-22 Thread Benson Margulies
On Tue, Nov 22, 2011 at 10:50 AM, Sergey Beryozkin wrote: > Hi Benson > > On 22/11/11 14:40, Benson Margulies wrote: >> >> Does the standard demand that the default setting of accept for >> WebClient be text/xml? This seems completely arbitrary to me. Why not >> */*? > > I though it would more lik

Re: Why is the default 'accept' for WebClient text/xml

2011-11-22 Thread Sergey Beryozkin
Hi Benson On 22/11/11 14:40, Benson Margulies wrote: Does the standard demand that the default setting of accept for WebClient be text/xml? This seems completely arbitrary to me. Why not */*? I though it would more likely lead to some unexpected responses, say if you have the server code like

Why is the default 'accept' for WebClient text/xml

2011-11-22 Thread Benson Margulies
Does the standard demand that the default setting of accept for WebClient be text/xml? This seems completely arbitrary to me. Why not */*?