Hi Benson
On 10/11/14 16:32, Benson Margulies wrote:
I answered my own question and added it to the relevant cwiki page:
https://cwiki.apache.org/confluence/display/CXF20DOC/Asynchronous+Client+HTTP+Transport
You have to set a property to force use in the sync case.
But you can have PATCH in either the async or sync mode, right ?
Cheers. Sergey
On Mon, Nov 10, 2014 at 8:26 AM, Benson Margulies <[email protected]> wrote:
I need to invoke a 'PATCH' method. So, I added
cxf-rt-transports-http-hc to my dependencies, but it didn't get used.
Do I have to make a call to ask for it?
Caused by: java.net.ProtocolException: Invalid HTTP method: PATCH
at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:428)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestMethod(HttpsURLConnectionImpl.java:374)
at
org.apache.cxf.transport.http.URLConnectionHTTPConduit.setupConnection(URLConnectionHTTPConduit.java:125)
at
org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit.setupConnection(AsyncHTTPConduit.java:180)
at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:483)