Questions tagged [savon]

Savon is a SOAP client for the Ruby programming language.

Savon is a SOAP client for the Ruby community.

508 questions
2
votes
1 answer

Savon request fail

I'm using savon 0.9.7 and ruby 1.8.7, I make this request: client = Savon::Client.new do wsdl.document = "http://localhost:3000/wsdl/service.asmx?WSDL" end response = client.request "Body3DGeneration" do soap.body = { :path => 'adsa', …
jrdi
  • 675
  • 1
  • 10
  • 26
2
votes
0 answers

making soap calls with savon, receiving HTTPClient::KeepAliveDisconnected: Connection reset by peer

I'm having issues calling a 3rd party SOAP client and I'm not sure what to investigate next. I was given their certificate and key to authenticate with. Any advice is much appreciated. The client is not a public CA, so the root certificate has to be…
gruuuvy
  • 2,028
  • 4
  • 31
  • 52
2
votes
1 answer

Losing xml data when parsing date and time in Savon

I'm using Savon in my RoR app. This is my call to the service: client = Savon::Client.new(MY_SOAP_CLIENT) response = client.request :wsdl, :get_history do soap.body =…
juanpabloe
  • 23
  • 5
2
votes
1 answer

How do I get the SAVON (ROR) SOAP Header to match my C# service requirements?

I have some code on my C# webservice, that checks the header string contains a valid user. The code is: MessageHeaders headers = OperationContext.Current.IncomingMessageHeaders; String soapHeader = headers.GetHeader("VerifyUser",…
IAmGroot
  • 13,760
  • 18
  • 84
  • 154
2
votes
0 answers

Adding env:mustUnderstand="1" attribute to Security tag in Header of SOAP request with Ruby Savon Library

Using the Savon SOAP library for Ruby, how can I add the common "env:mustUnderstand" attribute to the Security tag in the header of a SOAP request? By default, it isn't included in the tag. Here is my current test code: require 'rubygems' require…
YWCA Hello
  • 2,997
  • 4
  • 29
  • 40
2
votes
3 answers

What is the difference between these two SOAP requests?

I am sending a request to a SOAP API and unfortunately my knowledge of SOAP is limited. The following two requests both return a response but the response differs. The not working example returns a send_fax_response only. The working returns a…
maletor
  • 7,072
  • 7
  • 42
  • 63
2
votes
3 answers

Savon: Array of XML tags

I'm using Savon for SOAP requests and in some place of the SOAP request XML, I need to generate this piece of code: What's the best way to do this?
ildyone
  • 109
  • 7
2
votes
1 answer

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

The header in my SOAP doc needs to have an attribute like this: string string
Martin Stannard
  • 811
  • 8
  • 22
2
votes
1 answer

Can't get Savon to form the right XML

I've used SOAP before but many, many years ago and try to stay clear if I can help it. Short story... Using "Soap Client" OS X app I can get the response I wish. If I use client.request :foo_web_serivce, :language_count, :body => { :foo_app_id =>…
Zach Inglis
  • 1,242
  • 1
  • 14
  • 28
2
votes
1 answer

How to specify BasicHttpBinding with Savon (RoR)

Im getting this error: (a:6016) The message with Action 'xxx' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between…
content01
  • 3,115
  • 6
  • 41
  • 61
2
votes
1 answer

Savon + Rails 2 How to modify XML's request structure

I'm using Savon to develop a Web Service Client. Since I'm a beginner I decided to try at first with an example WDSL, which in my case is: http://www.webservicex.com/CurrencyConvertor.asmx?wsdl My controller is very simple: require 'savon' class…
tiiin4
  • 539
  • 4
  • 7
  • 19
2
votes
1 answer

Savon soap body problem

I am using savon 0.9.2 and ruby 1.8.7. I am trying to make a complex type soap request. I need to figure out how to code the soap body for the below type of request using ruby and savon. Basically one of the complextypes in the request extends…
Chiranjib
  • 21
  • 1
  • 4
2
votes
0 answers

Stub request with Savon

I'm trying to mock a SOAP request made with Savon. I can't seem to correctly mock the Savon response with my supplied fixture. Versions: savon (2.2.0) wasabi (~> 3.1.0) I had to lock the WSDL parser Wasabi to ‘3.1.0’ because of this:…
Kevin Etore
  • 1,046
  • 3
  • 14
  • 32
2
votes
0 answers

Connect to a SOAP API with savon and specify Domain

With SoapUI, I am successfully connecting to a SOAP API with details such as: Initial WSDL: http://11.11.1.11:7303/FOO/BAR/BAZ Username: foo Password: bar Domain: example But I am not sure how to do this with Savon. I am trying this (not quite…
JohnSmith1976
  • 536
  • 2
  • 12
  • 35
2
votes
1 answer

How can I get WebMock to match a body containing specific XML data using hash_including?

I have a Ruby (2.6.5) on Rails (5.2.3) application which is already successfully using Savon (2.12) to interact with FlightAware's FlightXML 2 API via SOAP/WSDL. However, I'm running into an issue while attempting to write Minitest tests for this…
bogardpd
  • 287
  • 1
  • 10