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

How do you deal with nested namespaces in Savon?

If I have the following SOAP request:
Test Test
  • 2,831
  • 8
  • 44
  • 64
2
votes
1 answer

Why savon :attributes! not working with an object called Objects

When supplying savon with: hash = { "Objects" => { //stuff here }, :attributes! => { "Objects" => {"xsi:type" => "Something"}} } I get: ... When supplying savon with anything else i get the…
user618589
  • 83
  • 1
  • 7
2
votes
0 answers

Send and Receive DIME attachments with SOAP using Ruby

I am successfully using Ruby with Savon to communicate with a set of SOAP services, but it turns out that in order to send and receive attachments the service expects them to use DIME encapsulation. Has anyone managed this using Ruby? If not, what…
2
votes
3 answers

Rails Savon SOAP Authentication

I am developing on Rails 3 and using Savon(savonrb.com) I need to connect to Web Services via SOAP Web Services require authentication I can connect but can't get authonticated... I used SOAP UI for testing & all works fine. Here how my Rails code…
Oleg B
  • 85
  • 2
  • 6
2
votes
1 answer

Ruby - Rails - Savon structure SOAP XML body

In Savon how to creating an array of tags based on number of elements in item_id? Any other way for this? item_id = "abc, def, xyz" n = item_id.split(,).length #ItemList shall be of n times by creating ItemList for each soap.body = { …
Majoris
  • 2,963
  • 6
  • 47
  • 81
2
votes
1 answer

How to define a class wide rescue method for Timeout::error?

I have a class that uses savon as a gem to speak with a SOAP API. And from times to times the server is unreachable so the methods that implement the soap methods throw a Timeout::Error. Its not a problem to implement a rescue like this: begin …
davidb
  • 8,884
  • 4
  • 36
  • 72
2
votes
2 answers

Remove namespace from Savon SOAP request

I've this code that uses Savon that I'm trying get to work. require "savon" require "time" Gyoku.configure do |config| config.convert_symbols_to(&:tap) end client =…
Linus Oleander
  • 17,746
  • 15
  • 69
  • 102
1
vote
2 answers

specify proxy authentication with savonrb

I'm using savon to communicate with a soap web service. It all works well, and I now need to get the ruby code into production where we have to go through a proxy server. This proxy server requires authentication. So my question is, how can I go…
hendrikswan
  • 2,263
  • 1
  • 20
  • 25
1
vote
2 answers

How to call this secure webservice WDSL from Savon in Ruby?

I have some working PHP example (see below) for accessing a secure webservice. I am trying to access the webservice with Savon. First, I tried: >> client = Savon::Client.new("https://secure.service.com/soa/soap/?WSDL") => #
poseid
  • 6,986
  • 10
  • 48
  • 78
1
vote
0 answers

Jira SOAP API: Trouble creating new issue with custom fields using Ruby/Savon

BACKGROUND: I am attempting to create a relatively simple Ruby script to create issues in a Jira instance. I am using the Savon gem (http://savonrb.com/) to create the SOAP service. ISSUE: When attempting to create an an issue that includes a…
Andrew Kirk
  • 1,774
  • 1
  • 14
  • 16
1
vote
2 answers

How do I format the XML that Savon outputs to the terminal?

How do I format the XML that Savon outputs to the (OSX) terminal? I currently get everything mangled up in a single line, which is hard to read. I want something like this, formatted on multiple lines: DEBUG -- :
Magne
  • 16,401
  • 10
  • 68
  • 88
1
vote
1 answer

Getting Savon SOAP client request to become nonblocking (asynchronous)

I have a rails app which calls a SOAP service inside one of my controllers. The problem is that when the user submits the page and the app sends out the SOAP request, the user ends up having to wait for the SOAP response because the Savon gem is…
user712850
1
vote
1 answer

SAVON don't put attributes to soap.body

I try to send soap request. I use wsdl: http://soap.direct.yandex.ru/wsdl/v4/. But savon don't put attributes based on wsdl to request. When I use php SoapClient, attributes inserted automatically into request $client = new SoapClient($wsdlurl, …
1
vote
2 answers

How to create urn:localhost-catalog SOAP header in Ruby?

I have this (working) example in php: $usernameToken = new SoapHeaderUsernameToken( $password, $username ); $soapHeaders[] = new SoapHeader("urn:localhost-catalog", 'UsernameToken', $usernameToken); $client = new…
Jasper Kennis
  • 3,225
  • 6
  • 41
  • 74
1
vote
2 answers

Namespace in SOAP in Rails

I'm using the Savon gem to interact with a WSDL. For some reason, Savon is using env as a namespace instead of soapenv. How do I make Savon generate requests with the soapenv namespace, rather than the env namespace?
Michael
  • 552
  • 1
  • 6
  • 19