Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5047

For provider-based endpoints with WSDLs using xsd:import, schemaLocation of imported xsd does not resolve correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.5.4
    • None
    • jaxws
    • None
    • JDK 1.6.0_24, Axis2 1.5.4, Tomcat 6

    Description

      If a provider-based endpoint specifies a WSDL like so:

      @WebServiceProvider(wsdlLocation="/WEB-INF/wsdl/PojoProvider.wsdl")
      ..

      and that WSDL imports an external XML schema like this:

      <types>
      <xsd:schema targetNamespace="http://www.yoyodyne.com"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:bar="http://www.yoyodyne.com/bar">

      <xsd:import namespace="http://www.yoyodyne.com/foo" schemaLocation="foo.xsd"/>

      </xsd:schema>
      </types>

      then, when deploying the provider-based endpoint as a JAR file into servicejars, the schemaLocation will be rewritten to

      schemaLocation="PojoProviderService.PojoProviderPort?xsd=foo.xsd"

      For provider-based endpoints, that URL does not correctly resolve at runtime. However, for endpoints annotated with @WebService, the same scenario works fine.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bruhacs Lorand Bruhacs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: