This project has moved. For the latest updates, please go here.

openPDC Webservice Not Returning Data

Apr 23, 2013 at 12:55 AM

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

Is there something I am doing wrong?
Apr 27, 2013 at 4: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.

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