Re: Camel CXFRS endpoint unable to produce JSON

2013-08-19 Thread ajaysam
Hi Just wanted to follow up on this thread. After long time i managed to look at this pending issue. You had pointed out that Accept was showing "application xml" - we recreated this problem and this time we are asking for json, log is also showing that and camel with CXFRS configuration is still

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-07 Thread Sergey Beryozkin
I can see the following: "Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" No JSON is requested Cheers, Sergey On 05/07/13 21:45, ajaysam wrote: log file is attached On Fri, Jul 5, 2013 at 12:59 PM, Raul Kripalani [via Camel] < ml-node+s465427n5735205...@n5.nabble.c

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-05 Thread ajaysam
log file is attached On Fri, Jul 5, 2013 at 12:59 PM, Raul Kripalani [via Camel] < ml-node+s465427n5735205...@n5.nabble.com> wrote: > Hi, > > Can you place a log endpoint with the showAll option set to true just > after > this line? > > > > e.g. . > > I want to see exactly what the rou

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-05 Thread Raul Kripalani
Hi, Can you place a log endpoint with the showAll option set to true just after this line? e.g. . I want to see exactly what the route returns to the CXF stack. Thanks, *Raúl Kripalani* Enterprise Architect, Open Source Integration specialist, Program Manager | Apache Camel Committer

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-05 Thread ajaysam
Attached are two projects - both are maven projects One is camel project that makes a call to a service which is another project The servvice that Camel calls is a stubbed version of real service. The url to invoke the camel project is Testing through Curl : C:\curl-7.30.0-ssl-sspi-zlib-static-

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-02 Thread Christian Müller
Sure, this will help to digging into the issue. Best, Christian Sent from a mobile device Am 02.07.2013 20:19 schrieb "ajaysam" : > Can i send you my maven projects ? > > you can take a look at it high level and see if i m really missing > something basic > > > > On Mon, Jul 1, 2013 at 4:00 PM,

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-02 Thread ajaysam
Can i send you my maven projects ? you can take a look at it high level and see if i m really missing something basic On Mon, Jul 1, 2013 at 4:00 PM, Sergey Beryozkin-3 [via Camel] < ml-node+s465427n5735057...@n5.nabble.com> wrote: > This is bizarre...Can you please double check the custom cod

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-01 Thread Sergey Beryozkin
This is bizarre...Can you please double check the custom code you may have and see if "application/xml" is 'hiding somewhere' ? Can you do a sanity check and confirm it is this endpoint which is being invoked after all ? Any chance you can attach a working route (test) to JIRA ? Cheers, Sergey

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-01 Thread ajaysam
application/xml always works.. even if i am saying Produces json i still get output as xml On Mon, Jul 1, 2013 at 12:01 PM, Sergey Beryozkin-3 [via Camel] < ml-node+s465427n5735049...@n5.nabble.com> wrote: > So, if you replace all of @Produces("application/json") with > @Produces("application/

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-01 Thread Sergey Beryozkin
So, if you replace all of @Produces("application/json") with @Produces("application/xml") and do curl -HAccept:application/xml ... then it works ? Sergey On 01/07/13 16:40, ajaysam wrote: I am sending the request through curl - it is setting Accept header as shown below curl -HAccept:appli

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-01 Thread ajaysam
I am sending the request through curl - it is setting Accept header as shown below curl -HAccept:application/json http://pocman2.nsp.stf.bms.com:8080/CXF_REST-0.0.1-SNAPSHOT/webservices/Hello/SilpaY Hello is the path to refer to resource class We are stuck in this project and any help will be a

Re: Camel CXFRS endpoint unable to produce JSON

2013-06-30 Thread Sergey Beryozkin
Hi Christian, Thanks for this tip, FYI, CXF will try to use JSON provider (with the default configuration) if it has not been explicitly configured (example, a namespace map may be not strictly needed, etc). I wonder, if in this specific case, HTTP Accept header is actually set to application/

Re: Camel CXFRS endpoint unable to produce JSON

2013-06-29 Thread Christian Müller
You have to tell CXF to use JSON. We do this with the following configuration: http://www.myCompany.com/product/service/model/1"; value="m"/> You can read more about it here: http://cxf.apache.org/docs/jax-rs-data-bin