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

SOAP: HTTP Error 400. The request has an invalid header name

I am making a SOAP call with using a Ruby On Rails gem Savon and when making a request, I get this error message: Bad Request - Invalid Header HTTP Error 400. The request has an invalid header name. It sounds pretty descriptive, but I am still not…
user984621
  • 46,344
  • 73
  • 224
  • 412
1
vote
0 answers

multipart SOAP request in Savon

I need to build this multipart request in SAVON for calling executeProcess method of a SOAP service:
1
vote
1 answer

"dh key too small" with Savon ruby gem

after upgrading to Debian Buster, Savon fails with: SSL_connect returned=1 errno=0 state=error: dh key too small /var/www/ws/capistrano/shared/bundle/ruby/2.5.0/gems/httpi-2.4.4/lib/httpi/adapter/net_http.rb:51:in `rescue in…
Lluís
  • 1,267
  • 1
  • 14
  • 36
1
vote
2 answers

How to use the savon gem with Magento SOAP API

How do I access the Magento SOAP API using the savon gem. Are there any examples that I can use to get going quickly? Thanks
demonchand
  • 11,091
  • 6
  • 21
  • 25
1
vote
0 answers

Showing Savon SOAP(xml) Response In One Line in Rubymine Console

I've been using Savon as my SOAP client to request different APIs from Rails application. I've noticed that sometimes the response xmls are showing in multiple lines[see the pic] in console. But I want to get the response xml shown in one line. I've…
user5756014
  • 301
  • 4
  • 16
1
vote
2 answers

XML fails on  character

When requesting data from my remote server it responds with a value inside a node with the following token , making the parsing process to fail. I manually removed the guilty string and it started working.
damuz91
  • 1,461
  • 2
  • 21
  • 37
1
vote
1 answer

ruby Savon use camelcase instead snake

i'm using savon gem for SOAP request building, i need snake_case_elements, but when i inspect it seems converted to CamelCase, am i missing something here? Here is a result And how i did it: gls_url =…
Nerius Jok
  • 3,059
  • 6
  • 21
  • 27
1
vote
2 answers

Update fieldPermissions with metadata api of Salesforce

I try to update the permissions on a field created from the API so that it is visible and usable. so I do this via the salesforce metadata API. responses = client.call(:update_metadata, message_tag: :updateMetadata, message: {metadata: { fullName:…
1
vote
1 answer

Is there a dummy guide for using Savon with Ruby?

Does anyone have a real dummy guide to using Savon with Ruby to consume SOAP web services?
femi
  • 974
  • 2
  • 13
  • 44
1
vote
1 answer

Bing ads api - savon error for get_ad_extensions_associations

Maintaining a gem to wrap bing ads api, I am using this wsdl from bing. Most api calls work fine so far, but I am stumbling upon the get_ad_extensions_associations one. What I type is: client.call( :get_ad_extensions_associations, message: {…
apneadiving
  • 114,565
  • 26
  • 219
  • 213
1
vote
1 answer

Savon/Ruby question: Variable context in block when initializing Client WSDL

I am creating a class to wrap around a Savon SOAP connection, as follows: class SOAPConnection attr_reader :url, :namespace def initialize(url, namespace) @url = url @namespace = namespace @client = Savon::Client.new do …
Dave Isaacs
  • 4,499
  • 6
  • 31
  • 44
1
vote
1 answer

Per request namespaces in savon ruby gem

I need to send a request like:
radubogdan
  • 2,744
  • 1
  • 19
  • 27
1
vote
2 answers

using handsoap or Savon

I created wsdl server with soap4r but facing unicode problems with it. so thought of trying savon or handsoap. Is there any resource where i can find how to define services and start a server(may be thin or something similar) with them?
goutham
  • 848
  • 2
  • 13
  • 27
1
vote
2 answers

Savon array/hash confusion

When Savon parses XML: It returns a hash {MessageList: TradeMessage: [{@id: '123'},...,{@id:…
nuT707
  • 1,543
  • 4
  • 17
  • 27
1
vote
0 answers

How to discover which TLSv1.2 cihpering method is used by Savon in a Rails application

In my RubyOnRails application I'm connecting to an external WebService (provided by the customer) through the excellent Savon gem. The provider is asking to me which cihpering method method I'm using because he doesn't want the AES256-SHA256…
jonnyjava.net
  • 912
  • 7
  • 23