简体   繁体   English

Spring Webservices:WSDL中的错误(soap:body为空的“ use”属性)

[英]Spring Webservices: Error in WSDL (“use” attribute of soap:body empty)

I have a question on WSDL generation with DefaultWsdl11Definition from Spring Webservices 1.5: 我对Spring Webservices 1.5的DefaultWsdl11Definition的WSDL生成有疑问:

There is a set of abount 50 webservice methods and its request and response types. 有一组大约50种Web服务方法及其请求和响应类型。 In I see, that the "use" attribute of "" is empty. 在我看来,“”的“使用”属性为空。

<wsdl:operation name="SuspiciousOperation">
    <soap:operation soapAction=""/>
    <wsdl:input name="SuspiciousOperationRequest">
        <soap:body use=""/>                               <!-- here is the error! -->
    </wsdl:input>
    <wsdl:output name="SuspiciousOperationResponse">
        <soap:body use="literal"/>
    </wsdl:output>
</wsdl:operation>

This leads to an error in the clients. 这会导致客户端错误。

Here is the fragement of the XSD file defining the request and response types: 这是定义请求和响应类型的XSD文件的片段:

<xs:element name="SuspiciousOperationRequest">
    <xs:complexType>
        <xs:all>
            <xs:element name="someID" type="xs:int" />
        </xs:all>
    </xs:complexType>
</xs:element>
<xs:element name="SuspiciousOperationResponse">
    <xs:complexType />
</xs:element>

Can someone explain, what causes this error? 有人可以解释是什么导致此错误吗?

Best regards, 最好的祝福,

Markus 马库斯

Strange... Restarting the servlet container fixed the bug... 奇怪...重新启动servlet容器修复了该错误...

Does DefaultWsdl11Definition some kind of caching? DefaultWsdl11Definition是否进行某种缓存?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM