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

Cache parsed WSDLs locally #77

Closed
mjwillson opened this issue Aug 11, 2010 · 7 comments
Closed

Cache parsed WSDLs locally #77

mjwillson opened this issue Aug 11, 2010 · 7 comments

Comments

@mjwillson
Copy link

At a basic level this might work if you safely roundtrip Savon::WSDL objects to and from YAML (or just ruby marshall would do), eg

wsdl = YAML.load_file("cache/foo.wsdl.yaml")
Savon::Client.new(wsdl)

Even better would be if you could set something like:

Savon::Client.wsdl_cache_dir = './cache'
Savon::Client.use_wsdl_cache = true

Might be some gotchas here with stale WSDLs being used, but I can't imagine this would be any worse than ignoring the WSDL altogether, which is the current advice for avoiding WSDL fetch/parse hits in production...

@rubiii
Copy link
Contributor

rubiii commented Oct 4, 2010

v0.8.0 will allow you to use a local WSDL document. the dev branch already contains this feature. will be released asap.

@mjwillson
Copy link
Author

Nice, thanks!

(In retrospect, not sure why I suggested YAML there given it's already in XML :)

@viabledish
Copy link

any idea when you are releasing 0.8? Really looking forward to this function.

@arthurgeek
Copy link

Great! Any release date for a 0.8.0.pre? :)

@rubiii
Copy link
Contributor

rubiii commented Oct 29, 2010

today. there, i said it :)

@rubiii
Copy link
Contributor

rubiii commented Oct 29, 2010

please try savon 0.8.0.beta.1

@rubiii
Copy link
Contributor

rubiii commented Dec 20, 2010

released v0.8.0 which should solve this problem.

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

No branches or pull requests

4 participants