我有一个443端口下的notificationService,但是当我尝试将它添加到Windows Phone 7服务引用时,我不能,因此可以链接,我的服务部署在443端口。无法正确添加服务参考
将HTTP请求发送到http://localhost:443/NotificationService.svc时发生错误。这可能是由于在HTTPS情况下服务器证书未使用HTTP.SYS正确配置。这也可能是由于客户端和服务器之间的安全绑定不匹配造成的。 底层连接已关闭:发送时发生意外错误。 握手失败,原因是意外的数据包格式。 如果服务在当前解决方案中定义,请尝试构建解决方案并再次添加服务引用。
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="True" multipleSiteBindingsEnabled="false"/>
<services>
<service name="Project.Services.NotificationService"
behaviorConfiguration="notificationservicebehavior">
<endpoint name="basicHttpBinding"
contract="Project.Services.INotificationService"
address="http://127.0.0.1:443/NotificationService.svc"
binding="basicHttpBinding"
/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="notificationservicebehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
您需要提供更多信息。 “我不能”没有告诉我们很多。什么步骤失败,错误是什么(如果有的话),到目前为止您尝试过哪些方法以使其发挥作用? – 2011-05-20 14:52:35