Hi
On Fri, Nov 5, 2010 at 10:02 AM, fristaila <[email protected]> wrote:
>
> I've walked through the restful_http_binding CXF example.
> On the client side there is an example on how to fire the GET on the server
> side.
> WHat can I do to invoke the methods for the other HTTP methods?
> Do I have to rely upon an HTTP client to do it (for example Apache HTTP
> client) or there is some more friendly CXF API to do it?
>
>
CXF (REST) HTTP Binding is obsolete so consider using JAX-RS unless you
really need to use this legacy binding.
On the client you may want to try CXF JAXRS WebClient
cheers, Sergey
> Thank you.
>
> @Put
> @HttpResource(location = "/customers/{id}")
> void updateCustomer(@WebParam(name = "Customer")
> Customer c);
>
> @Post
> @HttpResource(location = "/customers")
> long addCustomer(@WebParam(name = "Customer")
> Customer c);
>
> @Delete
> @HttpResource(location = "/customers/{id}")
> void deleteCustomer(@WebParam(name = "id")
> long id) throws CustomerNotFoundFault;
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/HTTP-POST-in-restful-http-binding-on-the-client-side-tp3251572p3251572.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>