Sha256: 47a1415e44125e2a5f1fca33cb30b0acb4db7c7515e5f13385f6a1fadc18a76b

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

# WSDL4R - WSDL service definition.
# Copyright (C) 2002, 2003  NAKAMURA, Hiroshi <nahi@ruby-lang.org>.

# This program is copyrighted free software by NAKAMURA, Hiroshi.  You can
# redistribute it and/or modify it under the same terms of Ruby's license;
# either the dual license version in 2003, or any later version.


require 'action_web_service/wsdl/info'
require 'action_web_service/xsd/namedelements'


module WSDL


class Service < Info
  attr_reader :name		# required
  attr_reader :ports
  attr_reader :soap_address

  def initialize
    super
    @name = nil
    @ports = XSD::NamedElements.new
    @soap_address = nil
  end

  def targetnamespace
    parent.targetnamespace
  end

  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

  def parse_attr(attr, value)
    case attr
    when NameAttrName
      @name = XSD::QName.new(targetnamespace, value.source)
    else
      nil
    end
  end
end


end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
reidiculous-actionwebservice-client-3.0.10 lib/action_web_service/wsdl/service.rb
reidiculous-actionwebservice-client-3.0.6 lib/action_web_service/wsdl/service.rb
reidiculous-actionwebservice-client-3.0.4.1 lib/action_web_service/wsdl/service.rb
reidiculous-actionwebservice-client-3.0.4 lib/action_web_service/wsdl/service.rb
reidiculous-actionwebservice-3.0.3 lib/action_web_service/wsdl/service.rb