Re: [Resteasy-users] Query of RestEasy Media Parsing

2013-01-07 Thread Dieter Cailliau
I use a ClientInterceptor for that (the code also takes care of basic auth, timeouts and ssh-without-hostname-verification). ApacheHttpClient4Executor ex = new ApacheHttpClient4Executor(getBasicAuthClient(LOGIN,PASS, "application/json", null, new SingleClientConnManager(getSSHBypassSch

Re: [Resteasy-users] Query of RestEasy Media Parsing

2013-01-07 Thread kishore panda
Hello, Thank you for the response. Why not just ditch using the proxy? I am new to this. Could you please elaborate or provide any links where I can check this. Or create a new different interface with the specs you want?  The interface must support both XML and JSON. It should depend on the c

Re: [Resteasy-users] Query of RestEasy Media Parsing

2013-01-07 Thread Bill Burke
Why not just ditch using the proxy? Or create a new different interface with the specs you want? Overriding Exxecutor.exeucte() is a hack. On 1/7/2013 4:38 PM, kishore panda wrote: > > Hello, > > Query: How to ensure server sends JSON Media, when server is set with both > Application_XML and A

Re: [Resteasy-users] Query of RestEasy Media Parsing

2013-01-07 Thread kishore panda
Hello, Query: How to ensure server sends JSON Media, when server is set with both Application_XML and Application_JSON Media Types (Produces annotation). I am executing a RESTEasy POC. I updated the server to accept and respond with both XML and JSON Media type.     @POST     @Path("/ge

[Resteasy-users] Query of RestEasy Media Parsing

2013-01-07 Thread kishore panda
Hello, I am executing a RESTEasy POC. I updated the server to accept and respond with both XML and JSON Media type. @POST @Path("/getData/") @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Consumes({MediaType.APPLICATION_XML, MediaType.APPLIC

[Resteasy-users] Query of RestEasy Media Parsing

2013-01-07 Thread kishore panda
Hello, I am executing a RESTEasy POC. I updated the server to accept and respond with both XML and JSON Media type. @POST @Path("/getData/") @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Consumes({MediaType.APPLICATION_XML, MediaType.APPLIC