Skip to content

Instantly share code, notes, and snippets.

@artkirienko
Created May 10, 2017 14:00
Show Gist options
  • Save artkirienko/3ddc53ec2ac51d0cb1c558f4c60e3965 to your computer and use it in GitHub Desktop.
Save artkirienko/3ddc53ec2ac51d0cb1c558f4c60e3965 to your computer and use it in GitHub Desktop.
# require 'httpi'
# require 'crack'
require 'savon'
# p Savon.methods
client = Savon.client(
# wsdl: "https://portal.fedsfm.ru/Services/TerroristInfoService/TerroristInfoService.svc?wsdl",
wsdl: "https://portal.fedsfm.ru/Services/TerroristInfoService/TerroristInfoService.svc?singleWsdl",
# headers: {'Content-Type' => 'application/soap+xml;charset=UTF-8'},
# raise_errors: false
)
# p client.operations
# p client.build_request(:get_current_terrorist_catalog)
# p response = client.call(:get_current_terrorist_catalog)
# p response = client.build_request(:get_terrorist_catalogs)
# p response = client.call(:get_terrorist_catalogs)
# p response = client.build_request(:get_file)
p response = client.call(:get_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment