Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

508 questions
7
votes
1 answer

SSL mode flags - verification of certificates: is it safe to use :none?

I am writing a soap request over SSL using Savon and HTTPi, a Ruby soap client and an interface for Ruby HTTP clients, respectively. Here's the code: client = Savon::Client.new(original_class.constantize.wsdl_url) client.http.auth.ssl.cert_key_file…
DWS
  • 215
  • 2
  • 10
7
votes
1 answer

Rails 3.1 Savon soap request giving Timeout::Error: Timeout::Error ut using curl i get response

I am having trouble to construct the soap client using savon in rails 3.1. But i am able to successfully get the response when i try to make the request from the curl command line. My curl request from command line look like this curl -d…
6
votes
3 answers

Savon SSL Issue

I'm struggling to get the Savon gem to connect to one of our servers. I keep getting an error stating I can't get past the ssl. I've read numerous tutorials and fixes but none seem to work. Any help appreciated - this will make my Monday if I…
Northband
  • 433
  • 1
  • 6
  • 11
6
votes
2 answers

"HTTPI tried to user the httpi adapter" error using Savon SOAP library

I am using Savon to write a Ruby interface to a SOAP service. It appears to be working, but I am getting a couple of DEBUG messages appearing on the command line D, [2011-02-15T16:33:32.664620 #4140] DEBUG -- : HTTPI tried to use the httpclient…
Dave Isaacs
  • 4,499
  • 6
  • 31
  • 44
6
votes
1 answer

SOAP call in Ruby on Rails using Savon gets weird around the envelope and main operation

In a rails project using Savon.rb I am trying to make a very complex SOAP call. At least complex to the extend that Savon builders are to much trouble so I decided to manipulate the :xml directly. First of I initiate the client: @client =…
Code-MonKy
  • 2,026
  • 2
  • 14
  • 27
6
votes
2 answers

consume soap service with ruby and savon

I'm trying to use ruby and Savon to consume a web service. The test service is http://www.webservicex.net/WS/WSDetails.aspx?WSID=9&CATID=2 require 'rubygems' require 'savon' client = Savon::Client.new…
tom
  • 83
  • 1
  • 5
6
votes
2 answers

Sending raw XML using Savon 2

I'm trying to use Savon to send requests to a webservice. The service I'm consuming requires nested namespaces, and I haven't figured out yet how to provide them on a request. I've tried to craft the request by hand (with nokogiri, actually) and…
loopbackbee
  • 21,962
  • 10
  • 62
  • 97
6
votes
2 answers

The ruby def << syntax for defining methods

Im trying to work my way through the Savon gem's source code and I found this line.. def initialize @documents = [] end def <<(document) @documents << document end I was curious as to what the def << method does. And why he might have elected…
Davey
  • 1,093
  • 1
  • 13
  • 25
6
votes
3 answers

cannot set SOAP header parameters on savon call

I'm using savon 2.2 for making SOAP calls. Initialize: client = Savon.client( wsdl: SOAP_WSDL, endpoint: SOAP_URL) I can make a SOAP call like this and it works fine: resp = client.call(:login, message: { username: SOAP_USER, password:…
Ya.
  • 1,671
  • 4
  • 27
  • 53
5
votes
2 answers

Read response with Nokogiri from a SOAP call with Savon

I have make a soap-call with Savon. This works fine and give the following response:
user1237586
  • 53
  • 1
  • 4
5
votes
1 answer

Savon ruby gem adds ins0 to tags

Using the savon gem, I get the following request XML:
Artem Kalinchuk
  • 6,502
  • 7
  • 43
  • 57
5
votes
2 answers

Savon: How to change header from being to or something different

In Savon, is there a way to change to be or anything different? I've tried in the request block putting an additional header tag like this: soap.header['soap:Header'] But that won't work. I've browsed Savon Docs and…
LuisVM
  • 2,763
  • 3
  • 20
  • 22
5
votes
0 answers

Rails (with Savon): How to make TLS request (and not SSLv3)?

I have a Rails (5.1.3) app that uses Savon (2.11.0) for communicating with a 3rd party service. This service requested me recently that in order to use it, I need to make all my requests with TLS 1.2. How do I do that - do I have to set up something…
user984621
  • 46,344
  • 73
  • 224
  • 412
5
votes
1 answer

ruby savon and wsdl namespacing

I have an issue that I believe is in regards to namespaces. The WSDL can be downloaded from here: http://promostandards.org/content/wsdl/Order%20Shipment%20NotificationService/1.0.0/OSN-1-0-0.zip When the request is generated it looks like…
5
votes
2 answers

Parsing SOAP response using SAVON response.to_hash conversion method

I am having trouble parsing a SOAP response. Here is my code: require 'rubygems' require 'savon' client = Savon::Client.new "http://1.2.3.4/xyz/abcd/fsds.wsdl" res = client.query_unpaid_assesments do |soap,wsse| soap.namespaces["xmlns:SOAP-ENV"]…
Paula S.
  • 51
  • 1
  • 4
1
2
3
33 34