i am having problems forming my soap document for the following. this is also my first time using soap. after some research and recommendations, savon seems the way to go.
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
I got the following error on a security header that is missing.
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>'
I've pasted the full response here. http://pastie.org/1349438
Could any kind soul help me out with this?