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
2
votes
1 answer

Camel CXF rsClient : Unable read French characters in UTF-8

Here I am calling a REST webservice using CamelCxf rsClient. The webservice returns a JSON response with encoding : ISO-8859-1. And CamelCxf is trying to read it in that encoding which is changing the French characters in json string. I wanted to…
tvshajeer
  • 1,299
  • 2
  • 12
  • 26
2
votes
1 answer

Passing header attribute to WS request - JAX RS

I am trying to connect to a WS that requires me to pass a specific host name during connection. I am trying to achieve this using JAX-WS and Apache CXF but so far I've been unsuccessful. I can access the endpoint using CURL curl -v -H 'Host: myHost'…
Raicky Derwent
  • 384
  • 1
  • 4
  • 14
2
votes
0 answers

CXFNonSpringJaxrsServlet ClassNotFoundException

Ok so I tried to set-up a Jax-rs environment with CXF but unfortanetely I have been getting a very troublesome error that I cannot go around. I am running my application on a Java Web Tomcat 8 Server. My pom.xml file is the following some…
2
votes
0 answers

How to intercept org.apache.cxf.interceptor.Fault

In my beans.xml I have
Dred
  • 1,076
  • 8
  • 24
2
votes
0 answers

Only the content of org.springframework.data.domain.Page is displayed, without metadata

I have created the rest controller using spring-boot and apache cxf-rs, which returns the Page (org.springframework.data.domain.Page) with the entities. My problem is that Page in xml formal returns only Content with entities, without metadata…
E_Lis
  • 21
  • 2
2
votes
1 answer

How to get Cxfrs:server input and output types

I'm trying to build Response according to the output type specified in cxfrs:server service class. @Consumes({MediaType.APPLICATION_JSON}) @Produces({"application/xml"}) How can I get the Consumes type and Produces type using cxf interceptor.
tvshajeer
  • 1,299
  • 2
  • 12
  • 26
2
votes
1 answer

Camel CXF RS server embedded in a WAR

All the examples for running a CXF-RS server in Camel (with Blueprint), look like the following:
kaqqao
  • 12,984
  • 10
  • 64
  • 118
2
votes
1 answer

Apache camel cxfrs—Can't find the request for Observer

I tried to develop a rest service and expose the same via Apache Camel's CXFRS. I followed all the steps given in http://camel.apache.org/cxfrs.html and also referred to many samples given. I already referred to the question Can't find the the…
Guru
  • 75
  • 2
  • 9
2
votes
1 answer

In CXF RS, can I get the resource method in a request filter?

I want to authorize calls made to my rest api differently depending on which method is being called. But the RequestHandler looks like this: public interface RequestHandler { Response handleRequest(Message m, …
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
2
votes
0 answers

fiql syntax for fetching null value data

We are using fiql for data filtering. My requirement is to fetch data where a particular column value is null using fiql tried different ways but not getting the required result. My requirement is to fetch record from a table where a particular…
DnA
  • 727
  • 3
  • 10
  • 28
2
votes
0 answers

How do I fix the "stream is closed" error when using the CXF-RS client?

I am using the CXF-RS rest client to send a binary file over to a server and I'm getting this error: Caused by: java.io.IOException: stream is closed at sun.net.www.http.ChunkedInputStream.ensureOpen(ChunkedInputStream.java:174) at…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
2
votes
0 answers

How do I add a header to a CXF WebClient request?

I want to do the equivalent of this curl command: curl --header "Access-Control-Request-Headers: foo, bar" url The CXF API gives the impression that this is straight forward, but I can't get it to work. Here's my code: List providers =…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
2
votes
1 answer

Camel CXFRS - Empty Attachment

i'm trying to make a RESTful WS to upload a file with CXFRS camel component, i'm trying to retrive the uploaded file via getAttachment method, but it is always empty. This is my code: EndPoint class: ExposedApi.java @Path("/test") public class…
sproing
  • 153
  • 1
  • 2
  • 8
2
votes
1 answer

CXF WebSocket configurtion

I'm trying to push some monitoring message to my client jsf page using websocket. But from past 2days have come close to solve but still unable to push message to jsf page though I sucesseded in creating connection to web socket. Here is my…
Karthik Prasad
  • 9,662
  • 10
  • 64
  • 112
2
votes
0 answers

CXF-Client proxy not using my registered ParamConverterProvider

I have a fully functional JAXRS REST API setup using CXF and Spring. However, I can't seem to instruct my proxied services to use the use my JAXB setup to de-serialise my JODA time parameters. I get the exception message: Parameter Class…
joostschouten
  • 3,863
  • 1
  • 18
  • 31
1 2
3
10 11