Lonnie Bowling

Problems with PI Webservices and basicHttpBinding

Discussion created by Lonnie Bowling Champion on Aug 4, 2010
Latest reply on Aug 6, 2010 by spilon

Hi Everyone,

 

I'm trying to get basicHttp binding to work withPI Web services and am getting the following error when opening the PITimeSeries.svc from a browser:

 

 Server Error in '/PIWebServices' Application.

Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http]. 

 

Here is the edited part of the config file:

 


<system.serviceModel>

    <bindings>

      <basicHttpBinding>

        <binding name="basicBindingConfig">

          <security mode="TransportWithMessageCredential">

            <transport clientCredentialType="Windows" />

            <message clientCredentialType="UserName"/>

          </security>

        </binding>

      </basicHttpBinding>

      <wsHttpBinding>

        <binding name="wsBinding" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">

          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />

          <security mode="Message">

            <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />

          </security>

        </binding>

      </wsHttpBinding>

      <mexHttpBinding>

        <binding name="mexBinding" />

      </mexHttpBinding>

    </bindings>

    <services>

      <service behaviorConfiguration="PIDataService.ServiceBehavior" name="PIWebServices.PIDataService.PITimeSeriesSvcImpl">

        <endpoint address="mex" binding="mexHttpBinding" name="mexBasicEndpoint" contract="IMetadataExchange" />

        <endpoint binding="basicHttpBinding" bindingConfiguration="basicBindingConfig" name="BasicEndpoint" bindingNamespace="http://xml.osisoft.com/services/PIDataService" contract="PIWebService.PIDataService.IPITimeSeries">

          <identity>

            <servicePrincipalName value="HOST/ENG-SANDBOX" />

          </identity>

        </endpoint>

      </service>

    </services>

    <behaviors>

      <serviceBehaviors>

        <behavior name="PIDataService.ServiceBehavior">

          <serviceMetadata httpGetEnabled="true" />

          <serviceDebug includeExceptionDetailInFaults="true" />

          <serviceCredentials>

            <windowsAuthentication includeWindowsGroups="true" allowAnonymousLogons="false" />

            <issuedTokenAuthentication allowUntrustedRsaIssuers="true" />

          </serviceCredentials>

          <serviceAuthorization principalPermissionMode="UseWindowsGroups" impersonateCallerForAllOperations="true" />

        </behavior>

      </serviceBehaviors>

    </behaviors>

  </system.serviceModel>

 

 

Everthing works fine with the default wsHttp binding. I need to get the basicHttp binding working so I can use it with Silverlight. I spent alot of time trying to figure this out today but am having no luck. Any help would be appreciated!

 

Thanks,

 

Lonnie

Outcomes