Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

508 questions
2
votes
1 answer

SOAP + SSL + Ruby Savon - HTTPClient::ConnectTimeoutError: execution expired

I am trying to get a simple ruby script to send requests to a SOAP API but I am not able to get responses back. This is what I am trying to do: require 'date' require 'savon' # Create the client client = Savon::Client.new do wsdl.document =…
carvil
  • 199
  • 4
  • 12
2
votes
1 answer

Soap Custom XMl in Ruby with Savon

I need the request body to look as such: How do I add the additional attributes to ? Additionally, how do you change the encoding from UTF-8…
spectro
  • 219
  • 1
  • 10
2
votes
0 answers

How to write middleware in Savon?

Is there a way to write middleware in Savon like Rack middleware or Faraday middleware? The only thing a found was Observers but its not what I looking for because savon observer getting called only once before request was made. In Faraday for…
Martin
  • 4,042
  • 2
  • 19
  • 29
2
votes
2 answers

Parsing Savon SOAP response with multiRef

I am attempting to access a SOAP service using the Ruby gem Savon. I can connect to the service and make a request and receive the response, but I cannot parse the response. The response contains multiple href references to multiRef elements. When I…
Dave Isaacs
  • 4,499
  • 6
  • 31
  • 44
2
votes
0 answers

Multiple Endpoints (for replicated SOAP Servers) with SAVON

I am trying to make a SOAP request to a remote SOAP Server using the Savon gem in rails. The SOAP Server is replicated on three instances with different IP Addresses, i.e. XXX.XXX.XXX.1, XXX.XXX.XXX.2 and XXX.XXX.XXX.3. I am able to explicitly…
Pledges
  • 83
  • 9
2
votes
1 answer

EOFError: end of file reached calling a SOAP API via Savon ruby client

The mentioned error comes calling an API behind a firewall but and I am trying to access the API from an EngineYard instance. The EngineYard instances IPs are white listed in their firewall. client = Savon.client(wsdl:…
Amit Patel
  • 15,609
  • 18
  • 68
  • 106
2
votes
2 answers

Savon—configure to use TLS 1.2

I'm working on an old project using Savon to connect to the SalesForce api. I'm getting this error: UNSUPPORTED_CLIENT: TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https How do I…
Mirror318
  • 11,875
  • 14
  • 64
  • 106
2
votes
0 answers

How to create SOAP nested headers with SAVON

I would like to generate following soap header with SAVON but cannot really find any proper documentation for it any help would be appreciated. 4.0 *******
mr. Holiday
  • 1,780
  • 2
  • 19
  • 37
2
votes
1 answer

advice on ruby rails authentication approach using web service for authentication and session management

I am a beginner with ruby on rails and a little confused as to the best authentication approach to take for: 1) Securely pass login credentials user has entered in browser to the web service call (using http basic auth in the savon gem). 2) Use the…
2
votes
0 answers

Ruby 'savon_model' gem soap request - initial request is anonymous. Second authenticated request returns successful response but times out

I am just starting out in the ruby on rails world and have managed to get the below model to make a request and return a response. It uses the 'savon_model' gem which has 'savon', 'httpi' and 'httpclient' gems as dependencies. class…
2
votes
0 answers

(a:InternalServiceFault) Object reference not set to an instance of an object

I try to connect soap via savon, I get an error: (a:InternalServiceFault) Object reference not set to an instance of an object. Extracted source (around line #85): def raise_soap_and_http_errors! raise soap_fault if soap_fault? …
2
votes
1 answer

Use Savon SOAP to investigate parameters

In order to do some investigative and debugging work, I would like to find out about the required and optional methods for a SOAP with WSDL. In that WSDL, all required and optional parameters foor each SOAP action, as well as their type and form,…
berkes
  • 26,996
  • 27
  • 115
  • 206
2
votes
5 answers

using savon with exacttarget's web service

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 =…
crayfish
  • 147
  • 1
  • 3
  • 10
2
votes
1 answer

Why does savon client.call use a GET request with a payload instead of a POST?

client.call(:schedule_email_message, xml: '') # actually a GET request, with payload. Why not a POST request? savon gem version: 2.11.1
Magne
  • 16,401
  • 10
  • 68
  • 88
2
votes
1 answer

savon httperror 302 rails 3.2

I am using savon 2.11.1 gem to get soap request and responses in my rails application. I am creating client Object using Savon.client(wsdl: "sample_url", ssl_verify_mode: :none) and invoking client.call(:method_name, hash) When I invoke call…
anusha
  • 2,087
  • 19
  • 31