-
Notifications
You must be signed in to change notification settings - Fork 616
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
SSL detection based on 'https://` protocol not guaranteed to work #420
Comments
hey @oskarbruening, thanks for reporting this. i would need a test to verify the problem, but currently don't have the time to write it. i think this should be fixed though and a failing test would probably make it easier to come up with a proper solution. |
@oskarbruening could you point me to the code for this?
right now, i don't really understand the problem, so if you can't provide code or a test to reproduce this, |
I think I'm having the same issue as @oskarbruening , also mentioned by vaibhavbansal in #297 The WSDL server is accessed over HTTPS, but has an untrusted certificate. I try to connect with Connecting with At this line: If there's anything I can do to further help debug, please let me know. |
@unixmonkey savon extracts the endpoint from the wsdl. please check whether that one uses http or https. |
@unixmonkey can you provide code or a test to verify this problem? |
@rubiii You are completely right. The WSDLs I'm working with specify @oskarbruening I know it's been awhile, but can you check to see if your WSDL has the same issue? |
@unixmonkey thanks for getting back. so i would consider closing this one unless @oskarbruening actually has a different problem and can provide code or further information to reproduce the problem. |
It's a different issue. Who can I email with more details that I'd prefer not to share publicly here? |
@oskarbruening you can email me at me@rubiii.com |
I've just confirmed I'm having the same issue that can be solved by supplying the wsdl URI to the endpoint option too. I don't really understand why though, it may be a problem with the WSDL i'm consuming. I get |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is now closed due to inactivity. If you believe this needs further action, please re-open to discuss. |
thanks for the provided workaround! |
Here's the issue:
client = Savon.client(wsdl: 'https://.….')
@wsdl.document = @globals[:wsdl] if @globals.include? :wsdl
Two options, neither of which I'm a big fan, but wanted to get your feedback:
The workaround is to use the
endpoint
global:client = Savon.client(wsdl: @url, endpoint: @url)
does the job because Savon::Operation.endpoint checks @Globals first to get the url. This is a good work around for us for now, but it's not intuitive and might need to be documented / fixed.
The text was updated successfully, but these errors were encountered: