WSDL 警告:soapbind:fault 元素有缺陷。这意味着什么?
这是我的 WSDL 文件中的一个片段;
<wsdl:portType name="MtchWS">
<wsdl:operation name="inference">
<wsdl:input message="tns:inferencerequest" name="inferencerequest"/>
<wsdl:output message="tns:inferenceresponse" name="inferenceresponse"/>
<wsdl:fault message="tns:errorresponse" name="errorresponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MtchWSBinding" type="tns:MtchWS">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="inference">
<soap:operation soapAction="http://www.mywebsite.com/webservice"/>
<wsdl:input name="inferencerequest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="inferenceresponse">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="errorreponse">
<!-- <soap:fault use="literal"/>-->
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MtchWSService">
<wsdl:port binding="tns:MtchWSBinding" name="MtchWSPort">
<soap:address location="http://localhost:8080/mwp/mws"/>
</wsdl:port>
</wsdl:service>
在上面的一行中(包括“wsdl:binding name =“MtchWSBinding”type =“tns:MtchWS”)我收到一条警告:
WS-I:(BP2032)有缺陷的soapbind:fault元素: “name”属性值与父元素 wsdl:fault 上的“name”属性值不匹配。
这意味着什么以及如何修复我的 Web 服务? 有关。
工作正常,但我有一些其他问题(与 WSDL2ObjC),我认为这与此警告
Here is a snippet from my WSDL file;
<wsdl:portType name="MtchWS">
<wsdl:operation name="inference">
<wsdl:input message="tns:inferencerequest" name="inferencerequest"/>
<wsdl:output message="tns:inferenceresponse" name="inferenceresponse"/>
<wsdl:fault message="tns:errorresponse" name="errorresponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MtchWSBinding" type="tns:MtchWS">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="inference">
<soap:operation soapAction="http://www.mywebsite.com/webservice"/>
<wsdl:input name="inferencerequest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="inferenceresponse">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="errorreponse">
<!-- <soap:fault use="literal"/>-->
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MtchWSService">
<wsdl:port binding="tns:MtchWSBinding" name="MtchWSPort">
<soap:address location="http://localhost:8080/mwp/mws"/>
</wsdl:port>
</wsdl:service>
in one of the lines above (the one including "wsdl:binding name="MtchWSBinding" type="tns:MtchWS") I get a warning saying;
WS-I: (BP2032) Defective soapbind:fault element: the "name" attribute value does not match the value of the "name" attribute on the parent element wsdl:fault.
What does that means and how can i fix this? my web service seems to be work fine but I have some other problems (with WSDL2ObjC) which I think it is releted to this warning.
tnx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我修好了;
刚刚添加了
ok I fixed;
just added the