Sha256: 9916b0aee956271c08ce353d0fec63b0673668a997e3d6ed36b454a7cbf6c242

Contents?: true

Size: 898 Bytes

Versions: 65

Compression:

Stored size: 898 Bytes

Contents

class Endpoint
  class << self

    # Returns the WSDL endpoint for a given +type+ of request.
    def wsdl(type = nil)
      case type
        when :no_namespace       then "http://nons.example.com/Service?wsdl"
        when :namespaced_actions then "http://nsactions.example.com/Service?wsdl"
        when :geotrust           then "https://test-api.geotrust.com/webtrust/query.jws?WSDL"
        else                          soap(type)
      end
    end

    # Returns the SOAP endpoint for a given +type+ of request.
    def soap(type = nil)
      case type
        when :soap_fault then "http://soapfault.example.com/Service?wsdl"
        when :http_error then "http://httperror.example.com/Service?wsdl"
        when :invalid    then "http://invalid.example.com/Service?wsdl"
        else                  "http://example.com/validation/1.0/AuthenticationService"
      end
    end

  end
end

Version data entries

65 entries across 65 versions & 9 rubygems

Version Path
savon-2.12.1 spec/support/endpoint.rb
savon-2.12.0 spec/support/endpoint.rb
savon-2.11.2 spec/support/endpoint.rb
savon-SU-2.11.1b spec/support/endpoint.rb
savon-SU-2.11.1 spec/support/endpoint.rb
savon-2.11.1 spec/support/endpoint.rb
savon-2.11.0 spec/support/endpoint.rb
savon-2.10.1 spec/support/endpoint.rb
savon-2.10.0 spec/support/endpoint.rb
savon-2.9.0 spec/support/endpoint.rb
savon-2.8.1 spec/support/endpoint.rb
savon-2.8.0 spec/support/endpoint.rb
savon-2.7.2 spec/support/endpoint.rb
savon-2.7.1 spec/support/endpoint.rb
savon-2.7.0 spec/support/endpoint.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/savon-0.9.5/spec/support/endpoint.rb
savon-2.6.0 spec/support/endpoint.rb
savon-2.5.1 spec/support/endpoint.rb
savon-2.5.0 spec/support/endpoint.rb
savon_with_adapter-2.4.1 spec/support/endpoint.rb