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

[fiware-stackoverflow] IoT Broker seems to disagree with IoT Discovery

    Details

      Description

      Created question in FIWARE Q/A platform on 25-05-2016 at 20:05
      Please, ANSWER this question AT https://stackoverflow.com/questions/37445486/iot-broker-seems-to-disagree-with-iot-discovery

      Question:
      IoT Broker seems to disagree with IoT Discovery

      Description:
      I have the next configuration:

      IoTBroker(v.5.2.3) <-----> IotDicovery(v.4.3)

      when I issue a

      GET **/ngsi10/contextEntities/EntityName**

      message to the IoTBroker it automatically generates a

      **/ngsi9/discoverContext/Availability**

      query to the IoTDiscovery. The IoTDiscovery then answers positively with a

      200 OK HTTP message

      with the information about the EntityName required.

      The problem is that when the IoTBroker makes the final response, it responds with a 404 NOT FOUND HTTP Message.

      This is the POST HTTP message being automatically generated by the IoTBroker to the the IoTDiscovery:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <discoverContextAvailabilityRequest>
      <entityIdList>
      <entityId isPattern="false">
      <id>Room</id>
      </entityId>
      </entityIdList>
      <attributeList/>
      <restriction>
      <attributeExpression>
      </attributeExpression>
      <scope>
      <operationScope>
      <scopeType>
      IncludeAssociations
      </scopeType>
      <scopeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xsi:type="xs:string">
      SOURCES
      </scopeValue>
      </operationScope>
      </scope>
      </restriction>
      </discoverContextAvailabilityRequest>

      and this is the response from the IoTDiscovery to the IoTBroker, where apparently everything is OK:

      <?xml version="1.0" encoding="UTF-8"?><discoverContextAvailabilityResponse>
      <contextRegistrationResponseList>
      <contextRegistrationResponse>
      <contextRegistration>
      <entityIdList>
      <entityId type="Room" isPattern="false">
      <id>ConferenceRoom</id>
      </entityId>
      </entityIdList>
      <contextRegistrationAttributeList>
      <contextRegistrationAttribute>
      <name>temperature</name>
      <type>degree</type>
      <isDomain>false</isDomain>
      <metadata>
      <contextMetadata>
      <name>unit</name>
      <type>string</type>
      <value/>
      </contextMetadata>
      </metadata>
      </contextRegistrationAttribute>
      </contextRegistrationAttributeList>
      <providingApplication>http://192.168.100.1:70/tempApplication
      ...</providingApplication>
      </contextRegistration>
      </contextRegistrationResponse>
      </contextRegistrationResponseList>
      <errorCode>
      <code>200</code>
      <reasonPhrase>OK</reasonPhrase>
      <details xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Result</details>
      </errorCode>
      </discoverContextAvailabilityResponse>

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:14|CREATED monitor | # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:14|CREATED monitor | # answers= 2, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:09|UPDATED status: transition Answer| # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:09|UPDATED status: transition Answer| # answers= 2, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:09|UPDATED status: transition Finish| # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:09|UPDATED status: transition Finish| # answers= 2, accepted answer= True

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: