Skip to content

Instantly share code, notes, and snippets.

Created December 24, 2012 14:51
Show Gist options
  • Save anonymous/4369504 to your computer and use it in GitHub Desktop.
Save anonymous/4369504 to your computer and use it in GitHub Desktop.
SOAP Problems
def soap_client
Savon::Client.new do
wsdl.endpoint = self.endpoint.to_s
wsdl.namespace = self.namespace
http.auth.basic self.username, self.password
end
end
module YieldStarClient
VALID_CONFIG_OPTIONS = [:endpoint, :username, :password, :namespace, :client_name,
:debug, :logger]
DEFAULT_ENDPOINT = 'https://rmsws.yieldstar.com/rmsws/AppExchange'
DEFAULT_NAMESPACE = 'http://yieldstar.com/ws/AppExchange/v1'
module Configuration
include Configlet
def self.extended(base)
# Default configuration - happens whether or not .configure is called
base.config :yield_star do
default :endpoint => DEFAULT_ENDPOINT
default :namespace => DEFAULT_NAMESPACE
default :debug => false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment