2016-10-05 11:02 GMT+02:00 Vjacheslav V. Borisov <[email protected]>:
> Hi!
>
> There is "How to use PATCH method in CXF" thread
> http://stackoverflow.com/questions/32067687/how-to-use-patch-method-in-cxf
>
> Where author is using
>
> use.async.http.conduit to allow proxy client generated to work.
>
> To do this he recommends to write interceptor:
>
>
> if ( message.get(Message.HTTP_REQUEST_METHOD).equals("PATCH") {
> message.put("use.async.http.conduit", true);}
>
>
> Does this is preferred workaround to make PATCH method work in client?
Well , I don't know if it's the best way, but itis what I use:
1) add cxf-rt-transports-http-hc libreries to classpath
2) call
client.path("/app/{phone}", phone).invoke("PATCH", phoneType);
where client is a WebClient instance
(It's a synchronous call)
You can have a look to
http://cxf.apache.org/docs/asynchronous-client-http-transport.html
Regards