Forum Discussion

krisrr3's avatar
krisrr3
Occasional Contributor
14 years ago

error importing WSDL as xsd cannot be found

Hi guys,

I and using Spring-WS and I am able to access my wsdl on a browser with the URL below
http://localhost:8080/custid-service...chService.wsdl


However, when I attempt to load it from Soap UI there is a failure which says


Error loading [http://localhost:8080/custid-service...hrequest.xsd]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error:


The fact that my XSD is in my WEB-INF folder, it will obviously not be able to retrieve it that way. And I have defined the location in my wsdl as follows


<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://mycompany/schemas/1/00"
schemaLocation="cust_searchrequest.xsd"/>
</xsd:schema>
</wsdl:types>




How should I be configuring the WSDL such that it picks up the XSD from the WEB-INF folder? Or let me know if it should be in the webapp folder directly.

Cheers
Kris
No RepliesBe the first to reply