Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

508 questions
1
vote
1 answer

Ruby gem to quickly make a login validation

I have a webservice -somewhere- to validate passwords and stuff, and a module using SAVON that makes the corresponding questions in order to verify someone. The thing is, I don't have the login to work with my module. I was trying to use DEVISE to…
1
vote
2 answers

Rails/Ubuntu: SSLv3 read server certificate B: certificate verify failed

Two days ago, I started seeing this error on the production server of my app (on staging everything works fine). I found a lot of topics here on SO, but none of them solved this issue for me. Here's the piece of code that's causing this error…
user984621
  • 46,344
  • 73
  • 224
  • 412
1
vote
1 answer

In Savon with wsse authentication, my nonce token gets reused on subsequent requests

Perhaps I'm just not writing idiomatic code for savon, so please feel free to straighten me out, but I was trying to make multiple requests on the same client, as demonstrated in client=Savon::Client.new { …
JasonTrue
  • 19,244
  • 4
  • 34
  • 61
1
vote
1 answer

Savon returning NoMethodError error

I'm new to Savon, getting configure_headers': undefined method%' for nil:NilClass (NoMethodError) error when trying to send a soap request my code looks like this client = Savon.client do wsdl…
1
vote
0 answers

Adding a property to xml request

I'm using Savon Ruby gem to call a SOAP API, I have the request almost ready but one thing is bugging still. savonclient = Savon.client(wsdl: 'test.wsdl', endpoint: 'http://endpoint.biz/', log: true, log_level:…
bmes
  • 61
  • 2
  • 8
1
vote
1 answer

Savon Rails—How to pass multiple parameters?

I have this code: client = Savon.client(wsdl: wsdl) response = client.call(:post, message: { login: { userName: username, password: password }, data: { parameters: { key: "firstName", value: "Joe" } }) This works,…
Mirror318
  • 11,875
  • 14
  • 64
  • 106
1
vote
0 answers

Pass complex type parameter as object in Savon

I want to pass the object as a parameter in Savon call. I am passing hash with type as follows require 'savon' class Test def operation client = Savon.client(wsdl:'Web service wsdl link for eg http://google.com?wsdl') //in this case p_request is…
1
vote
2 answers

SOAP request works with SoapUI but not with Savon, how to debug?

I tested a SOAP API in SoapUI and it worked just fine. I then implemented the same request in my Rails 5 app using Savon. It worked for a few weeks and then stopped working. SoapUI still works so the API provider of course tells me that the error is…
almo
  • 6,107
  • 6
  • 43
  • 86
1
vote
0 answers

ruby script runs differently with bundle exec

I have a ruby/thor script that uses savon to make a soap request. If I run the script on my desktop with: thor my_script:my_action everything works fine. If I run the script with: bundle exec thor my_script:my_action I get an error when savon…
1
vote
1 answer

Posting XML to web service using SOAP Savon gem in ruby on rails

I'm working with ruby and Savon 2. I have been given the following SOAP example: POST /WebApi/Services/b2bapi.asmx HTTP/1.1 Host: api.nationsphotolab.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction:…
Bradley T.
  • 11
  • 1
  • 4
1
vote
1 answer

Can't specify header in SOAP call using Savon

When calling to an API for retrieving labels for post parcels I get frustrated with how hard it is to set up a SOAP call with ruby. I know that the following works from a sandbox environment: this is the SHOULD BE call
Code-MonKy
  • 2,026
  • 2
  • 14
  • 27
1
vote
0 answers

How to remove headers set by Savon?

I need to hit a SOAP service, however, the server won't accept my request but throws an error due to the below header and footer in the request. As per the logs, the request/response looks like below: SOAP **request**:…
cop
  • 93
  • 3
  • 10
1
vote
1 answer

Disable basic_auth for Savon WSDL call

Is it possible to disable authentication (basic_auth) when Savon attempts to retrieve the WSDL? It appears that this changed somewhere around 2.0 or 2.1 and now the authentication headers are always being sent, which the server I am calling throws…
Jared
  • 65
  • 1
  • 4
1
vote
0 answers

ruby / savon web service relative URL

I tried to use savon to write a client call tweb service. This is wsdl:
Roc
  • 11
  • 1
1
vote
2 answers

Passing an attribute to a SOAP request using Savon

I'm consuming a simple SOAP web service to get a small piece of HTML to be included in a Rails site. Unfortunately, I'm not particularly familiar with SOAP. I need to call the TopHtml() SOAP method on the endpoint below but I need to also pass an ID…
tristanm
  • 3,337
  • 2
  • 27
  • 40