Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2184

XSD import statements do not apply given confguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.2.2, 2.0.12, 2.1.6
    • Core
    • None

    Description

      CXF-1279 led to a change in the code to allow for the inclusion of a publishedEndpointUrl configuration parameter in the cxf-servlet.xml. This parameter is then used by the WSDLQueryHandler class when building the WSDL file to serve.

      We are currently developing a number of services using WSDL first development with the added complexity that the web services are deployed behind a proxy server that rewrites the incoming URL. The environment has no DNS so all configuration has to be IP based. The publishedEndpointURI property allows me to adjust the endpoint address in the published wsdl file at deployment time.

      However there is one other locations where IP address is used that I need to update, which is in the XSD imports inside the WSDL. These are showing as the internal network IP and port of the JBoss server instance as opposed to the external facing URL. As such no consumers of the service can use the published WSDL to generate a client because the XSD's can not be retrieved.

      I have attached a patch to the WSDLQueryHandler class that applies the same logic to the building of the base address of the schema imports as is applied to the endpoint address.

      Cheers

      Attachments

        1. publisedEndpointUrl.diff
          1 kB
          Nigel Garner

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              nigel_garner Nigel Garner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: