Sha256: 2aa9ec9ee493c1909662445fc04c22041288084d1f400b194bf206e6118bdae5
Contents?: true
Size: 786 Bytes
Versions: 4
Compression:
Stored size: 786 Bytes
Contents
class EndpointHelper # Returns the WSDL endpoint for a given +type+ of request. def self.wsdl_endpoint(type = nil) case type when :no_namespace then "http://nons.example.com/Service?wsdl" when :namespaced_actions then "http://nsactions.example.com/Service?wsdl" else soap_endpoint(type) + "?wsdl" end end # Returns the SOAP endpoint for a given +type+ of request. def self.soap_endpoint(type = nil) case type when :soap_fault then "http://soapfault.example.com/Service" when :http_error then "http://httperror.example.com/Service" when :invalid then "http://invalid.example.com/Service" else "http://example.com/validation/1.0/AuthenticationService" end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
savon-0.7.1 | spec/endpoint_helper.rb |
savon-0.7.0 | spec/endpoint_helper.rb |
julianmorrison-savon-0.6.8 | spec/endpoint_helper.rb |
savon-0.6.8 | spec/endpoint_helper.rb |