Exportera (0) Skriv ut
Visa allt
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

Read and Delete Message from a Queue (Destructive Read)

Updated: February 5, 2014

Reads and deletes a message from a queue as an atomic operation. This operation should be used when a best-effort guarantee is sufficient for an application; that is, using this operation it is possible for messages to be lost if processing fails.

 

Method Request URI HTTP Version

DELETE

https://serviceNamespace. Servicebus.Windows.net/{queue-path}/messages/head?timeout={seconds}

Note that the timeout value cannot be greater than 55 seconds.

HTTP/1.1

URI Parameters

None.

Request Headers

The following table describes required and optional request headers.

 

Request Header Description

Authorization

Specifies a WRAPv0.9.7.2 token containing a SimpleWebToken acquired from ACS. Set to WRAP access_token=”{swt}”.

Request Body

None.

The response includes an HTTP status code and a set of response headers.

Response Codes

 

Code Description

201

Message successfully retrieved and deleted.

204

No messages available within the specified timeout period.

401

Authorization failure.

410

Specified subscription does not exist.

500

Internal error.

For information about status codes, see Status and Error Codes.

Response Headers

None.

Response Body

The message body of the retrieved message.

Gruppinnehåll

Lägg till
Visa:
© 2014 Microsoft