Hi
Can you double check that Client instance is actually created by CXF ?
I.e, that no other JAX-RS impl libraries are loaded.
If it is CXF - which CXF version it is ?
Sergey
On 27/09/16 20:55, venkatesham nalla wrote:
Hi,
The following code is throwing exception - MyResourceTest.setUp:83
IllegalArgument Not a valid Client
Client client = ClientBuilder.newClient();
WebTarget target = client.target(URI.create(new URL(base,
"restservices/files").toExternalForm()));
HTTPConduit http =
org.apache.cxf.jaxrs.client.WebClient.getConfig(target).getHttpConduit();
Thanks,
Venkat
________________________________
From: Sergey Beryozkin <[email protected]>
Sent: Tuesday, September 27, 2016 3:24 PM
To: [email protected]
Subject: Re: How to enable/disable transfer-encoding: chunked in jax-rs?
Hi
You can pass WebTarget or InvocationBuilder (they wrap WebClient) to
WebClient.getConfig.
FYI, a different approach was also described:
http://cxf.547215.n5.nabble.com/HttpConduit-for-WebTarget-td5773080.html#a5773086,
Cheers, Sergey
On 27/09/16 15:45, venkatesham nalla wrote:
Hi,
How to convert the Client object created using ClientBuilder.newClient() to
WebClient or org.apache.cxf.jaxrs.client.Client?
thanks,
Venkat
________________________________
From: Sergey Beryozkin <[email protected]>
Sent: Monday, September 26, 2016 9:20 PM
To: [email protected]
Subject: Re: How to enable/disable transfer-encoding: chunked in jax-rs?
Hi
For the client you can do WebClient.getConfig(client),getHttpConduit and
configure it as needed, while on the server you'd likely need to
configure the underlying container
Sergey
On 26/09/16 15:58, venkatesham nalla wrote:
Hi,
How to enable/disable transfer-encoding: chunked in JAX-RS server and client
without using spring xml configuration ?
thanks,
Venkat
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Latest Activity | Talend Community Coders<http://coders.talend.com/>
coders.talend.com
Talend Community Coders. At Talend, we contribute to open source projects
because they challenge us with new ideas and keep us sharp. We also do it
because it's the ...
Latest Activity | Talend Community Coders<http://coders.talend.com/>
Latest Activity | Talend Community Coders<http://coders.talend.com/>
coders.talend.com
Talend Community Coders. At Talend, we contribute to open source projects
because they challenge us with new ideas and keep us sharp. We also do it
because it's the ...
coders.talend.com
Talend Community Coders. At Talend, we contribute to open source projects
because they challenge us with new ideas and keep us sharp. We also do it
because it's the ...