I am writing a soap request over SSL using Savon and HTTPi, a Ruby soap client and an interface for Ruby HTTP clients, respectively. Here's the code:
client = Savon::Client.new(original_class.constantize.wsdl_url)
client.http.auth.ssl.cert_key_file…
I am having trouble to construct the soap client using savon in rails 3.1. But i am able to successfully get the response when i try to make the request from the curl command line.
My curl request from command line look like this
curl -d…
I'm struggling to get the Savon gem to connect to one of our servers. I keep getting an error stating I can't get past the ssl. I've read numerous tutorials and fixes but none seem to work.
Any help appreciated - this will make my Monday if I…
I am using Savon to write a Ruby interface to a SOAP service. It appears to be working, but I am getting a couple of DEBUG messages appearing on the command line
D, [2011-02-15T16:33:32.664620 #4140] DEBUG -- : HTTPI tried to use the httpclient…
In a rails project using Savon.rb I am trying to make a very complex SOAP call. At least complex to the extend that Savon builders are to much trouble so I decided to manipulate the :xml directly.
First of I initiate the client:
@client =…
I'm trying to use ruby and Savon to consume a web service.
The test service is http://www.webservicex.net/WS/WSDetails.aspx?WSID=9&CATID=2
require 'rubygems'
require 'savon'
client = Savon::Client.new…
I'm trying to use Savon to send requests to a webservice. The service I'm consuming requires nested namespaces, and I haven't figured out yet how to provide them on a request.
I've tried to craft the request by hand (with nokogiri, actually) and…
Im trying to work my way through the Savon gem's source code and I found this line..
def initialize
@documents = []
end
def <<(document)
@documents << document
end
I was curious as to what the def << method does. And why he might have elected…
I'm using savon 2.2 for making SOAP calls.
Initialize:
client = Savon.client(
wsdl: SOAP_WSDL,
endpoint: SOAP_URL)
I can make a SOAP call like this and it works fine:
resp = client.call(:login, message: { username: SOAP_USER, password:…
In Savon, is there a way to change
to be
or anything different?
I've tried in the request block putting an additional header tag like this:
soap.header['soap:Header']
But that won't work.
I've browsed Savon Docs and…
I have a Rails (5.1.3) app that uses Savon (2.11.0) for communicating with a 3rd party service. This service requested me recently that in order to use it, I need to make all my requests with TLS 1.2.
How do I do that - do I have to set up something…
I have an issue that I believe is in regards to namespaces. The WSDL can be downloaded from here: http://promostandards.org/content/wsdl/Order%20Shipment%20NotificationService/1.0.0/OSN-1-0-0.zip
When the request is generated it looks like…
I am having trouble parsing a SOAP response.
Here is my code:
require 'rubygems'
require 'savon'
client = Savon::Client.new "http://1.2.3.4/xyz/abcd/fsds.wsdl"
res = client.query_unpaid_assesments do |soap,wsse|
soap.namespaces["xmlns:SOAP-ENV"]…