membrane / soa-model

Toolkit and Java API for WSDL, WADL and XML Schema.
http://www.membrane-soa.org/soa-model/
Apache License 2.0
94 stars 73 forks source link

Import with schemaLocation whose URI begins with ".." Leads to ResourceDownloadException #213

Open rsolton opened 10 years ago

rsolton commented 10 years ago

The following type of relative path in the schemaLocation of an import is not resolved and produces an exception "com.predic8.xml.util.ResourceDownloadException":

<xsd:import namespace="urn:fault.ws.rsys.com" schemaLocation="../services/ResponsysWSService/_resources_/xsd/ResponsysWSFaults_Schema.xsd"/>

Here is an example wsdl that uses this pattern: https://ws5.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl

predic8 commented 10 years ago

Thanks for reporting. We will fix this in a future release.