Integrating Web Service with SensorMap
-
Wednesday, July 09, 2008 1:26 PM
Hi,
We are trying to implement our own Data Hub. We have deployed a web service at http://www.ecssensors.org/SensorMap/Service.asmx. We have also registered a sensor at Southampton, Hampshire UK. This sensor has the webServiceUrl pointing to the above service. The sensor appears on the sensor map (in gray color) but it doesn't display the data (its a temperature sensor). We have tested our web service and it is configured correctly and giving the proper output to a test application. It seems to me as if there is something we have missed. Any Idea what might have gone wrong?
Kind Regards,
Muddasser Alam
P.S. I have already registered my account for sensorMap under the email ID muddasseralam@yahoo.com. We are also running another temperature sensor using the default data hub (Microsoft) and this sensor is working fine.
All Replies
-
Monday, July 21, 2008 6:21 PM
Hi Muddasser,
For sensors on your own gateway, please use http://www.ecssensors.org/SensorMap/Service.asmx instead of www.ecssensors.org/SensorMap/Service.asmx as the web service URL of your sensors. I have fixed that for your sensor.
You should see the sensor using the link, but you still can’t see the data. The reason is the mismatch of namespaces. Please use [WebService(Namespace = "http://tempuri.org/")] to define your namespace as http://tempuri.org/ rather than http://ecssensors.org/, which should fix the problem I believe.
Liqian