ODE
  1. ODE
  2. ODE-111

Support <xsd:include> with relative schemaLocation

    Details

      Description

      Improve the BPEL compiler to support <xsd:include> with relative schemaLocation, such as:

      <wsdl:types>
      <xs:schema targetNamespace="http://www.intalio.com/training/orderManagement_20061017">
      <xs:include schemaLocation="../../OrderManagement.xsd"/>
      </xs:schema>
      </wsdl:types>

        Activity

        Matthieu Riou made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Alex Boisvert added a comment -

        Also worth saying is the path resolution does not use or interpret the targetNamespace as a base URL.

        The base URL for all imports and includes is the location of the context document.

        So if I have the following deployment package structure:

        foo/bar/baz.wsdl

        <wsdl:types>
        <xs:schema targetNamespace="uri:thisIsNeverUsedAsAURL">
        <xs:include schemaLocation="../../mySchemaTypes.xsd"/>
        </xs:schema>
        </wsdl:types>

        then it is expected that mySchemaTypes.xsd is available at the root of the deployment package.

        Show
        Alex Boisvert added a comment - Also worth saying is the path resolution does not use or interpret the targetNamespace as a base URL. The base URL for all imports and includes is the location of the context document. So if I have the following deployment package structure: foo/bar/baz.wsdl <wsdl:types> <xs:schema targetNamespace="uri:thisIsNeverUsedAsAURL"> <xs:include schemaLocation="../../mySchemaTypes.xsd"/> </xs:schema> </wsdl:types> then it is expected that mySchemaTypes.xsd is available at the root of the deployment package.
        Hide
        Paul R. Brown added a comment -

        Based on previous experience, it's worth observing that some people expect this sort of a feature to apply filesystem semantics to HTTP URLs, e.g.

        base = http://foo.com/bar/baz/
        rel = ../../qux

        And then they expect the result to be http://foo.com/qux, which won't necessarily work (it's up to the web server).

        Show
        Paul R. Brown added a comment - Based on previous experience, it's worth observing that some people expect this sort of a feature to apply filesystem semantics to HTTP URLs, e.g. base = http://foo.com/bar/baz/ rel = ../../qux And then they expect the result to be http://foo.com/qux , which won't necessarily work (it's up to the web server).
        Alex Boisvert made changes -
        Assignee Alex Boisvert [ boisvert ]
        Alex Boisvert made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.0-incubating [ 12312280 ]
        Resolution Fixed [ 1 ]
        Hide
        Alex Boisvert added a comment -

        Fixed.

        Sending bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/DefaultResourceFinder.java
        Transmitting file data .
        Committed revision 530061.

        Show
        Alex Boisvert added a comment - Fixed. Sending bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/DefaultResourceFinder.java Transmitting file data . Committed revision 530061.
        Alex Boisvert created issue -

          People

          • Assignee:
            Alex Boisvert
            Reporter:
            Alex Boisvert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development