rubiii/savon — Issue #272: Savon output not hitting STDOut by default
Author: ephekt
Created: 2012-02-22 23:03:18+00:00
State: open

Hello Savon Community,

I installed Savon 0.9.9 and have a simple script trying to interact with a WSDL service:

...

self.wsdl_url = "https://api5120.apt.yahooapis.com/services/#{version}/"

client = Savon::Client.new("#{self.wsdl_url}/AccountService?wsdl")

response = client.request :getAccountLocation do
soap.namespaces["xmlns:wsdl"] = self.apt_namespace
soap.header["username"] = USERNAME
soap.header["password"] = PASSWORD
soap.header["license"] = LICENSE
soap.header["accountID"] = self.account_id
soap.body = {
:accountID => self.account_id
}
end

...

When I run this I get a 404, which is fine, but it'd be nice to see the XML request. It's not being sent to console. Here is what is sent to console:

[15:02:49 miker@laughwhat-lm ~/optisol/src/rails/tools_app/trunk/lib] $ ruby apt_api.rb
D, [2012-02-22T15:02:59.981205 #2709] DEBUG -- : HTTPI executes HTTP GET using the httpclient adapter
(Savon::HTTP::Error)s/ree-1.8.7-2011.03/gems/savon-0.9.9/lib/savon/wasabi/document.rb:36:in `resolve_document': HTTP error (404): Invalid Request
from /Users/miker/.rvm/gems/ree-1.8.7-2011.03/gems/savon-0.9.9/lib/savon/wasabi/document.rb:15:in `xml'
from /Users/miker/.rvm/gems/ree-1.8.7-2011.03/gems/wasabi-2.1.0/lib/wasabi/document.rb:120:in `xml?'
from /Users/miker/.rvm/gems/ree-1.8.7-2011.03/gems/wasabi-2.1.0/lib/wasabi/document.rb:132:in `guard_parse'
from /Users/miker/.rvm/gems/ree-1.8.7-2011.03/gems/wasabi-2.1.0/lib/wasabi/document.rb:125:in `parser'
from /Users/miker/.rvm/gems/ree-1.8.7-2011.03/gems/wasabi-2.1.0/lib/wasabi/document.rb:36:in `endpoint'
from /Users/miker/.rvm/gems/ree-1.8.7-2011.03/gems/savon-0.9.9/lib/savon/client.rb:109:in `preconfigure'
from /Users/miker/.rvm/gems/ree-1.8.7-2011.03/gems/savon-0.9.9/lib/savon/client.rb:75:in `request'
from apt_api.rb:39:in `initialize'
from apt_api.rb:64:in `new'
from apt_api.rb:64

Any ideas? Thanks!