Wang,

Publish endpoint (2) accept the HTTP POST requests, so the POST request 
contains the payload to publish to the Topic. Subscribe endpoint (3) accepts 
the HTTP GET requests and return the messages as response, so it don’t have any 
payload. Refer the Documentation for more details.

https://onap.readthedocs.io/en/latest/submodules/dmaap/messagerouter/messageservice.git/docs/offeredapis/offeredapis.html



Thanks,
Sunil

From: [email protected] <[email protected]> On Behalf Of 
[email protected]
Sent: Thursday, September 13, 2018 2:29 AM
To: UNNAVA, SUNIL <[email protected]>
Cc: [email protected]; KOYA, RAMPRASAD <[email protected]>
Subject: Re: [onap-discuss] How to use Dmaap to subscribe notification


Hi Sunil,

    Thank you very much! Let me see if I understand the publish/subscribe 
mechanism:



    1. First, the publisher create one topic like below:

          POST http(s)://{HOST:PORT}/topics/create        Content-Type: 
application/json

            {

               “topicName”:”com.abc.dmaap.mr.topicname”,

               ”description”:”This is a SAPTopic “,

               “partitionCount”:”1”,

               ”replicationCount”:”3”,

               ”transactionEnabled”:”true”

            }



     2. Second, the publisher publish this topic out like below:

         POST http(s)://{HOST:PORT}/events/com.abc.dmaap.mr.topicname     
Content-Type: application/json         (Does this step have a HTTP body?)



     3.Last, the subscriber subscribe this topic like below:

        GET 
http(s)://{HOST:PORT}}/events/{topicname}/{consumegroup}/{consumerid}/{timeout=x}
      Content-Type: application/json

                     (Also, does this step have a HTTP body? And the 
{consumegroup} should be de defined somewhere before these three steps?)



     It seems that this mechanism only allows the publisher to give the 
subscriber a notification event without transmitting data. For example, the 
publisher

tell the subscriber I get a bread, but not tell its brand, price, taste etc. 
Plz correct me if my understanding is wrong, Sunil.





Thanks,

Wang






原始邮件
发件人:UNNAVA,SUNIL <[email protected]<mailto:[email protected]>>
收件人:[email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>王森枭10200860;KOYA,
 RAMPRASAD <[email protected]<mailto:[email protected]>>
日 期 :2018年09月12日 22:01
主 题 :Re: [onap-discuss] How to use Dmaap to subscribe notification
Hi Wang,

Subscribers can subscribe to a topic by hitting the Message Router endpoint . 
Please refer the readthedocs for more details.

GET 
http(s)://{HOST:PORT}}/events/{topicname}/{consumegroup}/{consumerid}/{timeout=x}

https://onap.readthedocs.io/en/beijing/submodules/dmaap/messagerouter/messageservice.git/docs/offeredapis/offeredapis.html#subscribers<https://urldefense.proofpoint.com/v2/url?u=https-3A__onap.readthedocs.io_en_beijing_submodules_dmaap_messagerouter_messageservice.git_docs_offeredapis_offeredapis.html-23subscribers&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=t27CRRmn7U12dnOvcSPfcQ&m=vrX0Ohyu_QzF1R3oosNbIduxHAZQep8Jrir7FPFRcbg&s=khNoNlHSlvqOFv2meeH35miEK75wStXuEGAQY-SnKg4&e=>


Thanks,
Sunil

From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On Behalf Of 
[email protected]<mailto:[email protected]>
Sent: Tuesday, September 11, 2018 11:07 PM
To: KOYA, RAMPRASAD <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: [onap-discuss] How to use Dmaap to subscribe notification


Hi, Ram

     Sorry to bother you. I just want to consult you how to use Dmaap to 
subscribe notifications? for example the SDNC want to subscribe notification 
which the ESR published. Do you have a demo?



thanks











王森枭 Wang  Senxiao



软件开发工程师 Software Development  Engineer
软件平台南京开发一部/有线研究院/有线产品经营部 SDN Nanjing Development Dept. Ⅰ/Wireline  Product R&D 
Institute/Wireline Product Operation Division


[cid:[email protected]]

[cid:[email protected]]
武汉市东湖高新技术开发区华师园路6号中兴通讯

ZTE Corporation, 6 Huashiyuan Rd,

Donghu Hi-Tech Administrative area,Wuhan, P.R.China,430223

T: +86 027 51811060 M:+86  15988865324
E: [email protected]<mailto:[email protected]>
www.zte.com.cn<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.zte.com.cn_&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=t27CRRmn7U12dnOvcSPfcQ&m=EZjQlhY5KxoKoTCN43azhqtiX3GCjdubDXqY9Q3ykq0&s=mOKD_hk7sQaraiWUZFAfv6U7KmoIz0H4Eo0dpIqLE2o&e=>






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12426): https://lists.onap.org/g/onap-discuss/message/12426
Mute This Topic: https://lists.onap.org/mt/25520872/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to