Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Signing Soap Headers with Savon

I'm using Savon to connect to SOAP with wsse signature. When trying to make call I recieve error that SOAP Header must be signed. header = { "Header1": { "@xmlns:ns2": &...
Gludek's user avatar
  • 13
0 votes
0 answers
37 views

Error running PHP SOAP client with XAMPP: syntax error, unexpected

I'm having trouble running a PHP SOAP client with XAMPP. When I try to launch the PHP client I get a "syntax error, unexpected error followed by a wsdl file loading error. <wsdl:service ...
Senateur Ndiaye's user avatar
2 votes
0 answers
183 views

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 ...
gruuuvy's user avatar
  • 2,109
0 votes
1 answer
78 views

Ruby Savon Parse Additional Option

I use Savon with SOAP requests. I try to send structure below with USD currency: 'urn2:Amt' => { 'urn2:InstdAmt Ccy="USD"' => 1.00 }, Unfortunately SAVON misinterprets this and send ...
Tomas's user avatar
  • 81
0 votes
1 answer
406 views

Ruby Savon 2 error: Savon::SOAPFault ((SOAP-ENV:Server) The namespace prefix is not allowed to start with the reserved string "xml".)

I am trying to connect to a company that uses SOAP remote procedure calls so I am using the Savon Gem. Here is what I have to setup the authentication: require 'savon' client = Savon.client( wsdl: '...
ben hall's user avatar
  • 1,619
0 votes
1 answer
312 views

Savon ruby gem getting Savon::SOAPFault on request

My code is pretty simple: client = Savon.client(wsdl: wsdl_url, follow_redirects: true) response = client.call(:obtener_cotizacion, message: { fecha: '2022-08-02' }) I get this error: Traceback (most ...
alebian's user avatar
  • 782
1 vote
1 answer
148 views

NoMeasureSelected CampaignPerformanceReportRequest Microsoft Ads

I'm trying to setup Microsoft ads to a project and get CampaignPerformanceReportRequest working on my project but I'm receiving NoMeasureSelected error. Not sure where the issue is. I added all the ...
Shalinga Manasinghe's user avatar
0 votes
1 answer
61 views

Getting Warning from require savon in ruby

Ubuntu 18.04, ruby 2.5.1p57 I have a ruby program that I use on a number of different linux system. On one it produces a screed of warning from require 'savon' elasticsearch@secesprd02:~$ ruby /usr/...
Russell Fulton's user avatar
0 votes
1 answer
57 views

WashOut::Soap parameters missing when upgrading to Rails 6 actionpack 6

I use Washout::SOAP in my Ruby Rails controller which has soap_action like this: soap_action 'action_name', :args => {:a => :string, :b => :string}, :return =>...
weijenli's user avatar
1 vote
0 answers
129 views

Savon does not populate XML with parameters

System: ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-darwin20] savon 2.12.1 My client setup looks like this def client @client ||= Savon.client do log true wsdl BASE_URL ...
Kson's user avatar
  • 76
0 votes
1 answer
356 views

SAVON setting envelope namespace in the envelope

i'm trying to add a namespace in my envelop for xmlns:api= and set the url as example: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://...
niartseoj's user avatar
  • 112
1 vote
1 answer
146 views

Savon gem shows (unknown keyword: :message)

I'm trying to adapt Ryan Bates's railscast http://railscasts.com/episodes/290-soap-with-savon?autoplay=true to use Savon to a wsdl, but I'm getting "ArgumentError (unknown keyword: :message)"...
user1644367's user avatar
0 votes
1 answer
191 views

Issues Formatting a SOAP API with Savon gem

I was terrified this day would come.. dealing with SOAP API's... This is a whole new realm for me, Ive done some digging with the SAVON gem but i cant seem to structure my call.. Essentially what I am ...
Shawn Wilson's user avatar
  • 1,351
0 votes
1 answer
389 views

Savon::SOAPFault: (s:Client) Element 'RequestContext' is missing from the header

I am using savon gem in rails to call purolator E-Ship soap APIs, gem 'savon', version 2.12.0 Here is my code sample where I am calling the actual API @client = Savon.client(wsdl: "#{Rails.root....
Junaid Sarfraz's user avatar
1 vote
0 answers
765 views

SOAP: HTTP Error 400. The request has an invalid header name

I am making a SOAP call with using a Ruby On Rails gem Savon and when making a request, I get this error message: Bad Request - Invalid Header HTTP Error 400. The request has an invalid header name. ...
user984621's user avatar
  • 47.9k
0 votes
1 answer
688 views

How to fix Net::ReadTimeout in SOAP API using Savon Ruby gem?

My script works but due to some reason it is throwing Net::ReadTimeout error. I presume due to high number of connections to the API. Any way to delay timeout using Savon? Thanks. wsdl = 'https://org....
emyatsuna's user avatar
0 votes
2 answers
11k views

`env:Client` SOAP Fault with fault string `Internal Error (from client)` on Savon 2.0 SOAP request with correct params

Using Savon 2.0 to make a SOAP request, I'm getting an env:Client fault code with the fault string Internal Error (from client): D, [2020-06-09T05:37:51.323537 #8] DEBUG -- : HTTPI TLSv1_2/none POST ...
Allison's user avatar
  • 2,301
2 votes
0 answers
708 views

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 ...
Kevin Etore's user avatar
  • 1,124
0 votes
1 answer
355 views

Can you manually set the SSL cert_store for the Savon client gem?

Context I'm currently trying to get my Savon client to read a peer certificate from the default system SSL cert folder. Basically, the effect I want to produce is calling set_default_paths on the ...
R. Salazar's user avatar
2 votes
0 answers
238 views

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 ...
JohnSmith1976's user avatar
1 vote
0 answers
145 views

multipart SOAP request in Savon

I need to build this multipart request in SAVON for calling executeProcess method of a SOAP service: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsim="http://...
Marco Gallo's user avatar
0 votes
1 answer
190 views

How use SOAP without Ruby

I am using Savon and it's working. My WSDL is: <definitions name="demo" targetNamespace="http://localhost:8090/demo"> <message name="DemoRequest"> <part name="param1" type="xsd:string"/...
Ramon Molina's user avatar
2 votes
1 answer
957 views

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 ...
bogardpd's user avatar
  • 287
0 votes
1 answer
355 views

constructing request data for SOAP endpoint without WSDL

The endpoint URL looks like this (not an actual url) https://webservices.abcde.com/ThirdParty/PostData.V55.ashx/ProcessRequest It does not have a WSDL, and in the documentation, there's a sample ...
Eric's user avatar
  • 2,695
0 votes
1 answer
14k views

Solved ! Error reading XMLStreamReader: Unexpected character SOAP API

I'm trying to communicate with SOAP API https://www.flussituristici.servizirl.it/Turismo5/app/ws/checkinV1?wsdl using Savon gem. so far I've implemented following code: def client client = ...
Nirajan Pokharel's user avatar
1 vote
1 answer
2k views

"dh key too small" with Savon ruby gem

after upgrading to Debian Buster, Savon fails with: SSL_connect returned=1 errno=0 state=error: dh key too small /var/www/ws/capistrano/shared/bundle/ruby/2.5.0/gems/httpi-2.4.4/lib/httpi/adapter/...
Lluís's user avatar
  • 1,307
1 vote
0 answers
164 views

Showing Savon SOAP(xml) Response In One Line in Rubymine Console

I've been using Savon as my SOAP client to request different APIs from Rails application. I've noticed that sometimes the response xmls are showing in multiple lines[see the pic] in console. But I ...
user5756014's user avatar
2 votes
0 answers
541 views

How to write middleware in Savon?

Is there a way to write middleware in Savon like Rack middleware or Faraday middleware? The only thing a found was Observers but its not what I looking for because savon observer getting called only ...
Martin's user avatar
  • 4,152
0 votes
1 answer
75 views

How to solve this error " (pre:svcFault) Service Fault"?

I am trying to call a SOAP api using Savon gem. I am getting the following error: "(pre:svcFault) Service Fault" I created both the header and message for the request. Here is the request sent from ...
iamzouz's user avatar
  • 109
0 votes
2 answers
2k views

Load file in rspec before block VS load them once

Today I'm tryng to speed up my tests suite. My application is basically a big integrator between systems so most of my tests are using Savon mocks like this RSpec.describe MyClass do describe 'a ...
jonnyjava.net's user avatar
0 votes
1 answer
597 views

Trying to filter Bing Ads API data based on Campaign Status using Savon gem in Ruby on Rails

I've been able to get this far without knowing about XML since the Savon gem translates Ruby code into XML, but now I'm stuck. I'm requesting a CampaignPerformanceReport from the API and I'm able to ...
Jordan Lagan's user avatar
0 votes
2 answers
896 views

Need help handling Timeout::Error in Savon

I'm building a connection between REST-API and SOAP API in Ruby (without Rails). For SOAP calls I use Savon gem, which is great. However, I cannot figure out from the docs, how does Savon handle ...
Dende's user avatar
  • 584
1 vote
2 answers
1k views

XML fails on &#x1E; character

When requesting data from my remote server it responds with a value inside a node with the following token &#x1E;, making the parsing process to fail. I manually removed the guilty string and it ...
damuz91's user avatar
  • 1,688
1 vote
1 answer
436 views

ruby Savon use camelcase instead snake

i'm using savon gem for SOAP request building, i need snake_case_elements, but when i inspect it seems converted to CamelCase, am i missing something here? Here is a result And how i did it: ...
Nerius Jok's user avatar
  • 3,189
0 votes
1 answer
334 views

Running out of memory parsing XML SOAP response in Rails with Savon and Nokogiri

I have a rails 4 webapp that is consuming a SOAP webservice endpoint. For each company, sends a request to get a list of resources (it doesn´t matter what kind, just information). The method sends ...
Rober's user avatar
  • 6,078
1 vote
2 answers
492 views

Update fieldPermissions with metadata api of Salesforce

I try to update the permissions on a field created from the API so that it is visible and usable. so I do this via the salesforce metadata API. responses = client.call(:update_metadata, message_tag: ...
William Boulay's user avatar
1 vote
1 answer
298 views

Bing ads api - savon error for get_ad_extensions_associations

Maintaining a gem to wrap bing ads api, I am using this wsdl from bing. Most api calls work fine so far, but I am stumbling upon the get_ad_extensions_associations one. What I type is: client.call( ...
apneadiving's user avatar
1 vote
1 answer
171 views

Per request namespaces in savon ruby gem

I need to send a request like: <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://tempuri.org/" xmlns:ns2="http://www.w3.org/2005/08/addressing"> <env:...
radubogdan's user avatar
  • 2,814
0 votes
2 answers
2k views

Soap Request Format when using Savon in ruby

I am dealing with a soap api which offers the following as an example of how the request XML should look: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soapenv="http://schemas....
Colin Brogan's user avatar
0 votes
2 answers
160 views

Searching savon response as nokogiri document returns an empty array

I try to parse savon's response as nokokiri document c = Savon.client(wsdl: 'http://test.fedresurs.ru/MessageService/WebService.svc?wsdl', digest_auth: ['demowebuser', 'Ax!761BN'], namespace: "http://...
nuT707's user avatar
  • 1,573
1 vote
2 answers
255 views

Savon array/hash confusion

When Savon parses XML: <MessageList> <TradeMessage ID="4850644"/> <TradeMessage ID="4850666"/> <TradeMessage ID="4850667"/> <TradeMessage ID="4850712"/> </...
nuT707's user avatar
  • 1,573
0 votes
1 answer
251 views

Savon: Unable to parse reponse body GZIP content encoding

I'm working with Savon and making a call to a service that should return a list of appointments - for some reason the response i'm getting back is un-parsable. However, when i try the same exact call ...
Robbo's user avatar
  • 1,302
0 votes
1 answer
97 views

decode file stream in savon client

I have a file stream generated by .xlsm file as savon response ruby. How do I decode or convert the stream and save it to file_name.xlsm? @body= "http://schemas.xmlsoap.org/soap/envelope/\">http:/...
Dal Rai's user avatar
0 votes
1 answer
280 views

problem with savon gem and special characters

I'm implementing a ruby interface to soap services connecting to a special database called yardi. In order to do that, I use the savon gem. Many of the required services have already been implemented....
lrleon's user avatar
  • 2,648
0 votes
1 answer
41 views

Using Savon 2.12.0, multiple responses arrive in an array, but a single reponse is a hash

I'm successfully calling an operation using Savon to get data from a SOAP endpoint. Each returned object is a hash of ~15 elements. When the API needs to return multiple objects, it returns them in ...
mvh's user avatar
  • 151
1 vote
0 answers
76 views

How to discover which TLSv1.2 cihpering method is used by Savon in a Rails application

In my RubyOnRails application I'm connecting to an external WebService (provided by the customer) through the excellent Savon gem. The provider is asking to me which cihpering method method I'm ...
jonnyjava.net's user avatar
0 votes
1 answer
367 views

invalid SOAP request needs

I'm using savon to make requests against a SOAP service. Regardless, I'm having trouble making Savon client call. below mentioned are my ruby code client = Savon.client( wsdl: "https://<...
Gagan's user avatar
  • 573
4 votes
1 answer
2k views

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 ...
Nikolay Terekhov's user avatar
0 votes
1 answer
166 views

How to authenticate oauth, Magento 2.0 SOAP in Ruby

Having a problem authenticating to Magento 2 SOAP with oauth credentials. For a magento 1.9 version this is very straightforward: client = Savon.client( wsdl: "https://example.com/api/soap/?wsdl=...
heldopslippers's user avatar
0 votes
1 answer
38 views

Savon::SOAPFault: (p448:B2BServiceException) com.uhg.ut.ues.b2b.services.B2BServiceException: An Active HTTP Session does not exist

I am working on an application and facing this issue. Savon::SOAPFault: (p448:B2BServiceException) com.uhg.ut.ues.b2b.services.B2BServiceException: An Active HTTP Session does not exist from /Users/...
user3305695's user avatar

1
2 3 4 5
11