Class: SOAP::LC

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/lc.rb,
lib/soap/lc/version.rb

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLC

Create a new SOAP Lite Client

s = WSDL::LC.new( )
  # => #<SOAP::LC:0xNNNNNN>


9
10
# File 'lib/soap/lc.rb', line 9

def initialize( ) #:nodoc:
end

Class Method Details

.[](uri) ⇒ Object

Create a new SOAP Lite client and set the WSDL URL Return a SOAP::WSDL object.

Use this if binding is non ambigous

s = SOAP::LC["http://my.wsdl.com"]


44
45
46
# File 'lib/soap/lc.rb', line 44

def self.[]( uri )
  SOAP::LC.wsdl( uri, nil )
end

.wsdl(uri, binding = nil) ⇒ Object

Set the WSDL URL and return a SOAP::WSDL object

Parameters :

+uri+ : path to the WSDL
+binding+ : binding name (optional)

Example :

s = WSDL::LC.wsdl( "http://my.wsdl.com", "HelloService" )
  # => #<SOAP::WSDL:0xNNNNNN>


34
35
36
# File 'lib/soap/lc.rb', line 34

def self.wsdl( uri, binding = nil )
  SOAP::WSDL.new( uri, binding )
end

Instance Method Details

#wsdl(uri, binding = nil) ⇒ Object

Set the WSDL URL and return a SOAP::WSDL object

Parameters :

+uri+ : path to the WSDL
+binding+ : binding name (optional)

Example :

s = WSDL::LC.new().wsdl( "http://my.wsdl.com", "HelloService" )
  # => #<SOAP::WSDL:0xNNNNNN>


21
22
23
# File 'lib/soap/lc.rb', line 21

def wsdl( uri, binding = nil )
  SOAP::WSDL.new( uri, binding )
end