Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

508 questions
3
votes
2 answers

Savon breaks out of the box with "TypeError: can't convert String into Hash"

I just installed Savon 2.0.2 on Rails 3.2.11. When I try to create a new client in the console, I get TypeError: can't convert String into Hash: 1.9.3-p362 :003 > client = Savon::Client.new("http://www.webservicex.net/uszip.asmx?WSDL") TypeError:…
Jason Swett
  • 43,526
  • 67
  • 220
  • 351
3
votes
1 answer

How to use certificates in savon 2.0.2

I recently update on savon 2.0.2 and I'm using it for sending some xml via soap. I have to use certificates but after updating the syntax of the new savon version the certificates are ignored. Could someone help me with the new syntax - I'm…
user1961461
  • 41
  • 2
  • 3
3
votes
1 answer

Ruby Savon How to set verify_callback

I'm doing soap requests on devices that have self signed certs. I set verify_mode :none, but I still get "at depth 0 - 18: self signed certificate" warnings. I know if I can set the verify_callback, I can suppress these warnings. Can anyone tell me…
3
votes
1 answer

Savon OpenSSL::SSL::SSLError

I'm using ruby 1.8.7 with rails 2.3.11, savon 1.1.0, wasabi 2.5.0, httpi 1.1.1, and httpclient 2.2.7 Whenever I run my script: #!/usr/bin/env ruby require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment')) require…
Arwed
  • 1,755
  • 3
  • 16
  • 26
3
votes
1 answer

Make HTTPS call with Savon

I am trying to use a SOAP service that insists on HTTPS for credentials being passed to their :login. Using Savon, I am not seeing how to setup for HTTPS and therefore it is failing. Can someone kindly point out how to use Savon to do calls over…
David Lazar
  • 10,865
  • 3
  • 25
  • 38
3
votes
3 answers

Read value from a Savon response?

I want to read the value of customer.customer_info_id from the following response. My response also includes namespaces:
Suriyakanth
  • 269
  • 4
  • 13
2
votes
0 answers

How to parse identically named XML elements as Array in Ruby?

I'm consuming a SOAP service in Ruby using Savon which returns a response with identically named elements as single element instead of an Array. How do i retrieve it as Array? ```
Sathish
  • 20,660
  • 24
  • 63
  • 71
2
votes
1 answer

Ruby and Savon Error: POST method not supported by this URL

I am a newbie to savon and SOAP. I am trying to create a request to netsuite wsdl service. When I run it, I get the following error: D, [2012-02-23T15:05:08.714815 #2284] DEBUG -- : HTTPI executes HTTP POST using the httpclient adapter D,…
yannb
  • 75
  • 1
  • 7
2
votes
3 answers

How do I add an attribute to a SOAP header with Savon?

I need to add this attribute (xmlns:wsa="http://www.w3.org/2005/08/addressing") to the soap header, like this: How do I do this, using Savon?
Magne
  • 16,401
  • 10
  • 68
  • 88
2
votes
1 answer

Test local web service with Savon

I'm writing a gem to add support for SOAP services to Ruby (I hate myself for doing this but, you know, legacy systems are feeling lonely and gotta talk to someone), and I'm wondering if there's a way I can write some tests using Savon as a client…
Fábio Batista
  • 25,002
  • 3
  • 56
  • 68
2
votes
1 answer

Is there a SOAP gem that doesn't depend on nokogiri?

I have tried the savon gem and it works fine. Unfortunately, I cannot use it for the actual application as we cannot use Nokogiri. I looked at soap4r and it seems to be very old. I also looked at handsoap and have yet to fully test it for my…
vinothini
  • 2,606
  • 4
  • 27
  • 42
2
votes
1 answer

How to remove "SOAPAction" HTTP header from Savon request

How would I remove the HTTP headers from a Savon request for example client.request 'v5:ProcessShipments' do client.http.headers["SOAPAction"] = "example_post" end This would generate DEBUG -- : SOAPAction: example_post And the server would…
Karl Entwistle
  • 933
  • 2
  • 13
  • 25
2
votes
0 answers

Ruby Savon compared to Java Axis

I'm trying to use the Yodlee soap APIs. They give examples with Apache Axis Any perspectives on using Ruby and Savon versus Java and Axis? With Ruby/Savon, it seems that the best thing to do is to skip using the WSDL files and generate the requests…
justingordon
  • 12,553
  • 12
  • 72
  • 116
2
votes
3 answers

Ruby - Savon web services authentication

I'm attempting to utilize the ruby gem Savon to connect to a web service provided by propertyware (http://propertyware.com/apidocs/Getting-Started). I've successfully connected to the service via SoapUI and executed an echoString request. When I…
Bobby B
  • 2,372
  • 3
  • 24
  • 31
2
votes
0 answers

savon soap request execution expired

I have a very simple ruby script that looks like this: require 'savon' client = Savon::Client.new do wsdl.document = "http://server/app/app.svc?wsdl" end If I then do something like: client.wsdl.operations I get all of the operations from my…
Erix
  • 7,059
  • 2
  • 35
  • 61