Ruby SOAP Client using SAVON not working whereas PHP SOAP client works -
hello there testing web services , trying write client using savon wsdl. have 1 available operation named log_process , trying access getting errors. have similar script written in php , working fine. have tried
require 'net/http' require "uri" require 'savon' client = savon.client(wsdl: "http://abc.com/projects/shared/abc.wsdl") @a=client.operations puts @a ary={0 =>"art", 1 =>"bac", 2 =>"arr"} @result = client.call(:log_process, message:{0 =>"asdf", 1 =>"qwer", 2 =>"arr"}) puts @result
and getting following error
raise_soap_and_http_errors!': (soap-env:client) bad request (savon::soapfault)
my php working solution looks
$result = $client->log_process(array(0=>$user_name,1=>$user_pwd,2=>$display_type));
any idea ruby equivalent or calling operation in correct manner?
try:
@result = client.call(:log_process, message:["asdf", "asg", "arr"])
in php code, sending 1 parameter, array
Comments
Post a Comment