Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Me again! Having seen the comments to your original question, I thought I'd offer an alternative solution.</p> <p>If I understand your problem, it seems you have a WSDL (generated by Spring-WS) which contains references to the various schema. When a client tries to follow those schema references, it fails, because there is no such resource.</p> <p>Spring-WS offers a nice way out of this, which is described in the <a href="http://static.springsource.org/spring-ws/sites/1.5/reference/html/server.html#server-automatic-wsdl-exposure" rel="nofollow noreferrer">section on WSDL exposure</a>:</p> <blockquote> <p>If you want to use multiple schemas, either by includes or imports, you might want to use the CommonsXsdSchemaCollection, and refer to that from the DefaultWsdl11Definition, like so:</p> </blockquote> <pre><code>&lt;bean id="schemaCollection" class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection"&gt; &lt;property name="xsds"&gt; &lt;list&gt; &lt;value&gt;classpath:/path/to/schema1.xsd&lt;/value&gt; &lt;value&gt;classpath:/path/to/schema2.xsd&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;property name="inline" value="true"/&gt; &lt;/bean&gt; </code></pre> <blockquote> <p>When the inline property is enabled, it follows all XSD imports and includes, and inlines them in the WSDL. This greatly simplifies the deloyment of the schemas, which still making it possible to edit them separately.</p> </blockquote> <p>So what you get is a generated WSDL with all of the referenced schemas inlined, so there <em>are</em> no references for the client to follow. It's very slick, and means you don't have to expose your schema files individually.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload