I am trying to import a local schema into a WSDL, in top-down approach of web-service design using JDeveloper on Windows.
The schema is locally present on my drive with the following path:
file:///C:/JDeveloper/mywork/TestProjects/Project1/public_html/WEB-INF/lodgeForm.xsd
I have double checked the path by opening it in the web browser.
However using the following WSDL, its not able to find the shcema on my system, and it gives the "Incorrect namespace definition for file..." warning.
<?xml version="1.0" encoding="UTF-8" ?>
<definitions targetNamespace="urn:SageComputingWSDL"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="urn:SageComputingWSDL"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema targetNamespace="http://www.sagecomputing.com.au">
<xsd:import namespace="http://www.sagecomputing.com.au"
schemaLocation="file:///C:/JDeveloper/mywork/TestProjects/Project1/public_html/WEB-INF/lodgeForm.xsd"/>
</xsd:schema>
</types>
</definitions>
I am not sure what should be the correct path for schema location.
I have tried the relative path as well, which gave the same problem.
<types>
<xsd:schema targetNamespace="http://www.sagecomputing.com.au">
<xsd:import namespace="http://www.sagecomputing.com.au" schemaLocation="../../lodgeForm.xsd"/>
</xsd:schema>
</types>
What am I doing wrong here? Any suggestions?