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

TransportURIResolver can not get the import resource file correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JAX-WS Runtime
    • Labels:
      None

      Description

      When the TransportURIResolver process this import xsd ,
      <s:schema>
      <s:import namespace="http://schemas.xmlsoap.org/soap/envelope/"
      schemaLocation="http://schemas.xmlsoap.org/soap/envelope"/>
      </s:schema>
      The server replys with :
      <head><title>Document Moved</title></head>
      <body><h1>Object Moved</h1>This document may be found <a HREF="http://schemas.xmlsoap.org/soap/envelope/">here</a></body>

      If we do not set our wsdlLocator , the wsdl4j can resolve this import schema correctly .

      Please note this xsd file is actually located on "http://schemas.xmlsoap.org/soap/envelope/ default.xsd" ,It is probably because the TransportURIResolver does not set any http headers to request this resource. Look at if we should set some required http headers to request some http resources.

        Attachments

          Activity

            People

            • Assignee:
              ema Jim Ma
              Reporter:
              ema Jim Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: