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

Models: Using local wsdl does not read from file, makes request #947

Open
scottbarrow opened this issue Jan 20, 2021 · 3 comments
Open

Models: Using local wsdl does not read from file, makes request #947

scottbarrow opened this issue Jan 20, 2021 · 3 comments
Labels

Comments

@scottbarrow
Copy link

Bug report

Current behavior:
Creating a model and specifying
client wsdl: '/path/to/wsdl/file.wsdl

Steps to reproduce current behavior:
Create a model with a local wsdl

Expected behavior:
model to read local wsdl file as per exception message https://github.com/savonrb/savon/blob/master/lib/savon/model.rb#L65

Actual behaviour:

ArgumentError: Invalid URL:
from /Users/scott/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/httpi-2.4.5/lib/httpi/request.rb:149:in `normalize_url!'

System information:

  • ruby version: 2.6
  • savon version: 2.12.0
@scottbarrow scottbarrow changed the title MOdels: Using local wsdl does not read from file, makes request Models: Using local wsdl does not read from file, makes request Jan 20, 2021
@olleolleolle
Copy link
Contributor

olleolleolle commented Jan 20, 2021

Would it work to use a file:///path/to/wsdl/file.wsdl?

@scottbarrow
Copy link
Author

scottbarrow commented Jan 21, 2021

Would it work to use a file:///path/to/wsdl/file.wsdl?

no because load_from_disc does not support that protocol it expects a path
Also, the service im connecting to does not include an endpoint in their wsdl

@stale
Copy link

stale bot commented Jan 8, 2022

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.

@stale stale bot added the stale label Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants