Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Importing a local schema into WSDL

spandan1990Jun 27 2016 — edited Jun 27 2016

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?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2016
Added on Jun 27 2016
1 comment
2,317 views