Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundException trying to load import by an absolute path #267

Open
artem-mindrov opened this issue Dec 13, 2017 · 0 comments
Open

Comments

@artem-mindrov
Copy link

I have a case where an external WSDL of the form defines a schema import using an absolute path, i.e. something of the form
<xsd:import namespace="urn:some-namespace" schemaLocation="//absolute/path/to/XSD.xsd"/>
ExternalResolver tries to treat this import as a local resource and fails. Shouldn't it rather try to compose the URL from the endpoint used in the initial WSDL request and the path to the XSD?

I've tried to do this using my own Resolver (as I also have to use basic HTTP authentication to access this private WSDL), and I had to also override setting baseDir, since in this case after updatectx() baseDir contains the '//absolute/path/to' path so just appending input to baseDir results in a wrong URL.

The code I'm referring to is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant