vb.net - VB .NET 上的 Salesforce Soap API:属性不能多次应用
问题描述
我正在使用 Visual Studio 2019 制作 VB .NET 来制作适用于 Windows 的 WPF 应用程序。我正在尝试使用 Salesforce SOAP api 从中获取数据。在解决方案资源管理器中,我右键单击我的项目 -> 添加 -> 服务参考 -> 高级 -> 添加 Web 参考。我输入了从 Salesforce 下载的企业 WSDL 文件的链接。在我的项目中,我有一个简单的测试按钮设置,运行它来尝试登录:
Dim SFService = New SFAPI.SforceService
Dim loginResult = New SFAPI.LoginResult
loginResult = SFService.login(userID, userPass)
我的问题是我收到一些错误,指出自动生成的References.vb有错误,它们如下:
Error BC30663 Attribute 'GeneratedCodeAttribute' cannot be applied multiple times.
Error BC30663 Attribute 'SerializableAttribute' cannot be applied multiple times.
Error BC30663 Attribute 'DebuggerStepThroughAttribute' cannot be applied multiple times.
Error BC30663 Attribute 'DesignerCategoryAttribute' cannot be applied multiple times.
Error BC30663 Attribute 'XmlTypeAttribute' cannot be applied multiple times.
Warning Custom tool warning: Schema could not be validated. Class generation may fail or may produce incorrect results
Warning Custom tool warning: Schema validation error: Schema item 'simpleType' named 'FaultCode' from namespace 'urn:fault.enterprise.soap.sforce.com' is invalid. The Enumeration constraining facet is invalid - 'fns' is an undeclared prefix.
Warning Custom tool warning: Schema validation error: Schema item 'simpleType' named 'FaultCode' from namespace 'urn:fault.enterprise.soap.sforce.com' is invalid. The Enumeration constraining facet is invalid - 'fns' is an undeclared prefix.
任何帮助将不胜感激。谢谢!!
解决方案
推荐阅读
- docker - 配置文件的变量如何被 docker-compose ENV 替换?
- reactjs - 在 POST 或 DELETE 到数据库之后,如何让 React 从 API 重新获取我的数据?
- linux - ldd 命令如何知道加载了哪个虚拟地址共享库?
- css - CSS 将 url() 用于在其他地方导入文件的资产
- linux - 从动态子目录获取 SOURCES
- python - Jupyter notebook 内核错误:PyInit_win32api
- angular - Angular RxJs 如何等待最终确定 observable?
- python - 如何从 QListWidget 中的可见项目创建列表
- reactjs - 使用material-ui在同一行上使用2个Typography的后续行
- javascript - 用 JS 和负数值变量范围为文本着色