Ruby on rails 使用SOQL发送Ruby SOAP请求

Ruby on rails 使用SOQL发送Ruby SOAP请求,ruby-on-rails,ruby,soap,soql,httparty,Ruby On Rails,Ruby,Soap,Soql,Httparty,我想执行以下soap请求 我正在使用httpartygem 我所做的 HTTParty.post(url, :body => "with plain soql statement", :headers => {...}) 也 但是有错误 sponse:0x5afb388 parsed_response={"error"=>{"exceptionCode"=>"InvalidBatch", "exceptionMessage"=>"Records not proc

我想执行以下soap请求

我正在使用httpartygem

我所做的

HTTParty.post(url, :body => "with plain soql statement", :headers => {...})

但是有错误

sponse:0x5afb388 parsed_response={"error"=>{"exceptionCode"=>"InvalidBatch", "exceptionMessage"=>"Records not processed"}

#{“exceptionCode”=>“ClientInputError”,“exceptionMessage”=>“找不到任何数据来创建批”}
请告诉我

HTTParty.post(url, :query => {:q => "with plain soql statement"}, :headers => {...})
sponse:0x5afb388 parsed_response={"error"=>{"exceptionCode"=>"InvalidBatch", "exceptionMessage"=>"Records not processed"}
 #<HTTParty::Response:0x65b7b08 parsed_response={"error"=>{"exceptionCode"=>"ClientInputError", "exceptionMessage"=>"Unable to find any data to create batch"}}