简体   繁体   中英

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:

There is a set of abount 50 webservice methods and its request and response types. 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:

<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...

Does DefaultWsdl11Definition some kind of caching?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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