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, Wasabi Error when connecting a Ruby script to a SOAP url

Im trying to connect to a SOAP URL with a Ruby script. I am following this Railscasts episode. I installed the savon gem(savon (2.4.0)). Then in my ruby file I have this code: require 'savon' client =…
banditKing
  • 9,405
  • 28
  • 100
  • 157
2
votes
0 answers

Sending a SOAP request using Savon

I am having trouble with a SOAP request I would like to send using Savon. I get the following error: {:fault=> {:faultcode=>"soap:Client", :faultstring=> "Unmarshalling Error: unexpected element (uri:\"\", local:\"api\"). Expected elements…
ShaunVZ
  • 31
  • 3
2
votes
1 answer

how to add optional parameter in soap action request?

I want to add optional paramteter in soap_action(wash_out) request, here is the code soap_action "DeActivate_VAS_Request", :args => {:some_arguments}, :return => {:return_values} and operation is
mirfan899
  • 67
  • 1
  • 13
2
votes
1 answer

Ruby and Savon(2.3) SOAP client - Unable to connect with web service

I'm trying to use Savon(2.3) to make a SOAP request with Ruby, but I'm receiving a 500 error code from server . Server response :- SOAP response (status 500) D, [2014-03-04T11:44:03.824902 #10771] DEBUG -- :…
Sanjeev
  • 298
  • 4
  • 11
2
votes
2 answers

Savon v3.x - how to pass complete xml message as soap request

using Savon version 3.x (the current master branch found https://github.com/savonrb/savon). currently to generate a soap request in savon 3 you define the body of the message as a hash, ex: operation.body = { Search: { accountID: 23, …
solidlight
  • 61
  • 5
2
votes
1 answer

How do you add nested attributes in Savon 2.3?

Savon 2.1 used :attributes! to add attributes in nested xml tags. How is it done in 2.3? The exact same hash does not render the same xml. { :person => { :address => "", :attributes! => { :address => { :id => 44 } } }, :attributes! =>…
Justin
  • 299
  • 2
  • 12
2
votes
1 answer

How to set arguments for savon version 2

I'm reading railscast #290 that are going with savon version 1. So I tried to replace command for version 2, but I couldn't do it. http://railscasts.com/episodes/290-soap-with-savon?view=asciicast I replaced the commands like these. ver1 client =…
ironsand
  • 14,329
  • 17
  • 83
  • 176
2
votes
0 answers

How to write path to location in XML/WSDL doc in Rails?

I have a WSDL doc with XSD import. WSDL tool assumes that schema is in the same directory, but load fails in rails with error
Kirill Fedyanin
  • 572
  • 5
  • 22
2
votes
2 answers

Ruby Savon : How to get the request text sent to server?

Hi I'm using Savon to access some web services. I'm using this code: client=Savon.client( wsdl: "WebService.wsdl", env_namespace: "S", convert_request_keys_to: :camelcase ) response=client.call(:send_doc) do message( Attr1:…
Fakada
  • 563
  • 9
  • 20
2
votes
1 answer

Savon array of hash

I am trying to make soap requests but when i use the operation.body method every array doesnt seems to be in the xml after operation.build. Here's part of the WSDL: --
Bernardo Mendes
  • 1,220
  • 9
  • 15
2
votes
2 answers

Savon is not logging it's output to production.log, even with logging enabled and set to :info

I have all three environments (test, development, production) displaying log output at the :info level, through config.log_level = :info in their respective .rb files. When I start my local Rails server with rails s, Savon output appears in the…
Logan Serman
  • 29,447
  • 27
  • 102
  • 141
2
votes
1 answer

Constructing this SOAP header properly?

I'm attempting to build a proper SOAP…
TheIrishGuy
  • 2,531
  • 19
  • 23
2
votes
2 answers

Perform authentication to Polarion webservice with Savon

I am attempting to follow the discussion here using Ruby and Savon. I am able to retrieve a session ID, but whenever I perform a request from the clients that require authentication (tracker), I receive an Authorization Failed error. require…
superlou
  • 679
  • 1
  • 8
  • 21
2
votes
1 answer

ruby-savon communicate with mono-wcf

i am new to mono wcf, and i came across some problems about my code. recent, i use ruby-savon to get data from wcf host on mono. and this is my ruby code: client = Savon::Client.new do wsdl.document="http://localhost:9000/MonoWcf/MonoSevice/wsdl"…
Charlot
  • 151
  • 1
  • 9
2
votes
2 answers

Savon - SOAP - ruby - 400 Bad Request

I'm trying to use Savon to make a SOAP request with Ruby, but I'm receiving a 400 Bad Request response from the server. This is the request I'm trying to make (according to soapUI):
Stuart
  • 644
  • 1
  • 6
  • 13