in Education by
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, array( 'trace'=> 1, 'exceptions' => 0, 'encoding' => 'UTF-8', 'local_cert' => $local_cert, 'passphrase' => '' ) ); $params = array('param1','param2'); $result = $client->GetCampaignsList($params); But in ruby Savon library attributes didn't insert into request Savon.configure do |config| config.log = true # disable logging config.log_level = :info # changing the log level config.logger = Rails.logger # using the Rails logger end client = Savon::Client.new do |wsdl, http| wsdl.document = "http://soap.direct.yandex.ru/wsdl/v4/" http.auth.ssl.cert_key_file = path_to_key_pem_file http.auth.ssl.cert_file = path_to_cert_pem_file http.auth.ssl.ca_cert_file = path_to_ca_cert_file http.auth.ssl.verify_mode=:none end response = client.request :ns1, :get_campaigns_list do soap.body = { :params => ['param1', 'param2'] } end PHP request: <?xml version="1.0" encoding="UTF-8"?> name Ruby request: <?хml version="1.0" encoding="UTF-8"?> name JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You can use :attributes! => {"params" => {:'SOAP-ENC:arrayType' => 'xsd:string[1]'}} It will add attribute to your params.

Related questions

0 votes
    I'm getting below error while fetching a response from SOAP service from a java client: [javax.xml.bind ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 8, 2022 in Education by JackTerrance
0 votes
    I am trying to make requests to dedicated WSDL server with the help of Apache Camel CXF. I have ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 5, 2022 in Education by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Is there a way when creating web services to specify the types to use? Specifically, I want to be ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 12, 2022 in Education by JackTerrance
0 votes
    I was working with SOAP to access web service. my question is how to retrieve the value returned from ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I have this soap extension in order to trace my webservices: using System; using System.IO; using System. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    how to get the value which is returned from the web service using soap in iphone this is my SOAP ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    I am trying to upload a text file of data to a soap server with a function called BulkLoadContacts. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    Action of soap is due to emulsification and micelle formation. Comment. Select the correct answer from above options...
asked Jan 3, 2022 in Education by JackTerrance
0 votes
0 votes
    Which type of web services you need to use - SOAP or REST?...
asked Jun 23, 2021 in Technology by JackTerrance
0 votes
    What is the purpose of SOAP in a web service?...
asked Mar 13, 2021 in Technology by JackTerrance
...