savonrb/savon

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

scottbarrow opened this issue · 3 comments

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

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

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 commented

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.