Module: Viewpoint::SPWS::Websvc::WebServiceBase

Includes:
Viewpoint::SPWS
Included in:
Copy, Lists, UserGroup
Defined in:
lib/viewpoint/spws/websvc/web_service_base.rb

Constant Summary collapse

NAMESPACES =
{
  'xmlns:soap'  => 'http://www.w3.org/2003/05/soap-envelope',
  'xmlns:xsi'   => 'http://www.w3.org/2001/XMLSchema-instance',
  'xmlns:xsd'   => 'http://www.w3.org/2001/XMLSchema',
}.freeze

Constants included from Viewpoint::SPWS

VERSION

Instance Attribute Summary collapse

Attributes included from Viewpoint::SPWS

#logger

Instance Method Summary collapse

Methods included from Viewpoint::SPWS

root_logger, set_log_level

Instance Attribute Details

#spconObject (readonly)

Returns the value of attribute spcon.



30
31
32
# File 'lib/viewpoint/spws/websvc/web_service_base.rb', line 30

def spcon
  @spcon
end

Instance Method Details

#initialize(spcon) ⇒ Object

Parameters:



33
34
35
36
37
# File 'lib/viewpoint/spws/websvc/web_service_base.rb', line 33

def initialize(spcon)
  @log = Logging.logger[self.class.name.to_s.to_sym]
  @spcon = spcon
  raise "Auth failure" unless(@spcon.authenticate(@ws_endpoint))
end