Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

508 questions
5
votes
2 answers

Savon ignores namespace_identifier attribute

Am trying to re-write written by savon body namespace - ins0 I have this client variable: client = Savon.client(wsdl: "https://integcert.synxis.com/interface/Contracts/ChannelConnect2004.wsdl", log_level: :debug, log: true, pretty_print_xml: true,…
mr.freeman13
  • 93
  • 1
  • 4
5
votes
2 answers

Savon with a custom binding

I have the lovely task of working with a hefty SOAP api with Rails. The SOAP service has three different bindings; wsHttpBinding, wsHttpBinding with x509, and a custom binding. I'm able to hit two of the end points with just wsHttpBinding, but the…
KevinM
  • 1,799
  • 4
  • 28
  • 58
5
votes
1 answer

Rspec + savon + vcr not recording

I can't record anything with vcr, I have such setup: spec_helper.rb require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'spec/cassettes' c.hook_into :webmock c.configure_rspec_metadata! c.default_cassette_options = { :record =>…
zrl3dx
  • 7,699
  • 3
  • 25
  • 35
5
votes
1 answer

How to write SOAP Authentication header with Ruby Savon

I am making calls to a SOAP based API for the first time, and I have the following info from the documentation: In your client, construct your authorization header as follows: 1 Concatenate the user name and password, for example: …
Luigi
  • 5,443
  • 15
  • 54
  • 108
5
votes
2 answers

Cucumber / Savon omit or remove logging output

While running a cucumber test I am getting (in addition to the test results) a lot of debug/log related output in the form: D, [2013-03-06T12:21:38.911829 #49031] DEBUG -- : SOAP request: D, [2013-03-06T12:21:38.911919 #49031] DEBUG -- : Pragma:…
obaqueiro
  • 982
  • 12
  • 29
5
votes
1 answer

SOAP client with Ruby and Savon: How to add EncodingType attribute in Nonce element

I need to create a ruby web service client(with Savon) to make a soap call to a web service which requires the EncodingType in the Nonce. So the correct soap message will have the Nonce element like this: ......
Don
  • 555
  • 3
  • 12
5
votes
2 answers

Accessing the request body of a SOAP request with Savon (Ruby on Rails)

I'm using Savon gem in Ruby on Rails to communicate with a wsdl WS. Everything is working fine, but I want to log the request XML using a custom log, i.e. not Rails or Savon logger. My code looks something like this: response =…
Marcus W
  • 589
  • 6
  • 11
4
votes
2 answers

Using Ruby to connect to a Microsoft SOAP web service that requires a username, password and a security certificate (.cer file) to connect to it

First a little background: I have already managed to connect to a Microsoft SOAP web service using C#. To use this web service, I have to supply a username and a password in the C# code. I also have to install a security certificate (in .cer format)…
Enchilada
  • 3,859
  • 1
  • 36
  • 69
4
votes
1 answer

API Call With Savon SOAP Client Results In ContractFilter mismatch at the EndpointDispatcher Error

I've run into an issue where the Savon Ruby Gem generates a SOAP API call that fails, however when I copy and paste the exact same XML message into SOAP-UI it succeeds. I send this message:
Frank
  • 18,432
  • 9
  • 30
  • 30
4
votes
2 answers

Overriding a WSDL's "soap:address location" value?

Is it possible to override the "address location" value in a WSDL? I need to supply a dynamic user/password within the URL. This certainly doesn't work: client = Savon::Client.new("example.wsdl") client.http.url = "https://foo:bar@example.com"
chuck son
  • 194
  • 2
  • 8
4
votes
1 answer

Ruby Savon binding problems

I am consuming webservices with Savon and the WSDL comes with 2 bindings. How do I specify which binding to use in Savon? One of them is http and the other one is https. I am trying to use the https service. The information on wsdl
revolver
  • 2,385
  • 5
  • 24
  • 40
4
votes
1 answer

Sending a file with a SOAP request in Ruby

I am trying to send a pdf file along with a SOAP request using the Savon gem. All the similar questions I found are either 5+ years old (Savon v1) or without any answer. While testing the request in SoapUI I was able to successfully send a file with…
4
votes
0 answers

savon multiple namespace in body

I am new to Savon2 and passing wsdl url to the Savon.Client, and getting proper response in header, but I am not getting how to pass multiple namespace to the body: Savon.client(wsdl: 'https://someUrl.com/abcd?wsdl', ssl_verify_mode: :none,…
jain77
  • 173
  • 1
  • 7
4
votes
1 answer

SOAP post() operation gets Java nullptr exception

I'm having an issue with Ruby code posting SOAP using Savon I have a parameter XML_BODY which apparently is not being sent, or, if it is, looks null to the Java code receiving it (if I try to return "TEST"+XML_BODY, the response shows "TEST…
dwn
  • 543
  • 4
  • 15
4
votes
2 answers

Ruby Savon Gem change logging configuration

I've tried changing the logging on Savon when running it against a WSDL, but have been unsuccessful in changing the logging level. I read the docs: http://rubiii.github.com/savon/#global_configuration I did this: Savon.configure do |config| …
nictrix
  • 1,483
  • 1
  • 17
  • 34
1 2
3
33 34