yuzhangqi的个人空间

思考使人睿智,学习使人进步。

  • 博客访问: 465821
  • 博文数量: 104
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-10 18:14
个人简介

技术日新月异,成功贵在坚持。我是一名系统架构设计师。

ITPUB论坛APP

ITPUB论坛APP



APP发帖 享双倍积分

文章分类

全部博文(104)

文章存档

2014年(5)

2011年(6)

2010年(51)

2009年(20)

2008年(22)

我的朋友
微信关注

IT168企业级官微



微信号:IT168qiye



系统架构师大会



微信号:SACC2013

订阅
热词专题

分类: 网络与安全

Error Message

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

Incorrect Config

<behaviors>

<serviceBehaviors>

<behavior name="DataDistribution.ServiceImplementation.DataDistributionService_Behavior">

<serviceDebug includeExceptionDetailInFaults="true" />

<serviceMetadata httpGetEnabled="true" />

<serviceCredentials>

<userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="DataDistribution.ServiceImplementation.UserValidator, DataDistribution.ServiceImplementation" />

serviceCredentials>

behavior>

serviceBehaviors>

behaviors>

.

<services>

<service behaviorConfiguration="DataDistribution.ServiceImplementation.DataDistributionService_Behavior" name="DataDistribution.ServiceImplementation.DataDistributionService">

<endpoint address="" binding="wsHttpBinding" bindingConfiguration="FileTransferTransportSecurity" name="HttpsEndpoint" bindingNamespace="urn:Ais.Sentry.Services.ServiceContracts" contract="DataDistribution.ServiceContracts.IDataDistributionService" />

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

service>

services>

Correct Config

<behaviors>

<serviceBehaviors>

<behavior name="DataDistribution.ServiceImplementation.DataDistributionService_Behavior">

<serviceDebug includeExceptionDetailInFaults="true" />

<serviceMetadata httpsGetEnabled="true" />

<serviceCredentials>

<userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="DataDistribution.ServiceImplementation.UserValidator, DataDistribution.ServiceImplementation" />

serviceCredentials>

behavior>

serviceBehaviors>

behaviors>

.

<services>

<service behaviorConfiguration="DataDistribution.ServiceImplementation.DataDistributionService_Behavior" name="DataDistribution.ServiceImplementation.DataDistributionService">

<endpoint address="" binding="wsHttpBinding" bindingConfiguration="FileTransferTransportSecurity" name="HttpsEndpoint" bindingNamespace="urn:Ais.Sentry.Services.ServiceContracts" contract="DataDistribution.ServiceContracts.IDataDistributionService" />

<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />

service>

services>

Error Message

The provided URI scheme 'http' is invalid; expected 'https'.

Incorrect Config

<services>

<service behaviorConfiguration="DataDistribution.ServiceImplementation.DataDistributionService_Behavior" name="DataDistribution.ServiceImplementation.DataDistributionService">

<endpoint address="" binding="basicHttpBinding" bindingConfiguration="FileTransferBinding" name="DefaultEndpoint" bindingNamespace="urn:Ais.Sentry.Services.ServiceContracts" contract="DataDistribution.ServiceContracts.IDataDistributionService"/>

<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />

service>

services>

<client>

<endpoint address="http://yuzhangqi01/DDS/DataDistribution.svc"

binding="basicHttpBinding" bindingConfiguration="DefaultEndpoint" contract="DataDistributionProxy.DataDistributionService" name="DefaultEndpoint" />

client>

Correct Config

<services>

<service behaviorConfiguration="DataDistribution.ServiceImplementation.DataDistributionService_Behavior" name="DataDistribution.ServiceImplementation.DataDistributionService">

<endpoint address="" binding="basicHttpBinding" bindingConfiguration="FileTransferBinding" name="DefaultEndpoint" bindingNamespace="urn:Ais.Sentry.Services.ServiceContracts" contract="DataDistribution.ServiceContracts.IDataDistributionService"/>

<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />

service>

services>

<client>

<endpoint address="https://yuzhangqi01/DDS/DataDistribution.svc"

binding="basicHttpBinding" bindingConfiguration="DefaultEndpoint" contract="DataDistributionProxy.DataDistributionService" name="DefaultEndpoint" />

client>

Error Message

An error occurred while making the HTTP request to https://localhost/DDS/DataDistribution.svc. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.

Incorrect Config

Correct Config

Error Message

System.ServiceModel.ProtocolException: Content Type application/soap+xml; charset=utf-8 was not supported by service https://localhost/DDS/DataDistribution.svc. The client and service bindings may be mismatched.

Incorrect Config

<services>

<service behaviorConfiguration="DataDistribution.ServiceImplementation.DataDistributionService_Behavior" name="DataDistribution.ServiceImplementation.DataDistributionService">

<endpoint address="" binding="basicHttpBinding" bindingConfiguration="FileTransferBinding" name="DefaultEndpoint" bindingNamespace="urn:Ais.Sentry.Services.ServiceContracts" contract="DataDistribution.ServiceContracts.IDataDistributionService"/>

<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />

service>

services>

<client>

<endpoint address="https://localhost/DDS/DataDistribution.svc"

binding="wsHttpBinding" bindingConfiguration="HttpsEndpoint" contract="DataDistributionProxy.DataDistributionService" name="HttpsEndpoint" />

client>

Correct Config

<services>

<service behaviorConfiguration="DataDistribution.ServiceImplementation.DataDistributionService_Behavior" name="DataDistribution.ServiceImplementation.DataDistributionService">

<endpoint address="" binding="wsHttpBinding" bindingConfiguration="FileTransferTransportSecurity" name="HttpsEndpoint" bindingNamespace="urn:Ais.Sentry.Services.ServiceContracts" contract="DataDistribution.ServiceContracts.IDataDistributionService" />

<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />

service>

services>

<client>

<endpoint address="https://localhost/DDS/DataDistribution.svc"

binding="wsHttpBinding" bindingConfiguration="HttpsEndpoint" contract="DataDistributionProxy.DataDistributionService" name="HttpsEndpoint" />

client>

[@more@]
阅读(2715) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册