rubiii/wasabi — Issue #2: endpoint url problem with symbolic endpoints
Author: erhard
Created: 2011-10-27 15:16:30+00:00
State: open

I use WASABI with savon

When there is a symbolic endpoint in the wsdl like : with server:port in order to be replaced at runtime thru wsdl.endpoint an error is thrown. This is caused because the url is parsed always from the xml and URI(URI.escape(endpoint.to_s)) is called in the method parse_endpoint, which throws an error with symbolic urls.

It can be avoided by wrapping the URI class in a begin end.

begin
@endpoint = URI(URI.escape(endpoint.to_s)) if endpoint
rescue
@endpoint=nil
end