Dear Marinos, Yes, you are right. It is not an Orion, and I tried and got the same error, suggesting that IoTDiscovery GE only supports XML format. I forward your request to the developers to check it. Best, Sandor 2015.05.22. 14:03 keltezéssel, marinos kardaris írta: > Dear Sandor, > > My Orion is V0.20.0 > but I use the IoTDiscovery GE V4.1.1 from surrey to make the > registration.I tried on this url > You can try also > > http://130.206.119.116:8080/ngsi9/registerContext > > best regards > Marinos > > 2015-05-22 14:58 GMT+03:00 Sándor Laki <laki.sandor at wigner.mta.hu > <mailto:laki.sandor at wigner.mta.hu>>: > > Dear Marinos, > > Could you please check the version number of your Orion instance? > E.g. > curl <cbhost>:1026/version > > Thanks, > Sandor > > > 2015.05.22. 13:43 keltezéssel, marinos kardaris írta: >> Dear Sandor, >> >> Thank you for your immediate answer. >> I have already put these headers .Iit works correctry only when I >> use application/xml and fails when I use application/ json >> I have test it on different installations on FI-LAB and on our >> laboratory. >> I received always the same error response. >> >> Once more thanks a lot >> Marinos >> >> 2015-05-22 14:36 GMT+03:00 Sándor Laki <laki.sandor at wigner.mta.hu >> <mailto:laki.sandor at wigner.mta.hu>>: >> >> Dear Marinos, >> >> For me it seems that you do not specified the content type in >> the http header of your post request. The default content >> type is XML in Orion, so please add the following headers to >> your request: >> Content-type: application/json >> Accept: application/json >> >> Please let me know if it solved the problem or if you have >> any further difficulties! >> >> Best, >> Sandor >> >> >> 2015.05.22. 13:13 keltezéssel, mk írta: >>> Dear Sir or Madam, >>> >>> I tried to use IoTDiscovery with an example including in the >>> IoT Guide manual >>> and ai received always the same error. Do you know the >>> reason. Is there any bug. >>> Thank you in advance. >>> >>> Marinos Kardaris >>> { >>> "contextRegistrations": [ >>> { >>> "entities": [ >>> { >>> "type": "Room", >>> "isPattern": "false", >>> "id": "Room1" >>> }, >>> { >>> "type": "Room", >>> "isPattern": "false", >>> "id": "Room2" >>> } >>> ], >>> "attributes": [ >>> { >>> "name": "temperature", >>> "type": "float", >>> "isDomain": "false" >>> }, >>> { >>> "name": "pressure", >>> "type": "integer", >>> "isDomain": "false" >>> } >>> ], >>> "providingApplication": "http://mysensors.com/Rooms" >>> } >>> ], >>> "duration": "P1M" >>> } >>> >>> I received the following error message >>> <registerContextResponse><errorCode><code>400</code><reasonPhrase>Bad >>> Request</reasonPhrase><details >>> xmlns:xs="http://www.w3.org/2001/XMLSchema" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:type="xs:string">Error in XML >>> structure</details></errorCode></registerContextResponse> >>> >>> >>> -- >>> Kardaris Marinos >>> Systems Engineer - Aviation Expert >>> >>> *Future Intelligence Ltd.* >>> Technological & Scientific Park of Attica "Lefkippos" >>> NCSR Demokritos >>> Branch: Scientific & Technological Park of Epirus >>> University of Ioannina >>> P: (+30) 2130417996 M: (+30) >>> F: (+30) 2130021245 >>> mkardariss at f-in.gr <mailto:kanastasopoulos at f-in.gr> >>> http://f-in.gr <http://f-in.gr/> >>> >>> >>> _______________________________________________ >>> Fiware-lab-help mailing list >>> Fiware-lab-help at lists.fi-ware.org <mailto:Fiware-lab-help at lists.fi-ware.org> >>> https://lists.fi-ware.org/listinfo/fiware-lab-help >> >> >> -- >> Sándor Laki >> EU FP7 FI-PPP XIFI project, >> Wigner Research Centre for Physics, >> Hungarian Academy of Sciences >> Konkoly Thege Miklós út 29-33. >> H-1121, Budapest, Hungary >> Cell:+36 70 374 2646 <tel:%2B36%2070%20374%202646> >> Skype: sandor.laki >> >> XIFI:https://fi-xifi.eu/home.html >> FI-PPP:http://www.fi-ppp.eu/ >> >> > > > -- > Sándor Laki > EU FP7 FI-PPP XIFI project, > Wigner Research Centre for Physics, > Hungarian Academy of Sciences > Konkoly Thege Miklós út 29-33. > H-1121, Budapest, Hungary > Cell:+36 70 374 2646 <tel:%2B36%2070%20374%202646> > Skype: sandor.laki > > XIFI:https://fi-xifi.eu/home.html > FI-PPP:http://www.fi-ppp.eu/ > > -- Sándor Laki EU FP7 FI-PPP XIFI project, Wigner Research Centre for Physics, Hungarian Academy of Sciences Konkoly Thege Miklós út 29-33. H-1121, Budapest, Hungary Cell: +36 70 374 2646 Skype: sandor.laki XIFI: https://fi-xifi.eu/home.html FI-PPP: http://www.fi-ppp.eu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20150522/75d3b448/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy