-
Notifications
You must be signed in to change notification settings - Fork 24
Schema files from local file system #14
Comments
I believe the reason for limiting schema locations to URLs is that it's pretty common for services to provide a WSDL (and that this WSDL can change arbitrarily, since it's server hosted content). I think it's fairly reasonable to want to load your WSDL and schema files from your filesystem. Taking a look at this code, it seems like it's trying to only load absolute URLs (e.g.: it skips relative urls like /foo). File URLs are an interesting edge case in that determining relative versus absolute requires knowing the system (since If you're up to submitting a pull request for allowing schema files from the local file system, I'd be more than happy to merge that in! |
Additionally, @rubiii has done the lion's share of the work on Sekken, née Savon v3, so he might have some additional insight into why loading Schema files is different. In my opinion, looking at this for all of several minutes, it appears to just be a simple oversight. |
Since everything that doesn't look like a URL or XML is passed dierectly into |
I believe it's true that |
I would like to keep a copy of a WSDL and its schema files in my local file system. I can load a local WSDL by just passing the path into
Sekken.new
, the resolver lets me. To do the same with the associated schema files I replaced theschemaLocation
attributes to have the local paths as values. The problem is, that this prevents me from importing them.What is the reason for limting the schema locations to http URLs?
The text was updated successfully, but these errors were encountered: