I have encountered another problem when I started using this feature and I am not sure if this issue is related to the one that you have resolved it.
I set the second schema (commonTypes.xsd) in the shemaLocation and redeployed our app. The commonTypes.xsd is imported onto WSDL file which has schema definition for request and response (LoanHistoryReqRes.xsd). These settings are shown as follows:
<bean id="loanHistoryWsdl" class="org.springframework.ws.wsdl.wsdl11.DynamicWsdl11Definition">
<property name="schema" value="classpath:LoanHistoryReqRes.xsd" />
<property name="schemaLocation" value="CommonTypes.xsd" />
<property name="portTypeName" value="LHISWebService" />
<!-- This probably eventually needs to https -->
<property name="locationUri" value="http://$
<property name="prefix" value="tns" />
<property name="schemaPrefix" value="lhis" />
<property name="targetNamespace" value="http://www.countrywide.com/LoanHistory/definitions" />
When I imported the WSDL file (from URL), which has a reference to
commonType.xsd, to SOAP UI, I got a SAX exception in parsing WSDL.
However, when I saved both WSDL and commonTypes.xsd in one folder and
import the WSDL to SOAP UI, then everything works fine.
Is this issue the same as the one you have resolved it?