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 =…
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…
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
…
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 -- :…
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,
…
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! =>…
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 =…
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:…
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:
--
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…
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…
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"…
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):