使用Microsoft Office 2003 Web服务工具包访问安全的WCF服务 [英] Accessing a secured WCF Service with Microsoft Office 2003 Web Services Toolkit

查看:83
本文介绍了使用Microsoft Office 2003 Web服务工具包访问安全的WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个运作良好的WCF服务.我通过一个简单的basicHttpBinding和一个安全的传输方式来授予对它的访问权限:

 <  安全性   模式  ="    > 
            <  运输    ="  基本" > 
          <  /security  >  



现在,我尝试使用Access 2003应用程序访问服务,但是它不起作用. Microsoft Office 2003 Web服务工具包创建代理类,但是当我尝试调用方法时,我始终会超时.

我的第二个问题是,我不知道如何在VB中设置UserNamePasswordValidator的clientCredentials. br/>

 service.ConnectorProperty(" )=  用户"
service.ConnectorProperty(" )= "  pss"
service.ConnectorProperty(" )=& H1
service.ConnectorProperty(" )= >真 span> 


Hi,

I have a well working WCF Services. I grant access to it with a simple basicHttpBinding and a secure transport like this:

<security mode="Transport" >
            <transport clientCredentialType="Basic"/>
          </security>



Now i try to access the Service with an Access 2003 Application but it doesn''t work. The Microsoft Office 2003 Web Services Toolkit creates the proxy classes but when i try to invoke a method i allways become a timeout.

My second Problem is, that i don''t know how to set the clientCredentials for the UserNamePasswordValidator in VB.

解决方案

I have solved the problem with following settings:

service.ConnectorProperty("AuthUser") = "user"
service.ConnectorProperty("AuthPassword") = "pss"
service.ConnectorProperty("WinHTTPAuthScheme") = &H1
service.ConnectorProperty("UseSSL") = True


这篇关于使用Microsoft Office 2003 Web服务工具包访问安全的WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆