Robot Web Services
3HAC050973-001 Revision:L, Application Manual - Robot Web Services
Subscribe DIPC Queue without reading message

Subscribe on a single DIPC Queue

The events will not contain the message with this subscription.

URL

/subscription

Method

POST

URL Params

None

Data Params

  • resources = An identifier Required
  • <identifier> = The subscription resource URI (The URI here is: '/rw/dipc/{queue-name};nomessage') Required
  • <identifier>-p = The priority associated with the subscription resource Required

Success Response

CREATED(201)

see HTTP Status codes

Example Response

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Event</title>
<base href="http://localhost/"/>
</head>
<body>
<div class="state">
<a href="subscription/9" rel="group"></a>
<ul>
<li class="dipc-msg-ev" title="msg">
<a href="/rw/dipc/test1;nomessage" rel="self" title="/rw/dipc/test1;nomessage"></a>
<span class="dipc-slotid">191</span>
</li>
</ul>
</div>
</body>
</html>

Resources

  • dipc-msg-ev Message in queue

Error Response

BAD REQUEST(400)

HTTP Errors, see HTTP Status codes

Robot controller errors, see Robot controller return codes

Sample Call

Subscribe on queue

only low priority subscription(-p=0) and medium priority subscription(-p=1) are allowed on this resource

curl --digest -u "Default User":robotics -d "resources=1&1=/rw/dipc/testq;nomessage&1-p=0" -X POST "http://localhost/subscription"

curl --digest -u "Default User":robotics -d "resources=1&1=/rw/dipc/testq;nomessage&1-p=1" -X POST "http://localhost/subscription"

        Notes
        -----

        Not supported in bootserver mode