如何让 Eclipse 忽略 WSDL 文件中的错误?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21774310/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:31:27  来源:igfitidea点击:

How do I get Eclipse to ignore errors in WSDL file?

eclipsewsdl

提问by Anders Johansen

EDIT: To be clear, I want to get rid of the big red X on my project, not just filter the errors from the "Problems" list.

编辑:明确地说,我想摆脱项目中的大红色 X,而不仅仅是从“问题”列表中过滤错误。

I get a bunch of these errors. How do I make Eclipse ignore them? I don?t have the option of fixing the actual problem :(

我收到了一堆这样的错误。如何让 Eclipse 忽略它们?我没有解决实际问题的选项:(

src-resolve.4.2: Error resolving component 'ser:char'. It was detected that 'ser:char' is in namespace 'http://schemas.microsoft.com/2003/10/Serialization/', but components from this namespace are not referenceable from schema document 'file:///Users/itunesuser/git/online-service-wizard/suppression-extension/src/main/resources/com/satorisoftware/ws/infuse/multiservice/multiservice.wsdl'. If this is the incorrect namespace, perhaps the prefix of 'ser:char' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:///Users/itunesuser/git/online-service-wizard/suppression-extension/src/main/resources/com/satorisoftware/ws/infuse/multiservice/multiservice.wsdl'. multiservice.wsdl /Scrubbr-suppression-extension/src/main/resources/com/satorisoftware/ws/infuse/multiservice line 623 WSDL Problem

src-resolve.4.2:解析组件“ser:char”时出错。检测到“ser:char”在命名空间“ http://schemas.microsoft.com/2003/10/Serialization/”中',但是不能从架构文档 'file:///Users/itunesuser/git/online-service-wizard/suppression-extension/src/main/resources/com/satorisoftware/ws/infuse/multiservice 引用来自这个命名空间的组件/multiservice.wsdl'。如果这是不正确的命名空间,则可能需要更改“ser:char”的前缀。如果这是正确的命名空间,则应将适当的“导入”标签添加到“file:///Users/itunesuser/git/online-service-wizard/suppression-extension/src/main/resources/com/satorisoftware/” ws/infuse/multiservice/multiservice.wsdl'。multiservice.wsdl /Scrubbr-suppression-extension/src/main/resources/com/satorisoftware/ws/infuse/multiservice line 623 WSDL 问题

回答by Anders Johansen

Go to Properties, find Validation, switch off WSDL validation entirely.

转到属性,找到验证,完全关闭 WSDL 验证。

Not ideal, but better than nothing.

不理想,但总比没有好。

回答by Zeus

Go to window > preferences search for validations(it is not under any menu) > scroll down for wsdl and uncheck the wsdl in the list see the screenshot like below.

转到窗口 > 首选项搜索验证(它不在任何菜单下)> 向下滚动 wsdl 并取消选中列表中的 wsdl,请参阅如下屏幕截图。

enter image description here

在此处输入图片说明