guaguanco
16 years agoNew Contributor
Changing relative URLs for schema components?
I've successfully created a WAR file (myMockService.war) and deployed it to a Tomcat server. However, if I attempt to use soapUI to access the mock service, I get errors as it tries to import the WSDL. These are due to the fact that there's an extra directory level when the WAR file is deployed (as is typical of deployed WAR files):
http://server:8080/myMockService/MyServiceSoap11?WSDL
includes references to things like:
schemaLocation="/MyServiceSoap11?WSDL&interface=MyServiceSoap11&part=ComplexTypes.xsd"
which *would* work if they pointed to the deployment location:
schemaLocation="/myMockService/MyServiceSoap11?WSDL&interface=MyServiceSoap11&part=ComplexTypes.xsd"
I could create a Tomcat rewrite rule, or hack the deployed files to add the extra path element, but it seems like something that could/should be handled through soapUI. Any pointers?
Thanks in advance.
http://server:8080/myMockService/MyServiceSoap11?WSDL
includes references to things like:
schemaLocation="/MyServiceSoap11?WSDL&interface=MyServiceSoap11&part=ComplexTypes.xsd"
which *would* work if they pointed to the deployment location:
schemaLocation="/myMockService/MyServiceSoap11?WSDL&interface=MyServiceSoap11&part=ComplexTypes.xsd"
I could create a Tomcat rewrite rule, or hack the deployed files to add the extra path element, but it seems like something that could/should be handled through soapUI. Any pointers?
Thanks in advance.