Sha256: 54a939e389e899a839c8720f03a28dd18f47350ef0e89b5f1473d03d77f094ed

Contents?: true

Size: 689 Bytes

Versions: 24

Compression:

Stored size: 689 Bytes

Contents

require 'lolsoap/wsdl'
require 'lolsoap/request'
require 'lolsoap/envelope'
require 'lolsoap/response'

module LolSoap
  class Client
    attr_reader :wsdl

    # @param wsdl a WSDL object, or a string that will be parsed into one
    def initialize(wsdl)
      @wsdl = wsdl.respond_to?(:to_str) ? WSDL.parse(wsdl.to_str) : wsdl
    end

    # @return [LolSoap::Request] A request for the API action you want to perform
    def request(name)
      Request.new(Envelope.new(wsdl, wsdl.operation(name)))
    end

    # @return [LolSoap::Response] A response object for an API action that has been performed
    def response(request, raw)
      Response.parse(request, raw)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lolsoap-0.11.0 lib/lolsoap/client.rb
lolsoap-0.10.0 lib/lolsoap/client.rb
lolsoap-0.9.0 lib/lolsoap/client.rb
lolsoap-0.8.3 lib/lolsoap/client.rb
lolsoap-0.8.2 lib/lolsoap/client.rb
lolsoap-0.8.1 lib/lolsoap/client.rb
lolsoap-0.8.0 lib/lolsoap/client.rb
lolsoap-0.7.0 lib/lolsoap/client.rb
lolsoap-0.6.1 lib/lolsoap/client.rb
lolsoap-0.6.0 lib/lolsoap/client.rb
lolsoap-0.5.1 lib/lolsoap/client.rb
lolsoap-0.5.0 lib/lolsoap/client.rb
lolsoap-0.4.2 lib/lolsoap/client.rb
lolsoap-0.4.1 lib/lolsoap/client.rb
lolsoap-0.4.0 lib/lolsoap/client.rb
lolsoap-0.3.2 lib/lolsoap/client.rb
lolsoap-0.3.1 lib/lolsoap/client.rb
lolsoap-0.3.0 lib/lolsoap/client.rb
lolsoap-0.2.0 lib/lolsoap/client.rb
lolsoap-0.1.4 lib/lolsoap/client.rb