Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4327

FIWARE.Question.Tech.Data.OrionContextBroker.GlobalContextBrokerFederation

    Details

      Description

      Created question in FIWARE Q/A platform on 12-08-2014 at 20:08
      Please, ANSWER this question AT http://stackoverflow.com/questions/25271504/global-context-broker-federation

      Question:
      Global Context Broker Federation

      Description:
      Until now, I've been working with a context Broker Instance in stand-alone mode created in Fi-Lab/Cloud and using psb-orion-image. Now I would like to federate an instance of that CB with http//orion.lab.fi-ware.org. I use XML forms to create, update... and the name of the instance to federate is "UPCT:TEMPERATURE:SENSOR" wich sensor type is "UPCT:SENSOR".

      So, connecting by SSH I send the next form:

      (curl localhost:1026/NGSI10/subscribeContext s -S --header 'Content-Type: application/xml' -d @ | xmllint --format -) <<EOF
      <?xml version="1.0"?>
      <subscribeContextRequest>
      <entityIdList>
      <entityId type="UPCT:SENSOR" isPattern="false">
      <id>UPCT:TEMPERATURE:SENSOR</id>
      </entityId>
      </entityIdList>
      <reference>http://orion.lab.fi-ware.eu:1026/ngsi10/notifyContext&lt;/reference&gt;
      <duration>P1M</duration>
      <notifyConditions>
      <notifyCondition>
      <type>ONCHANGE</type>
      <condValueList>
      <condValue>temperature</condValue>
      </condValueList>
      </notifyCondition>
      </notifyConditions>
      <throttling>PT5S</throttling>
      </subscribeContextRequest>
      EOF

      And I get a right reply, with and subscription ID. However, if I update de contextValue of my instance and try to send a query to http://orion.lab.fi.ware.eu:1026 I receive an error:

      -:1: parser error : Start tag expected, '<' not found
      Auth-token not found in request header
      ^

      I think I should get the same value that I update to my Instance as indicate in

      https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_User_and_Programmers_Guide#Context_Broker_Federation

      I need to know what's wrong and how could I do federete to the global CB.

      Thank you

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: