[英]"Cannot resolve symbol" on soap12:binding
I'm configuring an WSDL file.我正在配置一个 WSDL 文件。 I'm using java 7, IntelliJ 2019.2 and SoapUi To test my request.
我正在使用 java 7、IntelliJ 2019.2 和 SoapUi 来测试我的请求。 I'm using soap12 to help.
我正在使用soap12来提供帮助。 Into the Binding section, I have
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
However, I have a "cannot resolve symbol" on the binding.进入绑定部分,我有
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
但是,我在绑定上有一个“无法解析符号”。 I do have the same for <soap12:operation soapAction="" />
and <soap12:body use="literal" />
我对
<soap12:operation soapAction="" />
和<soap12:body use="literal" />
有相同的<soap12:operation soapAction="" />
I have tried to modify my WSDL definition which now looks like this :我试图修改我的 WSDL 定义,现在看起来像这样:
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://*******.******.**/*****/****" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
name="***********" targetNamespace="http://*******.****.**/*****/****">
I'm working with IntelliJ, I've tried to reimport, to regenerate sources & update folders, to modify the WSDL definition.我正在使用 IntelliJ,我尝试重新导入、重新生成源和更新文件夹、修改 WSDL 定义。 But none of this works.
但这都不起作用。
This is a little part of my binding part, but it looks the same for all the others :这是我的绑定部分的一小部分,但对于所有其他部分,它看起来都一样:
<wsdl:binding name="***********" type="tns:***********" >
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="demandeNumeroOuValidation">
<soap12:operation soapAction="" />
<wsdl:input name="demandeNumeroOuValidationRequest">
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output name="demandeNumeroOuValidationResponse">
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
I do know if something is not imported well.我确实知道某些东西是否没有很好地导入。 It throws no error.
它不会抛出任何错误。 When I launch SoapUI, it says "Got response" but nothing is returned.
当我启动 SoapUI 时,它说“得到响应”但没有返回任何内容。
The "cannot resolve symbol" on the soap12:method seems to not allow me to get a response. soap12:method 上的“无法解析符号”似乎不允许我得到响应。
Any help ?有什么帮助吗?
I ran into the same problem.我遇到了同样的问题。 IntelliJ highlights in red "Cannot resolve symbol 'soap12: binding'" without a suggested fix and the rest of the wsdl file looks correct.
IntelliJ 以红色突出显示“无法解析符号‘soap12:绑定’”而没有建议的修复,并且 wsdl 文件的其余部分看起来是正确的。 Then I run "mvn generate-sources" in a terminal and the classes are (seems) generated correctly.
然后我在终端中运行“mvn generate-sources”并且类(似乎)正确生成。 I think IntelliJ highlights in red but he doesn't know why, neither do I and in any case it doesn't seem to bother maven to generate the classes.
我认为 IntelliJ 以红色突出显示,但他不知道为什么,我也不知道,并且在任何情况下似乎都不会打扰 maven 生成这些类。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.