Skip to content

Commit

Permalink
allow specification of a different WSDL
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Burkhart & Andy Delcambre authored and Josh Martin committed Jun 7, 2012
1 parent afebfaf commit 9b92e6e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/zuora/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def self.configure(opts={})
class Api
include Singleton
# @return [Savon::Client]
attr_accessor :client
def client
@client ||= make_client
end

# @return [Zuora::Session]
attr_accessor :session
Expand Down Expand Up @@ -89,9 +91,11 @@ def initialize
Savon.configure do |savon|
savon.soap_version = 2
end
end

self.client = Savon::Client.new do
wsdl.document = WSDL
def make_client
Savon::Client.new do
wsdl.document = (defined?(ZUORA_WSDL) && ZUORA_WSDL) || WSDL
http.auth.ssl.verify_mode = :none
end
end
Expand Down

0 comments on commit 9b92e6e

Please sign in to comment.