Dequeue (REST queue)
De Wiki1000
(Différences entre les versions)
(Page créée avec « Cette action consomme un message d'une file d'attente <pre> http://.../servicename/server/rpc.l1000/rest/queue.dequeue?queuename=nom_de_file </pre> {|class="wikitable" |... ») |
|||
Ligne 21 : | Ligne 21 : | ||
Exemple : | Exemple : | ||
− | + | <pre> | |
+ | Request: | ||
+ | POST http://hostname/servicename/server/rpc.l1000/rest/queue.dequeue?queuename=DBQUEUE1 | ||
+ | content:application/x-www-form-encoded | ||
+ | Authorization:Bearer 160000768..... | ||
+ | Accept:application/json | ||
+ | |||
+ | Response: | ||
+ | {"response":{"result":0,"msg":{"queueName":"DBQUEUE1","uniqueID":"000000000000000000CA00013E12000F","contentLength":17119,"MessageClassName":"TStaticRegClass","MessageDatetime":"2015-02-26T15:13:53+01:00","MessageUser":"webuser","MessageOID":"000000000000000000CA00013E12000F","MessageID":549,"Topic":"topic1","State":1,"MessageRefOID":"","OriginalUniqueID":"","idOTP":202,"ObjectClassLabel":"Classe message stocké d'une file d'attente","ObjectClassName":"TDBMSTOREDQUEUEMESSAGE","oid":"000000000000000000CA00013E12000F","oiddbmQueue":"","oidqueueRef":"","oidShare":"","QueueName":"topic1","queueState":1,"queueTopic":"topic1","ShareInfo":"","ShareInstanceInfo":"","ShareInstanceLevel":2,"ShareInstanceRequestedLevel":-1,"ShareLevel":0,"UniqueID":549,"UpdDate":"2015-02-26T15:13:53+01:00","UpdStamp":"0000F2B100000028","UpdUser":"webuser","UserCaption":"000000000000000000CA00013E12000F","param1":1,"param2":"toto","content":"ICgtMSk....................NCg=="}}} | ||
+ | <pre> | ||
Voir aussi : | Voir aussi : |
Version du 26 février 2015 à 16:46
Cette action consomme un message d'une file d'attente
http://.../servicename/server/rpc.l1000/rest/queue.dequeue?queuename=nom_de_file
Paramètre | type | Valeur |
---|---|---|
queuename | string | Nom de la file d'attente |
Remarques
- Tous les paramètres du message sont retournés
Exemple :
Request: POST http://hostname/servicename/server/rpc.l1000/rest/queue.dequeue?queuename=DBQUEUE1 content:application/x-www-form-encoded Authorization:Bearer 160000768..... Accept:application/json Response: {"response":{"result":0,"msg":{"queueName":"DBQUEUE1","uniqueID":"000000000000000000CA00013E12000F","contentLength":17119,"MessageClassName":"TStaticRegClass","MessageDatetime":"2015-02-26T15:13:53+01:00","MessageUser":"webuser","MessageOID":"000000000000000000CA00013E12000F","MessageID":549,"Topic":"topic1","State":1,"MessageRefOID":"","OriginalUniqueID":"","idOTP":202,"ObjectClassLabel":"Classe message stocké d'une file d'attente","ObjectClassName":"TDBMSTOREDQUEUEMESSAGE","oid":"000000000000000000CA00013E12000F","oiddbmQueue":"","oidqueueRef":"","oidShare":"","QueueName":"topic1","queueState":1,"queueTopic":"topic1","ShareInfo":"","ShareInstanceInfo":"","ShareInstanceLevel":2,"ShareInstanceRequestedLevel":-1,"ShareLevel":0,"UniqueID":549,"UpdDate":"2015-02-26T15:13:53+01:00","UpdStamp":"0000F2B100000028","UpdUser":"webuser","UserCaption":"000000000000000000CA00013E12000F","param1":1,"param2":"toto","content":"ICgtMSk....................NCg=="}}} <pre> Voir aussi : * [[inqueue (REST queue)|inqueue]] {{footer|Service_RPC_file_d'attente_(server)}} [[Category:Actions REST]]