[rabbitmq-discuss] RABBIT MANAGEMENT HTTP API CANNOT SUPPORT "Create Queue and Exchange"?
tim at rabbitmq.com
Wed Oct 24 09:46:36 BST 2012
>> httpput.setURI(new URI("http://192.168.2.129:55672/api/exchanges/%2f/my-new-exchange"));
the resource path should be /api/exchanges/<vhost>/<exchange-id> if I'm not mistaken.
On 24 Oct 2012, at 09:42, Tim Watson wrote:
> On 23 Oct 2012, at 19:13, johnson wrote:
>> Hi all,
>> I wrote a sample code to use Rabbitmq management HTTP API. For "Create a new vhost", it works fine.
>> But if I want to create a new Exchange or Queue using the same code, it always returns NoHTTPResponseException. It seems that once I setEntity for httpput, the exception occurs.
> Is there anything in the rabbit logs to indicate that an error occurred? Also, can you do this using curl on the command line? If that works, then you might need to use something like wireshark to look at what your http client is putting on the wire.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
More information about the rabbitmq-discuss