Questions tagged [cxf-client]
135 questions
10
votes
2 answers
Spring - Retry request if service returns 409 HTTP Code
I have an Spring + CXF application which consumes a Transmission API: Transmission RPC running in another server.
According to Transmission docs, you need to send a token which is generated on the first request. The server then responds with a 409…

David Morabito
- 1,498
- 1
- 12
- 22
6
votes
1 answer
Apache CXF client soap fault handling
I am using apache cxf client 3.2.2 in a standalone java application to make invocations to some soap webservices.
Trying to get the soap fault code and fault string in a one way operation but without success.
I have defined a custom interceptor but…

Carlos
- 1,340
- 1
- 10
- 26
6
votes
1 answer
Cxf client takes too long time when response comes late
I am using cxf library for a web service client.
When the response comes late around 5 seconds, the cxf takes around 20 seconds to return the response. The ws returns a 33912 long response.
The client has no problem with the fast responses…

Salih Erikci
- 5,076
- 12
- 39
- 69
5
votes
1 answer
Generating rest client from WADL URL in JAVA
WADL URL : http://localhost:8080/RestfulSample/Restful?_wadl
I need to generate the rest client using CXF from the above WADL URL.
Questions :
Do we have any eclipse plugin to accomplish it?
or do we have any other tools/way to do it?
I seen many…

sasikals26
- 835
- 2
- 18
- 41
5
votes
0 answers
Apache-cxf client gets SOAPFaultException instead of custom exception
I'm having troubles with handling Exceptions in my apache-cxf client.
I'm expecting an exception that is thrown by the soap call 'Fault_Exception' but I'm always receiving the common SOAPFaultException
Generated classes:
@WebFault(name =…

user4768018
- 131
- 1
- 3
4
votes
1 answer
Common request/response objects between 2 SOAP webservices in Java
In my project we must call 2 contract first SOAP Web Services with identical Request/Response objects.
As the web services were contract first, I created classes using CXF wsdl2java, now I have 2 set of identical classes in 2 packages. Is there a…

Amir Pashazadeh
- 7,170
- 3
- 39
- 69
4
votes
1 answer
Soap request signed by certificate. WS-Security
I received the WSDL which contains the security policy, as for now, judging by the wsdl i found out that it means that i need it to sign with certificate. No token server should be used.
What i did:
I used cxf wsdl2java to create java classes from…

sadxd
- 71
- 1
- 8
4
votes
0 answers
Invoke Secured Webservice with WS Policy using Camel-CXF
We are trying to invoke Secured Webservice using Camel CXf component. WSDL has wsp:Policy defined in it and I am able to successfully invoke service from soapUI by passing username/password but facing lot of problems if i try to invoke service using…

user2997551
- 109
- 1
- 7
4
votes
1 answer
Unmarshalling Error: unexpected element (uri:"", local:"user"). Expected elements are (none)
I have been facing the above mentioned error, when generating soap response. I also want to make fname required and I have tried almost everything like minOccurs=1,nillable:false but no luck.
Here is my requested parameters:-

Sumit Verma
- 91
- 1
- 7
3
votes
1 answer
How to fix a non thread-safe lazy-initializing CXF client factory?
I have an (external) factory class which lazy-initializes a CXF client in a non thread-safe way.
(It is possible that it instantiates the client two or more times if called too quickly.)
The class has a protected method which does the…

w9n7cxx5fM8
- 49
- 8
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…

Anand Subramaniam
- 31
- 3
3
votes
1 answer
CXF interceptors only for client using configuration
I have added interceptor only in cxf_client.xml but same interceptor are invoking for incoming apis as well(i.e cxf_server). below are my changes.
Can some one please tell me why this interceptor are invoking for incoming APIs?
is it because same…

user5417198
- 53
- 1
- 4
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
3 answers
How do you get logging from the CXF Rest Client?
This took me quite a long time to figure out. I'm asking this question so I can answer it for others:
How do you get useful logging info from the CXF Rest Client? EG: The url, params, payload, response, etc.
Note: This question already exists but…

Daniel Kaplan
- 62,768
- 50
- 234
- 356
3
votes
1 answer
web service failing. java.net.SocketTimeoutException: Read timed out - Using Jboss 7.1
I have some issues with the following piece of client code.
private FlightSchedule loadFlightSchedule() throws ServiceException {
if (flightSchedule == null) {
logger.debug("flightSchedule is…

codejava
- 47
- 1
- 1
- 5