I am trying to make a SOAP request using the ruby library Savon.
I am using the following code:
require "savon"
Savon.configure do |config|
config.soap_version = 2 # use SOAP 1.2
config.raise_errors = false
end
wsdl_logon =…
@rubiii has previously shown (Savon soap body problem) that you can customize Savon requests with
class SomeXML
def self.to_s
"xml"
end
end
client.request :some_action do
soap.body = SomeXML
end
But why would you use a class…
How do I encode the request in UTF-16? Here's what I have:
# Create Savon client
@client = Savon::Client.new do
wsdl.document = File.expand_path("account_list.wsdl", __FILE__)
end
# Set header encoding
…
I seem to be getting this error message:
(a:ActionNotSupported) The message with Action 'GetServices' cannot be
processed at the receiver, due to a ContractFilter mismatch at the
EndpointDispatcher. This may be because of either a contract…
I'm trying to setup Microsoft ads to a project and get CampaignPerformanceReportRequest working on my project but I'm receiving NoMeasureSelected error. Not sure where the issue is.
I added all the columns mention in the documentation to see if the…
I updated my Savon version to 0.9.6 and my server requests seem to be malforming. Before the update, I was using Savon 0.9.2.
I have a similar problem as someone mentioned in the post below, however, it differs in that the repeated items include…
I am in a situation where I need to find out the level of the hash and apply a namespace for all elements in that level.
This is the scenario:
I have an object which is populated with my data.
Next I convert the object to hash.
#convert Object to…
Savon is currently producing tags like this:
R211758537
How do I get tags like this, without the soap prefix?
R211758537
Here's the code I am using:
endpoint =…
I'm trying to adapt Ryan Bates's railscast http://railscasts.com/episodes/290-soap-with-savon?autoplay=true to use Savon to a wsdl, but I'm getting "ArgumentError (unknown keyword: :message)"
Step by step: brazilian mail…
In a SOAP Request, I need to specify repeated keys with different values like this:
soap.body = {:query => {
:fields => {
:string => 'Email',
:string => 'FirstName',
:string => 'LastName'
}
}
With this hash, the…
For some reason, if I try:
response = client.request 'Security_Authenticate' do
It doesn't work, the response returns any random fault message.
However, if I specify the SOAP Action URL:
response = client.request…
I'm trying to develop a simple example of a web service client in Ruby using Savon.
This is what I got so far:
class WebServiceController < ApplicationController
def index
puts "web_service: IN"
client = Savon::Client.new do
…