Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

508 questions
1
vote
0 answers

Ruby Savon: Remove Soap Action from Request

I'm using Savon::Model in order to send a SOAP request. The final result I need look like this: Toronto …
1
vote
3 answers

Ruby: Savon SOAP Requests receives 400 and 415 errors

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 =…
Majiy
  • 1,890
  • 2
  • 24
  • 32
1
vote
1 answer

Ruby Savon Requests

@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…
SupaIrish
  • 766
  • 8
  • 17
1
vote
1 answer

Send UTF-16 encoded SOAP request with Ruby and Savon

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 …
spectro
  • 219
  • 1
  • 10
1
vote
1 answer

Savon body problem

require "savon" client = Savon::Client.new "http://www.brenda-enzymes.org/soap2/brenda.wsdl" response = client.request (:get_km_value) do |soap| soap.body = {'ecNumber' => '1.1.1.1'} end x = response[:get_km_value_response][:return] puts…
Palani Kannan
  • 1,613
  • 2
  • 18
  • 29
1
vote
2 answers

Cannot call web service methods via SOAP Connection (SAVON) in Ruby on Rails. Where am i going wrong?

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…
IAmGroot
  • 13,760
  • 18
  • 84
  • 154
1
vote
1 answer

NoMeasureSelected CampaignPerformanceReportRequest Microsoft Ads

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…
1
vote
0 answers

Savon Issue Relating to Corrupt Requests

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…
Sc0rpio
  • 189
  • 2
  • 4
  • 12
1
vote
1 answer

Ruby: How to prefix Namespaces in hash

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…
Ura
  • 2,173
  • 3
  • 24
  • 41
1
vote
0 answers

Savon does not populate XML with parameters

System: ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-darwin20] savon 2.12.1 My client setup looks like this def client @client ||= Savon.client do log true wsdl BASE_URL pretty_print_xml true ssl_verify_mode :none …
Kson
  • 76
  • 7
1
vote
0 answers

Savon SOAP: How to avoid 'soap:' prefix on request body tags?

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 =…
1
vote
1 answer

Savon gem shows (unknown keyword: :message)

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…
1
vote
1 answer

Savon: How can I specify a custom XML in a hash body for a SOAP request?

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…
LuisVM
  • 2,763
  • 3
  • 20
  • 22
1
vote
0 answers

Soap Action not parsed as expected

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…
content01
  • 3,115
  • 6
  • 41
  • 61
1
vote
2 answers

How to perform simple web service client with Ruby and Savon

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 …
tiiin4
  • 539
  • 4
  • 7
  • 19