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 to parse and send whole complicated XML from code in Rails

So I have this complicated XML and want it to parse it to array and send by Savon to the server. The question is how can I parse parameters? sdhuf78dd67-8932 …
Boomerange
  • 616
  • 1
  • 10
  • 18
2
votes
0 answers

Objects with xsi:type in Savon 2

I'm trying to create the following soap envelope but I can't add a type and VALUE at same time in some object 123
Miletos
  • 231
  • 1
  • 7
2
votes
1 answer

Unable to find SOAP operation RAILS + SAVON

I am learning the Web Service API, so I'm using Savon for SOAP on my rails app. I cant seem to do a simple operation as getting a list of languages from the provider. What am I doing wrong? Here is a link to SOAP request GetLanguages Below is my…
Pledges
  • 83
  • 9
2
votes
1 answer

SOAP fault when integrating with Swedish BankId

I'm trying to integrate with BankId (it's a common authentication and signing service in Sweden). I'm using Savon Ruby SOAP client and trying to make requests to the BankId's testing API following their guidelines. When making a call to an…
Tomata
  • 239
  • 1
  • 13
2
votes
1 answer

I don't understand testing with savon

I'm looking at the testing docs for Savon here and i don't understand what's going on. I'm fairly new to testing with mocks and stubbing and maybe that's the issue. Here is the example: require "spec_helper" # require the helper module require…
Robbo
  • 1,292
  • 2
  • 18
  • 41
2
votes
2 answers

How to pass Array as parameter to SOAP in Ruby

Currently I'm using Savon to work with WebService in ruby. It works pretty well but I have difficulty to pass parameter for argument of SOAP array type. Following code doesn't work properly: ids = [0,1,2] client.do_get_items { |soap| soap.body = { …
jethro
  • 18,177
  • 7
  • 46
  • 42
2
votes
1 answer

Consuming a SOAP service in Ruby using Savon gem

I am trying to consume a SOAP service using the Savon gem but having difficulty. I have accessed the SOAP service using soapUI and it works fine. My code: require 'rubygems' require 'savon' # Client instance with a WSDL endpoint client =…
Mr B
  • 3,980
  • 9
  • 48
  • 74
2
votes
3 answers

How do I get the error code and description from a Savon::SOAPFault?

I can see in the Savon log that my SOAP faults contain XML like this: 666some evil error Does anyone know how to parse the error code and description out of the response? Sorry if this is…
Mike Conigliaro
  • 1,144
  • 1
  • 13
  • 28
2
votes
0 answers

Get response message from WSDL in Savon without making a request to a service

I would like to get the service, operations and per operation the request and the response messages from a wsdl file. This without making an actual call to a webservice. I managed to get the service, operations and the request messages but the…
Nyko
  • 33
  • 4
2
votes
1 answer

How to pass custom url to SOAP Action in Savon

Im using savon 2.0 and the soap action url in the wsdl file is wrong. can i manually override the url for this action. client = Savon.client do wsdl "http://something.com/someservice/aname.asmx?wsdl" convert_request_keys_to :camelcase …
carbonr
  • 6,049
  • 5
  • 46
  • 73
2
votes
0 answers

How to generate the following XML using Savon

I have been trying to know how to build a SOAP XML request having different tags with different namespaces through Savon - as that shown below - but haven't been able to do it yet. Could anybody please help me? The request written below was…
Adesh
  • 31
  • 4
2
votes
2 answers

How to get raw request that Savon sends

I am using Savon 2.6 to implement a client for a SOAP service. I have to save raw requests and raw responses in the database. To get raw XML response isn't a problem, but how can I get a raw XML request? I use Savon in the following way: client =…
Sergey Potapov
  • 3,819
  • 3
  • 27
  • 46
2
votes
2 answers

Ruby Build Hash from file

I'm consuming a web-service and using Savon to do +-1000 (paid) requests and parse the requests to a csv file. I save the xml.hash response in a file if the parsing failed. How can I initialize an hash that was saved to a file? (or should I save in…
Jeff
  • 1,871
  • 1
  • 17
  • 28
2
votes
3 answers

How to add xmlns to message in savon

I am using savon 2 gem. How to add the xmlns to message tag instead of envelope? The xml generate is this
pra
  • 343
  • 1
  • 3
  • 16
2
votes
0 answers

Savon SOAP: request returns in "Procedure expects parameter which was not supplied" in Rails

Basically im trying to call a method to authenticate a player using Savon. And im getting the following error: Procedure or function 'CORE_INCOMING_ValidateSource' expects parameter '@SourceId', which was not supplied. Yes it IS in the methods…
user3455909
  • 257
  • 1
  • 3
  • 12