Questions tagged [cxf-client]
135 questions
1
vote
1 answer
how to use connection pooling in cxf jaxrs webclient
I am building a REST service which internally calls other services and we use org.apache.cxf.jaxrs.client.WebClient to do this.
I want to use HTTP connection pooling to improve the performance but the documentation isn't very clear about how to do…

Kislay Verma
- 59
- 1
- 10
1
vote
1 answer
Custom CXF Conduit
I want to custom a CXF Conduit in my application, but i don't know how to implement it and add it in client code.
I want to implement it as custom destination that i have done as follows:
Step1: i create a MyDestinationFactory class
class…

HNT
- 147
- 1
- 10
1
vote
1 answer
how to add UsernameTokenInterceptor cxf interceptor
I'm looking for a way to add security header to my soap request.
I've found the interceptor, which will solve my problem: UsernameTokenInterceptor
Could someone suggest me how to create with my arguments (password, username) this bean and correctly…

Rostislav V
- 1,706
- 1
- 19
- 31
1
vote
1 answer
Error : Username Token Created policy not enforced
I am working on CXF based services and clients.
And implemented Username Password Security on the server side using Policy file defined in wsdl. Here is the configuration :

RSH
- 53
- 1
- 5
1
vote
1 answer
Handling dynamic query parameter in CXF restful webservice
I want to handle dynamic query parameter in CXF RESTful service.
My concern here is from the service end i will not be knowing the number of parameters/key names that comes with the request. Could you please let me know how we can handle this…

sasikals26
- 835
- 2
- 18
- 41
1
vote
0 answers
Calling CXF client from jsp for https is getting org.apache.cxf.service.factory.ServiceConstructionException
I am using JBoss 5.1 GA server and configured SSL in server.xml like below. Calling my CXF client from jsp is getting the below error:
org.apache.cxf.service.factory.ServiceConstructionException
Please help me to resolve this error. One more thing…

B Ravi
- 11
- 1
1
vote
2 answers
Adding security headers to request in CXF
I created a client based on a wsdl file.
I am using the following code to call a Web Service:
PrivateService ser = new PrivateService();
PrivatePortType port = ser.getPrivateSOAPPort();
BindingProvider bindingProvider =…

dushkin
- 1,939
- 3
- 37
- 82
1
vote
0 answers
How to send a Message object type via CXF Jax-ws
i want to send an org.apache.cxf.message.Message object via CXF Jax-ws. For example:
A service declared:
@WebService
public interface HelloWorld {
void send(Message msg);
}
Implementation of this service:
public class HelloWorldImpl implements…

HNT
- 147
- 1
- 10
1
vote
1 answer
Issue while accessing post method in CXF rest service
i am trying to create a simple Restful web service and client using CXF 3.1.2 as below,
Service:
package com.rs.sample;
import javax.jws.WebService;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
…

sasikals26
- 835
- 2
- 18
- 41
1
vote
1 answer
CxfClientGrailsPlugin - Web service client abcClient cannot be created before setting the clientInterface=[:] and serviceEndpointAddress
I am using cxf-client grails plugin for SOAP request:
I have added these client configuration into Config:
cxf {
client {
paymentRequestClient {
wsdl = "https://sandbox.demo.com/payments.wsdl"
namespace = "com.demo.soap"
…

sufyan.shoaib
- 1,117
- 9
- 19
1
vote
0 answers
CXF client don't work with ArrayOfType Axis service
I have this bean:
public class ListFrameTO implements Serializable
{
private FrameTO[] frameTOs=null;
public ListFrameTO() {
}
public FrameTO[] getFrameTOs() {
return frameTOs;
}
public void setFrameTOs(FrameTO[]…

user3782406
- 11
- 4
1
vote
1 answer
CXF NoSuchMethodError ClassHelper.getRealClass
Simple project, below is my gradle dependency. This is the only CXF dependency that I declare. Also are my gradle dependencies that materialize as the result of that declared dependency. When I run my code I get the exception below. I cannot figure…

bitsofinfo
- 994
- 3
- 16
- 34
1
vote
1 answer
Implement CXF client to read LIST from a REST server
I am trying to implement a rest web service using Apache CXF and I want to return list of object as a response from server. So i have used generic entity to wrap my list on a server and everything is fine when I enter path from browser. It prints…

rahul
- 383
- 1
- 8
- 20
1
vote
1 answer
Empty SOAPAction Apache cxf
I'm creating a soap client using apache cxf.I used a network hook capture the data and find out in Http header SOAPAction is empty
SOAPAction : ""
Below is the code
URL wsdlurl=SOAPWebServiceTransport.class.getClassLoader().
…

Sarfaraz Khan
- 2,166
- 2
- 14
- 29
1
vote
0 answers
cxf client from WSDL with empty targetNamespace
I am using cxf client to consume a web-service that has a targetNamespace="" in the WSDL's XSD definition.
The CXF client seems to append a namespace of ns2 to the each request as shown below.

Vladimir
- 1,120
- 2
- 11
- 18