savon icon indicating copy to clipboard operation
savon copied to clipboard

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

Open scottbarrow opened this issue 4 years ago • 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

scottbarrow avatar Jan 20 '21 05:01 scottbarrow

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

olleolleolle avatar Jan 20 '21 08:01 olleolleolle

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

scottbarrow avatar Jan 21 '21 02:01 scottbarrow

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[bot] avatar Jan 08 '22 23:01 stale[bot]