Questions tagged [cxfrs]

CXFRS is an Apache Camel component that provides integration with Apache CXF for connecting to JAX-RS services hosted in CXF.

CXFRS is an Apache Camel component that provides integration with Apache CXF for connecting to JAX-RS services hosted in CXF.

Reference http://camel.apache.org/cxfrs.html

162 questions
3
votes
1 answer

Using Jackson to parse multipart/form-data or application/json

I am using CXF with JacksonJsonProvider for my REST Services. I have a test method as follows @POST @Path("/book/{id}") @Consumes({"application/json, multipart/form-data, application/x-www-urlencoded"}) @Produces({"application/json"}) public boolean…
andthereitgoes
  • 263
  • 1
  • 6
  • 15
3
votes
1 answer

Why do I get a NullpointerException when invoking the CXF-RS endpoint of a Camel route?

My app is an java webapp (WAR) that uses Apache Camel and (among others) CXF-RS and its corresponding Camel component as an implementation of JAX-RS to provide ReSTful services to the outside world. When invoking one of the endpoints with an HTTP…
Boris Terzic
  • 10,858
  • 8
  • 45
  • 59
3
votes
0 answers

Getting java.io.EOFException: Response contained no data when invoking a Rest API from Weblogic using CXF

When i am invoking a rest API using JAXRS i am receiving an EOFException. When i run the same as an standalone Java Application. It is working fine and i am getting the response. But the same when i execute in Weblogic 10.3 I am receiving the…
3
votes
1 answer

Camel cxfrs RESTful client / ProducerTemplate ConnectionTimeout

I am trying to set the 'connectionTimeout' for a Camel CXF-RS component here which produces a RESTful requests on a 3rd party service. The default 30000 miliseconds is to long. Exchange exchange = template.send("cxfrs://" + url, new Processor() { …
ldantes
  • 31
  • 2
3
votes
1 answer

How would I write an automated check that every parameter has a specific annotation?

I'm writing a Rest API and my automated tests are calling the class directly without deploying the to the server. As an example, I am testing this method: @GET @Path("/{referenceId}") @Produces("application/json") public String…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
3
votes
1 answer

Does the CXF Rest Client use connection pooling?

When I google, I see evidence that the CXF Rest Client uses connection pooling by default, but I'm not sure how to prove that. My sources are very old and I can't tell if it applies to cxfrs or just the web services. I can't tell if it's using…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
3
votes
1 answer

Annotation inheritance for JAX-RS not working

rest-server.xml:
vivek
  • 4,599
  • 3
  • 25
  • 37
3
votes
3 answers

JSON String to Object Mapping

I am having an JSON Response and what I need is to Map the corresponding JSON String to the particular Response class.Is there any tools or framework to do the same. Response class is: import javax.xml.bind.annotation.XmlAccessType; import…
Prabhath kesav
  • 428
  • 3
  • 6
  • 21
3
votes
2 answers

Camel JAX-RS and Cross Domain Request

I'd like to be able to do HTTP requests on my localhost Camel instance (just for development purpose, I know this is bad practice). For now, I'm stuck with : Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin. I've search…
Marc Dez
  • 33
  • 1
  • 4
3
votes
2 answers

CXF RS and JAX-WS encoded content unreadable

My Issue is 2-fold and it has to do with the encoding. I have a REST web application deployed on JBoss 7.1.1. This has adapters to an external web service for which I have created stubs with CXF java2wsdl from the provided WSDLs. During the…
3
votes
2 answers

Return XML Response in REST Service

I am writing a RESTful web service where in I want to return a XML containing some resultset. I have used XSTREAM and parsed the object into XML string. Since I need to return this string, I need to know how to pass it back to the calling client.…
Priyank
  • 14,231
  • 18
  • 78
  • 107
3
votes
1 answer

Apache Camel and CXF: Mutlitple cxf:rsServer tags .. is this possible?

I have been making restful webservices with cxf and camel, i came accross a strange issue i dont know if this is a normal camel behaviour or what. I have multiple classes exposed as restful services and mapped to different paths. First i had only…
Sikorski
  • 2,653
  • 3
  • 25
  • 46
3
votes
0 answers

Passing custom object via context in JAX-RS CXF

I have an InInterceptor that gets some information from the HTTPHeaders and creates a custom object public void handleMessage(Message message) throws Fault { final HttpServletRequest request = (HttpServletRequest) message …
user325643
  • 353
  • 1
  • 8
  • 20
2
votes
1 answer

Camel Request/Reply Correlation

I have a CXFRS endpoint, where a request such as "GET /files/x" should return file "x" from a particular directory and then delete it. The files are output from another process and then quickly consumed via this route. Thus, it would be acceptable…
Jared O'Connor
  • 473
  • 3
  • 10
2
votes
1 answer

Apache CXFRS and CAMEL configuration

i want to consume the REST result by hitting a REST web Service available at http://someotherhost site. i have written a proxy client for it I want to hit the above REST service using apache CXFRS client and the write the result to a file. for…
Santosh Joshi
  • 3,290
  • 5
  • 36
  • 49
1
2
3
10 11