cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Martelli <fabio.marte...@tirasa.net>
Subject Send a PATCH request
Date Tue, 25 Jun 2013 15:46:19 GMT
Hi All,
I'm facing with the WebClient in order to send a PATCH request to an 
OData service.
I tried with the following statement

final Response res = client.invoke("PATCH", obj);

but the following exception has been thrown

javax.ws.rs.client.ClientException: javax.ws.rs.client.ClientException: 
org.apache.cxf.interceptor.Fault: Could not send Message.
     at 
java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:428)
     at 
org.apache.cxf.transport.http.URLConnectionHTTPConduit.setupConnection(URLConnectionHTTPConduit.java:119)
     at 
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:467)
     at 
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
     at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
     at 
org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:607)
     at 
org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1017)
     at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:855)
     at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:829)
     at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:294)
     .....

Is there someone that can help me to achieve my target?

Thank you in advance.

Best regards,
F.

-- 
Fabio Martelli
Tel +393204726071

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net


Mime
View raw message