class LolSoap::Client

Attributes

wsdl[R]

Public Class Methods

new(wsdl) click to toggle source

@param wsdl a WSDL object, or a string that will be parsed into one

# File lib/lolsoap/client.rb, line 11
def initialize(wsdl)
  @wsdl = wsdl.respond_to?(:to_str) ? WSDL.parse(wsdl.to_str) : wsdl
end

Public Instance Methods

request(name) click to toggle source

@return [LolSoap::Request] A request for the API action you want to perform

# File lib/lolsoap/client.rb, line 16
def request(name)
  Request.new(Envelope.new(wsdl, wsdl.operation(name)))
end
response(request, raw) click to toggle source

@return [LolSoap::Response] A response object for an API action that has been performed

# File lib/lolsoap/client.rb, line 21
def response(request, raw)
  Response.parse(request, raw)
end