Issue with Azure Service Bus

Dinesh Gudi 21 Reputation points

I am getting a 400 error when trying to send an XML to Queue from Postman. I also tried sending it from the Service Bus Explorer and it works fine.

Below is the response I am getting from Service bus endpoint

My request looks like this -



Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
542 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,391 Reputation points

    @Dinesh Gudi As per the screenshot I can see that you are using the wrong request URI i.e. messages is missing in the URL
    Please use the below request URI to send the message:
    Syntax : http{s}://{serviceNamespace}{queuePath|topicPath}/messages
    ex :

    Further, I can see that you are passing the Content-Type as Application/Xml but it should be application/atom+xml;type=entry;charset=utf-8 as per the document.
    Content-Type: application/atom+xml;type=entry;charset=utf-8

    I have tested at my end and it is working as expected. Please update the URL and Content-Type and I hope it will resolve your issue.
    Feel free to reach out to me if you are still facing the issue.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful