Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

503 questions
34
votes
7 answers

View Savon Request XML without Sending to Server

I'm using the Savon gem to make a SOAP request using code similar to what's below. It's working, but I would like to view/capture the request XML without actually making a call to their server. I can view it now after a request is made by sticking a…
Peter Brown
  • 48,818
  • 16
  • 106
  • 142
28
votes
4 answers

Why do instance variables seemingly disappear when inside a block?

Forgive me, guys. I am at best a novice when it comes to Ruby. I'm just curious to know the explanation for what seems like pretty odd behavior to me. I'm using the Savon library to interact with a SOAP service in my Ruby app. What I noticed is that…
Dan Tao
  • 119,009
  • 50
  • 280
  • 431
22
votes
1 answer

How to format Savon Request for Cybersource SOAP API

Trying to figure out how to format a request for Cybersource payments, using Savon and Ruby. I've been at this for a while now, with no luck. I keep getting requestMessage not supported I'm guessing it's due to how I'm passing in the parameters to…
Carl Weis
  • 5,424
  • 14
  • 59
  • 82
14
votes
1 answer

Ruby gem for consuming Webservices wsdl with xsd:import

We need to consume a webservices which got a WSDL that uses xsd:import for Data Types definitions. savon gem doesn't support as it uses wasabi. We are using Ruby 1.9.2 Could you please suggest me some gems. Regards Surendran
suren
  • 951
  • 4
  • 22
14
votes
2 answers

Passing Array Elements for Savon 2 (SOAP)

I'm trying to write code in Ruby with the Savon gem (v2) that fetches account information from a SOAP api, but I'm having an issue with passing an Array. CampaignIds is supposed to be an array of integers. Here is my code: client =…
Sam Lehman
  • 313
  • 3
  • 8
13
votes
4 answers

connect: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

I'm having a terrible time getting SSL to verify a certificate. I'm completely ignorant on how certificates work so that's a major handicap to begin with. Here's the error I get when running the script: c:/Ruby191/lib/ruby/1.9.1/net/http.rb:611:in…
r3nrut
  • 985
  • 2
  • 9
  • 27
9
votes
2 answers

how to set savon default timeout value

I am using savon to make some api calls but its taking long time to respond because of that i am getting time out errors.so is there any way to change the default value of timeout. I am using savon 0.7.9 ruby 1.8.7 and rails -v 2.3.2.
Lohith MV
  • 3,450
  • 8
  • 28
  • 42
9
votes
4 answers

Why is "wsdl" namespace interjected into action name when using savon for ruby soap communication?

I'm trying to access a SOAP service I don't control. One of the actions is called ProcessMessage. I followed the example and generated a SOAP request, but I got an error back saying that the action doesn't exist. I traced the problem to the way the…
konung
  • 6,637
  • 6
  • 50
  • 74
9
votes
1 answer

undefined method `configure' for Savon:Module

I'm getting the above error in a gem with this code snippet Savon.configure do |config| config.log = false config.log_level = :error HTTPI.log = false end This code used to pass in past runs on Travis, so I'm not sure why this changed when I…
Eric Hu
  • 17,470
  • 8
  • 49
  • 67
8
votes
3 answers

Case problem in SOAP message tag names using savon

I'm using Ruby 1.9.2 with savon 0.9.2 on Windows 7 Professional 64 bit. I need to call a web SOAP service that requires a security token that I get from a second web SOAP service. The code I use is as follows: require 'savon' client =…
Bob Groeneveld
  • 823
  • 1
  • 8
  • 19
8
votes
1 answer

Ruby/Savon: Having trouble with namespace for a soap request

I'm having trouble changing the namespace for the SOAP xml I'm building. I'm not sure how to change "xmlns:env=" to "xmlns:soapenv=" and "xmlns:tns=" to "xmlns:web=" What I'm trying to build:
Travis Frazier
  • 412
  • 3
  • 13
8
votes
2 answers

Rails - Savon set multiple namespaces

I'm using savon version 2 (with Ruby on Rails )to invoke a webservice and i need to inject some additional namespaces to my Envelope. Something like:
JMarques
  • 2,812
  • 4
  • 27
  • 49
7
votes
2 answers

How do I use savon nested attributes! hash?

I'm looking at using Ruby savon for SOAP. For purely masochistic reasons I have to deal with SOAP elements having attributes. So, no problem, there is an example on the savon docs site which highlights this ability: { :person => "Eve", :attributes!…
Sameer C
  • 2,537
  • 1
  • 16
  • 12
7
votes
1 answer

How to use objects with xsi:types in Savon

I'm trying to use Savon to make some SOAP requests, but I'm afraid I need to go beyond the basics somewhat. I need to send something along the lines of: value
Sérgio Gomes
  • 720
  • 5
  • 14
7
votes
2 answers

Does SAVON support client side certificates authentication

I'm evaluating savon for consuming webservices... but I dont find any information if I can use a SSL client side certificate to authenticate against the server that provides the SOAP webservices. I read the documentation but didn't find anything…
Fakada
  • 513
  • 9
  • 19
1
2 3
33 34