Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

REST API - some issues sending/reading messages to/from topic

$
0
0

Hi,

I'm using Postman trying sending/reading messages to/from a Service Bus topic.

When sending a message I get a 201 response (obviously the message was sent successfully); however on the Azure Portal I don't see the message coming in.

This is the request for Sending a message

POST /in/xyz/messages HTTP/1.1
Host: xxx.servicebus.windows.net
Authorization: SharedAccessSignature sr=https%3a%2f%2fxxx.servicebus.windows.net%2fin%2fxyz&sig=<signature>skn=PublisherAccessKey
Content-Type: application/atom+xml;type=entry;charset=utf-8
Cache-Control: no-cache
Postman-Token: 0367c33a-bfdb-87cf-29ba-ef49d2d8eaa4

id=100

I get a 201 but also ERROR: Could not parse the response.

This is the request for Reading messages

DELETE /in/xyz/messages/head HTTP/1.1
Host: xxx.servicebus.windows.net
Authorization: SharedAccessSignature sr=https%3a%2f%2fxxx.servicebus.windows.net%2fin%2fxyz&sig=<signature>se=65023492524&skn=SubscriberAccessKey
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Cache-Control: no-cache
Postman-Token: 3cba05df-9087-059f-0c15-f0924e0ea033

The error message I get here:

<Error><Code>400</Code><Detail>The specified HTTP verb (DELETE) is not valid. TrackingId:e485acb6-fd6b-44a4-a1c3-bebea910b0fe_G43,TimeStamp:4/4/2015 5:58:17 PM</Detail></Error>

Anyone any idea what I'm doing wrong?

Thanks.
Guy


Viewing all articles
Browse latest Browse all 1916

Trending Articles