Alex,
I hope this helps:
Code:
<bean id="someService" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
<!--
This is how you used to do it....
<property name="schema">
<bean class="org.springframework.xml.xsd.SimpleXsdSchema">
<property name="xsd" value="someSchemaFileWithImportsAndIncludes.xsd"/>
</bean>
</property>
-->
<!--This is how you do it to include all referenced schemas inline-->
<property name="schemaCollection">
<bean class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection">
<property name="xsds" value="someSchemaFileWithImportsAndIncludes.xsd"/>
<property name="inline" value="true"/>
</bean>
</property>
<property name="portTypeName" value="myPortTypeName"/>
<property name="locationUri" value="http://localhost:8080/services/myServiceName"/>
</bean>
Regards,
Joshua