我在为以下内容形成我的肥皂文档时遇到问题。这也是我第一次使用肥皂。经过一些研究和建议,savon 似乎是要走的路。
require 'savon'
client = Savon::Client.new("https://webservice.exacttarget.com/etframework.wsdl")
client.wsdl_soap_actions
# [:create, :retrieve, :update, :delete, :query, :describe, :execute, :perform, :configure, :schedule, :version_info, :extract, :get_system_status]
response = client.retrieve do |soap|
soap.input = "Retrieve"
soap.action = "Retrieve"
end
我在缺少的安全标头上收到以下错误。
Savon::SOAPFault: (q0:Security) Security requirements are not satisfied because the security header is not present in the incoming message.
from /home/kj/.rvm/gems/ruby-1.9.2-p0/gems/savon-0.7.9/lib/savon/response.rb:141:in `handle_soap_fault'
from /home/kj/.rvm/gems/ruby-1.9.2-p0/gems/savon-0.7.9/lib/savon/response.rb:81:in `initialize'
from /home/kj/.rvm/gems/ruby-1.9.2-p0/gems/savon-0.7.9/lib/savon/client.rb:95:in `new'
from /home/kj/.rvm/gems/ruby-1.9.2-p0/gems/savon-0.7.9/lib/savon/client.rb:95:in `method_missing'
from (irb):8
from /home/kj/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>'
我在这里粘贴了完整的回复。http://pastie.org/1349438
任何善良的灵魂可以帮助我解决这个问题吗?