Skip to Content
0

How execute the PUT event in a RESTful Web Service that is consumed by HCI

Dec 21, 2016 at 10:47 AM

62

avatar image

Hi Experts.

I need to execute the PUT event from a RESTful Web Service passing the id as part of the URL, for example: http://www.host.com/api/items/1234 1234 is the id of the item that will be updated. I'm using a script to set the headers and using the next statment to set the URL: message.setHeader("CamelHttpUri", "https://www.host.com/api/items/1234"); always got the same error:

LastError = org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://www.host.com/api/items/1234 with statusCode: 501

reading many logs, the error is related to the query option of the channel. could anyone have an idea of how to execute the PUT event? i don't know how to avoid the use of the query option. In others REST clients like SoapUI, all works fine, and not needs additional parameters.

Thanks for all your help.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bruno Vianna Mar 15, 2017 at 01:17 PM
0

Hi Metodio, I'm with the same problem here, did you find out how to solve it?

Thnks

Share
10 |10000 characters needed characters left characters exceeded