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

https URLs throw "Invalid URL: (ArgumentError)" #236

Closed
mika opened this issue Oct 26, 2011 · 6 comments
Closed

https URLs throw "Invalid URL: (ArgumentError)" #236

mika opened this issue Oct 26, 2011 · 6 comments
Milestone

Comments

@mika
Copy link

mika commented Oct 26, 2011

Hi!

What I've got is:

require "savon"
client = Savon::Client.new "https://192.168.51.111:2443/SOAP/Provisioning.wsdl"
puts client.request :get_domain_preferences

This results in the following error:

D, [2011-10-26T19:35:41.037376 #15619] DEBUG -- : HTTPI executes HTTP GET using the net_http adapter
warning: peer certificate won't be verified in this SSL session
/var/lib/gems/1.8/gems/httpi-0.9.5/lib/httpi/request.rb:85:in `normalize_url!': Invalid URL:  (ArgumentError)
        from /var/lib/gems/1.8/gems/httpi-0.9.5/lib/httpi/request.rb:26:in `url='
        from /var/lib/gems/1.8/gems/savon-0.9.7/lib/savon/soap/request.rb:40:in `setup'
        from /var/lib/gems/1.8/gems/savon-0.9.7/lib/savon/soap/request.rb:23:in `initialize'
        from /var/lib/gems/1.8/gems/savon-0.9.7/lib/savon/client.rb:79:in `new'
        from /var/lib/gems/1.8/gems/savon-0.9.7/lib/savon/client.rb:79:in `request'
        from foo.rb:10

Would be great if savon could support https URLs (or provide a way how to get it working with net_http/httpi).

Thanks!

regards,
-mika-

@rubiii
Copy link
Contributor

rubiii commented Oct 26, 2011

savon supports https. the stacktrace indicates a problem with the soap endpoint mentioned in your wsdl.

@mika
Copy link
Author

mika commented Oct 26, 2011

This wsdl works in Firefox as well as with python's pysimplesoap. I'm wondering why it returns the "Invalid URL" - any hints where I should start looking further?

@rubiii
Copy link
Contributor

rubiii commented Oct 30, 2011

not really. can you upload or send me the wsdl for debugging?

@mika
Copy link
Author

mika commented Nov 8, 2011

Does http://michael-prokop.at/sipwise/Provisioning.wsdl work for you?

@rubiii
Copy link
Contributor

rubiii commented Feb 17, 2012

released a possible fix with v0.9.9

@rubiii rubiii closed this as completed Feb 17, 2012
@mika
Copy link
Author

mika commented Feb 18, 2012

Verified, works fine - thanks!

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

2 participants