This project has moved and is read-only. For the latest updates, please go here.

Web Services: WaterML 2 GetValues method has error


When I use the WateML2 GetValues() method and I specify the startDate and endDate, the WaterML 2 document has an error. It doesn't contain any data after the xml declaration.

For example see the url:


xenomorph1030 wrote Apr 2, 2015 at 2:38 PM

I dug into the code and it looks like it is expecting the inputted value to be a datetime, not just a date. If the start/end date is not supplied, it defaults to the database which is a datetime. I took your URL and tried the following:

That seems to work, though I think that should happen programmatically. Honestly, the code needs to be cleaned up (application/helpers/hydroservices_helper.php).