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

openPDC Webservice Not Returning Data

Apr 23, 2013 at 1:55 AM
Hello,

I am trying to extract some data from Timeseries Webservice.I can see these timeseries points with their values when i type
http://localhost:6152/historian/timeseriesdata/read/historic/4123,12/2013-04-22%2019:30:12/2013-04-22%2019:30:32/xml in the browser.
When i try to access these values by calling the method ReadSelectHistoricTimeSeriesDataAsXml
I get an exception"There was no endpoint listening at http://localhost:6152/historian that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."
with internal error {"The remote server returned an error: (404) Not Found."}

Here is the piece of code used for the webservice.


__Uri serviceUri;
        Uri.TryCreate("http://localhost:6152/historian", UriKind.Absolute, out serviceUri);

        EndpointAddress endpoint = new EndpointAddress(serviceUri);
        BasicHttpBinding binding = new BasicHttpBinding();__
__
        openPDCTSWebService.TimeSeriesDataServiceClient tst = new openPDCTSWebService.TimeSeriesDataServiceClient(binding, endpoint);
        openPDCWebserviceTest.openPDCTSWebService.TimeSeriesData tsd= tst.ReadSelectHistoricTimeSeriesDataAsXml("4312", "2013-04-22 19:30:12", "2013-04-22 19:38:12");
__

openPDC.exe.config file ppaTimeSeriesDataService Endpoint is http.rest://localhost:6152/historian


Is there something I am doing wrong?
regards
vijay
Apr 27, 2013 at 5:45 PM
You might check the code archives for the openPDC Manager which used to graph data using the web services before the subscription services were deployed. All old versions of code can be found in the "Releases" folder when downloading the source code...

Alternately a "subscription" to the openPDC for data will both support real-time and historical streaming, with historical streaming speed being dynamically controlled - this may be the "simplest" way to get data out of the system.

Thanks!
Ritchie
Apr 29, 2013 at 9:51 PM
Edited Apr 29, 2013 at 9:51 PM
Thanks Ritchie !