|
Thanks for the reply. I tried switching the enpoint to http.soap in the openPDC.exe.config file but the web service wouldn't start. I then tried just http:// and it started. The ?wsdl url now has the following endpoint:
<wsdl:service name="MetadataService">
<wsdl:port name="BasicHttpBinding_IMetadataService" binding="tns:BasicHttpBinding_IMetadataService">
<soap:address location="http://localhost:6151/historian" />
</wsdl:port>
</wsdl:service>
and when I refresh the service reference I get this in my app.config file:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IMetadataService" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:6151/historian" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IMetadataService" contract="MetadataServiceReference.IMetadataService"
name="BasicHttpBinding_IMetadataService" />
</client>
</system.serviceModel>
however I still get an exception when I call ReadAllMetadataAsJson(): [System.ServiceModel.ServerTooBusyException] = {"The HTTP service located at
http://localhost:6151/historian is unavailable. This could be because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct
and try accessing the...
with an inner exception of: InnerException = {"The remote server returned an error: (503) Server Unavailable."}. Is there documentation or a sample project illustrating how to implement it as a REST data service?
|