On Mon, Nov 10, 2014 at 11:35 AM, Sergey Beryozkin <[email protected]> wrote: > 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
Yes. So, if you want to do it in sync, you have to set that property which uses the 'async' transport in the sync case. That's what I tried to write up after I saw it work. >> >> >> 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) > >
