问题描述
问题
背景:
- 我发现了有关如何利用UDC文件和UDC文件创建的资源(如下)。在过去的十年里,我在Google上四处搜寻,但没有多少人这样做。
- 我要使用的Web服务是Workday,它提供xml / xsd / wsdl / simplexml / csv / RSS / gdata / json服务。我已经确认该Web服务可以正常使用,并且已在其他进程(Python,Excel PowerQuery等)中使用。
- 我是操作XML的新手。
- 对于这个问题,我只想了解如何使UDC文件发挥作用,以便在MSAccess内部建立此连接。关于使用VBA调用Web服务,使用VBA调用Shell(某些外部脚本),使用excel提取Web服务/导入Web服务等的问题,请没有答案。
- 我尝试了各种UCD连接类型配置,包括XML / Web服务。 XML发布在下面。
找到的资源:
- (使用连接文件)https://support.microsoft.com/en-us/office/link-to-a-data-service-5ce2738f-bf36-4490-a015-d1745d102bb8#:~:text=Link%20to%20an%20existing%20Data%20Service%20connection&text=your%20Access%20version%3A-,If%20you're%20using%20the%20latest%20version%20of%20the%20Microsoft,From%20Online%20Services%20%3E%20Data%20Services。
- (MS UDC架构)https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ms772017(v=office.14)#required-properties-by-connection-type
我的尝试:“ UDC.xml”
<udc:DataSource MajorVersion="2" MinorVersion="0" xmlns:udc="http://schemas.microsoft.com/office/infopath/2006/udc">
<udc:Type MajorVersion="2" MinorVersion="0" Type="XmlQuery"/>
<udc:ConnectionInfo Purpose="ReadOnly">
<udc:SelectCommand>
<udc:WebUrl>https:\\my.workday.url-RAAS</udc:WebUrl>
</udc:SelectCommand>
<udc:Authentication>
<udc:UseExplicit CredentialType="Basic">
<udc:UserId>myID</udc:UserId>
<udc:Password>myPW</udc:Password>
</udc:UseExplicit>
</udc:Authentication>
</udc:ConnectionInfo>
</udc:DataSource>
收到的错误: Access Errors
请求
- 查看我的代码并提供建议以使其正常工作。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)