使用Microsoft Office 2003 Web服务工具包访问安全的WCF服务 [英] Accessing a secured WCF Service with Microsoft Office 2003 Web Services Toolkit
问题描述
我有一个运作良好的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屋!