Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

508 questions
4
votes
2 answers

Talking with a SOAP service using Savon gem in Ruby

I'm trying to communicate with a soap service and I know that I should send a SOAP Envelope like this: POST /webpay_test/SveaWebPay.asmx HTTP/1.1 Host: webservices.sveaekonomi.se Content-Type: text/xml; charset=utf-8 Content-Length:…
Allen Bargi
  • 14,674
  • 9
  • 59
  • 58
4
votes
2 answers

Modifying SOAP XML namespace with Savon gem

I'm attempting to modify one of the namespaces in my Savon SOAP call. Here is how my request looks: HTTPI GET request to www.intg.pathway.verosapps.com (excon) SOAP request: https://www.intg.pathway.verosapps.com/VerosPathway.svc SOAPAction:…
Brian Smith
  • 403
  • 4
  • 14
4
votes
0 answers

How to connect to an xml/soap web service via SSL with mutual auth?

I'm trying to consume a web service with a certificate, sending a XML/SOAP, via SSL with mutual authentication. I've tried savon and net/http, but I'm stopped with the same error: SSL_CTX_use_PrivateKey: key values mismatch…
4
votes
1 answer

Need help translating SOAPUI request into Ruby code using Savon gem

I'm working on a SOAP API which has two operations, and each operation requires API keys and bunch of other attributes. So, I've been able to make request via SOAPUI, but I'm having trouble translating that into ruby code using savon gem(Version…
Rahul Roy
  • 473
  • 1
  • 6
  • 17
4
votes
2 answers

Can Savon allow redirects? 302 "Error"

Is it possible to make Savon allow redirects? I am currently receiving a 302 HTTP Error, but in reality this should just be a redirect instead of an error.
Luigi
  • 5,443
  • 15
  • 54
  • 108
4
votes
1 answer

Savon 2.1.0 basic auth not functioning

I am trying to access a SOAP service which has the following charateristics: 1. WSDL is available without authentication 2. The service is accessible over https with basic_auth 3. According to the SOAP service, the "Authorization" header needs to be…
Andrew
  • 203
  • 2
  • 10
4
votes
0 answers

NTLM support for Savon

I'm using Savon to communicate with SharePoint using web services. Everything is working fine if SharePoint web application supports basic authentication, but if I change it to NTLM it fails. It fails at line newclient.http.auth.ntlm(username,…
Baba
  • 41
  • 1
4
votes
2 answers

Best practice to store web service password

Scenario: A web application (RoR 3.2) needs to talk with a remote web service (SOAP, using Savon gem). The web service requires username and password. Communication is SOAP, traffic is through a VPN (no SSL for SOAP). I need to store the password…
kranz
  • 599
  • 1
  • 6
  • 23
4
votes
3 answers

Can the Ruby HTTPI library be configured to follow redirects?

I am using the Savon library which in turn uses HTTPI, but HTTPI considers only HTTP status codes 200..299 as successful. Unfortunately, the SOAP server I am connecting to uses HTTP 302 Found to redirect its clients to other URLs. Is there a way I…
f.ardelian
  • 6,716
  • 8
  • 36
  • 53
3
votes
1 answer

How to retain order in XML Array to Hash conversion?

I'm trying to parse XML in Ruby using Nori, which internally uses Nokogiri. The XML has some tags repeated and the library parses repeated tags as Arrays and non-repeated tags as normal elements (Hash) a
Sathish
  • 20,660
  • 24
  • 63
  • 71
3
votes
2 answers

Generating the DigestValue element of wsse-security with ruby/savon

I need to connect to a web service that has wsse security and need to generate all the hashes and tokens by hand because savon doesn't have this functionality yet. The thing that drives me insane is the signature.
3
votes
3 answers

Filter products with API Magento in Ruby on Rails with Savon gem (SOAP)

I am using this code for my rails app with the API of Magento. Everything is fine except for one thing, i need filter the products by arguments of the Magento API but i don't know how :( Obviously i have tested with more solutions (array, hash,…
skozz
  • 2,662
  • 3
  • 26
  • 37
3
votes
1 answer

How to stop Savon from adding prefixes to soap.body

This is how I am creating a a client: @client = Savon::Client.new do wsdl.document = my_document wsdl.endpoint = my_endpoint end and this is how I'm getting a response: @response = @client.request :the_action do soap.body = xml soap.body =…
David
  • 7,310
  • 6
  • 41
  • 63
3
votes
1 answer

Savon fault response in SOAP Reques: "The message with Action 'x' cannot be processed at the receiver..."

I'm using Savon for a Web Service Client implementation. However, I get this message: (a:ActionNotSupported) The message with Action 'SearchCars' cannot be processed at the receiver, due to a ContractFilter mismatch at the …
content01
  • 3,115
  • 6
  • 41
  • 61
3
votes
1 answer

Java vs Ruby for SOAP handling

I need to make a decision between using Ruby vs. Java for SOAP integration. My entire web application is built on Ruby on Rails, and there is a significant back-end component that has to integrate with legacy systems using SOAP. Java has extensive…
Nicolas M.
  • 789
  • 1
  • 13
  • 23