Created
December 24, 2012 14:51
-
-
Save anonymous/4369504 to your computer and use it in GitHub Desktop.
SOAP Problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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