Publishing Static WSDL and related XSD schemas using Spring WS

后端 未结 3 1927
栀梦
栀梦 2021-01-18 08:49

I have one module where I have my XSD schemas, where one schema can reference an other using relative path within schema location:



        
3条回答
  •  盖世英雄少女心
    2021-01-18 09:13

    Spring web service has a way to do it elegantly actually. All you need to do is to define a SimpleXsdSchema bean with the right id (which will be used as the xsd name without .xsd) in the bean definition xml file, something like below

    
            
            
    
    

    More information (including an example) can be found at the following link: Static WSDL with imported XML Schema in Spring Web Service

提交回复
热议问题