Need help translating SOAPUI request into Ruby code using Savon gem -
i'm working on soap api has 2 operations, , each operation requires api keys , bunch of other attributes. so, i've been able make request via soapui, i'm having trouble translating ruby code using savon gem(version 2).
here's screenshot of searchtours request.
now, how tranlate ruby code using savon? tried following, didn't work.
client = savon.client(wsdl: 'url goes here..') client.operations #=> [:tour_details_full, :search_records] message = {security_key: "securitykeys", attributes_one: "valueone", attribute_two: integervalue} response = client.call(:search_records, message: message)
error message:
savon::soapfault: (s:client) cannot find dispatch method {url_here} searchrecords
the canonical answer:
- download soapui.
- build call in soapui.
- make sure works.
- build same request using savon.
- ask stackoverflow.
Comments
Post a Comment