You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@wink.apache.org by Hasini Gunasinghe <ha...@wso2.com> on 2012/03/18 19:50:46 UTC

How to invoke custom HTTP methods from Wink client

Hi all,

I need to invoke a custom HTTP method (PATCH) defined in JAX-RS based REST
resource.
Can you please let me know how to send request to this custom HTTP method
from wink client side?

I used 'invoke' method in org.apache.wink.client.Resource which allows to
pass the http method as a parameter, but it gave the
error: java.net.ProtocolException: Invalid HTTP method: PATCH

Appreciate any insight on how to achieve the above requirement.

Thanks,
Hasini.