WSDL::Service (Class)

In: wsdl/service.rb
Parent: Info

Methods

Attributes

name  [R] 
ports  [R] 
soap_address  [R] 

Public Class methods

[Source]

# File wsdl/service.rb, line 21
  def initialize
    super
    @name = nil
    @ports = XSD::NamedElements.new
    @soap_address = nil
  end

Public Instance methods

[Source]

# File wsdl/service.rb, line 50
  def parse_attr(attr, value)
    case attr
    when NameAttrName
      @name = XSD::QName.new(targetnamespace, value)
    else
      nil
    end
  end

[Source]

# File wsdl/service.rb, line 32
  def parse_element(element)
    case element
    when PortName
      o = Port.new
      @ports << o
      o
    when SOAPAddressName
      o = WSDL::SOAP::Address.new
      @soap_address = o
      o
    when DocumentationName
      o = Documentation.new
      o
    else
      nil
    end
  end

[Source]

# File wsdl/service.rb, line 28
  def targetnamespace
    parent.targetnamespace
  end

[Validate]