Class: WSDL::Definitions

### Home Classes Methods

### In Files

- lib/wsdl/definitions.rb
- lib/wsdl/soap/definitions.rb

### Parent

Info

### Methods

- ::array_complextype
- ::exception_complextype
- ::fault_complextype
- ::new
- ::parse_element
- ::soap_rpc_complextypes
- #add_type
- #binding
- #bindings
- #collect_attributegroups
- #collect_attributes
- #collect_complextypes
- #collect_elements
- #collect_faulttypes
- #collect_modelgroups
- #collect_simpletypes
- #inspect
- #message
- #messages
- #parse_attr
- #parse_element
- #porttype
- #porttype_binding
- #porttypes
- #service
- #services
- #soap_rpc_complextypes
- #targetnamespace=

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- SOAP
- SOAP::ArrayIndexOutOfBoundsError
- SOAP::ArrayStoreError
- SOAP::Attachment
- SOAP::AttrProxy
- SOAP::AttrProxy::AttrProxyClassSupport
- SOAP::EmptyResponseError
- SOAP::EncodingStyle
- SOAP::EncodingStyle::ASPDotNetHandler
- SOAP::EncodingStyle::ASPDotNetHandler::SOAPTemporalObject
- SOAP::EncodingStyle::ASPDotNetHandler::SOAPUnknown
- SOAP::EncodingStyle::Handler
- SOAP::EncodingStyle::Handler::EncodingStyleError
- SOAP::EncodingStyle::LiteralHandler
- SOAP::EncodingStyle::SOAPHandler
- SOAP::EncodingStyle::SOAPHandler::SOAPTemporalObject
- SOAP::EncodingStyle::SOAPHandler::SOAPUnknown
- SOAP::Env
- SOAP::Error
- SOAP::FaultCode
- SOAP::FaultError
- SOAP::Filter
- SOAP::Filter::FilterChain
- SOAP::Filter::Handler
- SOAP::Filter::StreamHandler
- SOAP::Generator
- SOAP::Generator::FormatEncodeError
- SOAP::HTTPConfigLoader
- SOAP::HTTPStreamError
- SOAP::HTTPStreamHandler
- SOAP::HTTPStreamHandler::Client
- SOAP::HTTPStreamHandler::HttpPostRequestFilter
- SOAP::Header
- SOAP::Header::Handler
- SOAP::Header::HandlerSet
- SOAP::Header::MappingHandler
- SOAP::Header::SimpleHandler
- SOAP::MIMEMessage
- SOAP::MIMEMessage::Header
- SOAP::MIMEMessage::Headers
- SOAP::MIMEMessage::MIMEMessageError
- SOAP::MIMEMessage::Part
- SOAP::MPostUnavailableError
- SOAP::Mapping
- SOAP::Mapping::ArrayFactory_
- SOAP::Mapping::AttachmentFactory
- SOAP::Mapping::Base64Factory_
- SOAP::Mapping::BasetypeFactory_
- SOAP::Mapping::DateTimeFactory_
- SOAP::Mapping::EncodedRegistry
- SOAP::Mapping::EncodedRegistry::Map
- SOAP::Mapping::Factory
- SOAP::Mapping::FixnumFactory_
- SOAP::Mapping::HashFactory_
- SOAP::Mapping::LiteralRegistry
- SOAP::Mapping::MappedException
- SOAP::Mapping::MappingError
- SOAP::Mapping::Object
- SOAP::Mapping::Registry
- SOAP::Mapping::RegistrySupport
- SOAP::Mapping::RubytypeFactory
- SOAP::Mapping::SOAPException
- SOAP::Mapping::SchemaChoiceDefinition
- SOAP::Mapping::SchemaComplexTypeDefinition
- SOAP::Mapping::SchemaDefinition
- SOAP::Mapping::SchemaElementDefinition
- SOAP::Mapping::SchemaEmptyDefinition
- SOAP::Mapping::SchemaSequenceDefinition
- SOAP::Mapping::StringFactory_
- SOAP::Mapping::TraverseSupport
- SOAP::Mapping::TypedArrayFactory_
- SOAP::Mapping::TypedStructFactory_
- SOAP::Mapping::URIFactory_
- SOAP::Mapping::WSDLEncodedRegistry
- SOAP::Mapping::WSDLLiteralRegistry
- SOAP::Marshal
- SOAP::Marshal
- SOAP::Marshallable
- SOAP::NS
- SOAP::NestedException
- SOAP::NetHttpClient
- SOAP::NetHttpClient::Response
- SOAP::NetHttpClient::SessionManager
- SOAP::Parser
- SOAP::Parser::FormatDecodeError
- SOAP::Parser::ParseError
- SOAP::Parser::ParseFrame
- SOAP::Parser::ParseFrame::NodeContainer
- SOAP::Parser::UnexpectedElementError
- SOAP::PostUnavailableError
- SOAP::Processor
- SOAP::Property
- SOAP::Property::Util
- SOAP::RPC
- SOAP::RPC::CGIStub
- SOAP::RPC::CGIStub::SOAPFCGIRequest
- SOAP::RPC::CGIStub::SOAPRequest
- SOAP::RPC::CGIStub::SOAPStdinRequest
- SOAP::RPC::Driver
- SOAP::RPC::HTTPServer
- SOAP::RPC::MethodDef
- SOAP::RPC::MethodDef::Parameter
- SOAP::RPC::MethodDefinitionError
- SOAP::RPC::ParameterError
- SOAP::RPC::Proxy
- SOAP::RPC::Proxy::Operation
- SOAP::RPC::RPCError
- SOAP::RPC::Router
- SOAP::RPC::Router::ApplicationScopeOperation
- SOAP::RPC::Router::Operation
- SOAP::RPC::Router::RequestScopeOperation
- SOAP::RPC::SOAPMethod
- SOAP::RPC::SOAPMethodRequest
- SOAP::RPC::SOAPMethodResponse
- SOAP::RPC::SOAPVoid
- SOAP::RPC::SOAPlet
- SOAP::RPC::StandaloneServer
- SOAP::RPCRoutingError
- SOAP::ResponseFormatError
- SOAP::SOAPAnySimpleType
- SOAP::SOAPAnyURI
- SOAP::SOAPArray
- SOAP::SOAPAttachment
- SOAP::SOAPBase64
- SOAP::SOAPBasetype
- SOAP::SOAPBody
- SOAP::SOAPBoolean
- SOAP::SOAPByte
- SOAP::SOAPCompoundtype
- SOAP::SOAPDate
- SOAP::SOAPDateTime
- SOAP::SOAPDecimal
- SOAP::SOAPDouble
- SOAP::SOAPDuration
- SOAP::SOAPENTITIES
- SOAP::SOAPENTITY
- SOAP::SOAPElement
- SOAP::SOAPEnvelope
- SOAP::SOAPEnvelopeElement
- SOAP::SOAPExternalReference
- SOAP::SOAPFault
- SOAP::SOAPFloat
- SOAP::SOAPGDay
- SOAP::SOAPGMonth
- SOAP::SOAPGMonthDay
- SOAP::SOAPGYear
- SOAP::SOAPGYearMonth
- SOAP::SOAPHeader
- SOAP::SOAPHeaderItem
- SOAP::SOAPHexBinary
- SOAP::SOAPID
- SOAP::SOAPIDREF
- SOAP::SOAPIDREFS
- SOAP::SOAPInt
- SOAP::SOAPInteger
- SOAP::SOAPLanguage
- SOAP::SOAPLong
- SOAP::SOAPModuleUtils
- SOAP::SOAPNCName
- SOAP::SOAPNMTOKEN
- SOAP::SOAPNMTOKENS
- SOAP::SOAPName
- SOAP::SOAPNameAccessible
- SOAP::SOAPNegativeInteger
- SOAP::SOAPNil
- SOAP::SOAPNonNegativeInteger
- SOAP::SOAPNonPositiveInteger
- SOAP::SOAPNormalizedString
- SOAP::SOAPPositiveInteger
- SOAP::SOAPQName
- SOAP::SOAPREXMLElementWrap
- SOAP::SOAPRawData
- SOAP::SOAPRawString
- SOAP::SOAPReference
- SOAP::SOAPShort
- SOAP::SOAPString
- SOAP::SOAPStruct
- SOAP::SOAPTime
- SOAP::SOAPToken
- SOAP::SOAPType
- SOAP::SOAPUnsignedByte
- SOAP::SOAPUnsignedInt
- SOAP::SOAPUnsignedLong
- SOAP::SOAPUnsignedShort
- SOAP::StreamError
- SOAP::StreamHandler
- SOAP::StreamHandler::ConnectionData
- SOAP::UnhandledMustUnderstandHeaderError
- SOAP::WSDLDriverFactory
- SOAP::WSDLDriverFactory::FactoryError
- WSDL
- WSDL::Binding
- WSDL::Definitions
- WSDL::Documentation
- WSDL::Error
- WSDL::Import
- WSDL::Importer
- WSDL::Info
- WSDL::Message
- WSDL::Operation
- WSDL::OperationBinding
- WSDL::OperationBinding::BoundId
- WSDL::OperationBinding::OperationInfo
- WSDL::OperationBinding::Part
- WSDL::Param
- WSDL::Parser
- WSDL::Parser::AttributeConstraintError
- WSDL::Parser::ElementConstraintError
- WSDL::Parser::FormatDecodeError
- WSDL::Parser::ParseError
- WSDL::Parser::ParseFrame
- WSDL::Parser::UnexpectedElementError
- WSDL::Parser::UnknownAttributeError
- WSDL::Parser::UnknownElementError
- WSDL::Part
- WSDL::Port
- WSDL::PortType
- WSDL::SOAP
- WSDL::SOAP::Address
- WSDL::SOAP::Binding
- WSDL::SOAP::Body
- WSDL::SOAP::CGIStubCreator
- WSDL::SOAP::ClassDefCreator
- WSDL::SOAP::ClassDefCreatorSupport
- WSDL::SOAP::ClassNameCreator
- WSDL::SOAP::ClientSkeltonCreator
- WSDL::SOAP::DriverCreator
- WSDL::SOAP::EncodedMappingRegistryCreator
- WSDL::SOAP::Fault
- WSDL::SOAP::Header
- WSDL::SOAP::HeaderFault
- WSDL::SOAP::LiteralMappingRegistryCreator
- WSDL::SOAP::MappingRegistryCreator
- WSDL::SOAP::MappingRegistryCreatorSupport
- WSDL::SOAP::MethodDefCreator
- WSDL::SOAP::Operation
- WSDL::SOAP::Operation::ParamInfo
- WSDL::SOAP::ServantSkeltonCreator
- WSDL::SOAP::ServletStubCreator
- WSDL::SOAP::StandaloneServerStubCreator
- WSDL::SOAP::WSDL2Ruby
- WSDL::Service
- WSDL::Types
- WSDL::XMLSchema
- WSDL::XMLSchema::All
- WSDL::XMLSchema::Annotation
- WSDL::XMLSchema::Any
- WSDL::XMLSchema::AnyAttribute
- WSDL::XMLSchema::Attribute
- WSDL::XMLSchema::AttributeGroup
- WSDL::XMLSchema::Choice
- WSDL::XMLSchema::ComplexContent
- WSDL::XMLSchema::ComplexExtension
- WSDL::XMLSchema::ComplexRestriction
- WSDL::XMLSchema::ComplexType
- WSDL::XMLSchema::Content
- WSDL::XMLSchema::Element
- WSDL::XMLSchema::Enumeration
- WSDL::XMLSchema::FractionDigits
- WSDL::XMLSchema::Group
- WSDL::XMLSchema::Import
- WSDL::XMLSchema::ImportHandler
- WSDL::XMLSchema::Importer
- WSDL::XMLSchema::Include
- WSDL::XMLSchema::Length
- WSDL::XMLSchema::List
- WSDL::XMLSchema::MaxExclusive
- WSDL::XMLSchema::MaxInclusive
- WSDL::XMLSchema::MaxLength
- WSDL::XMLSchema::MinExclusive
- WSDL::XMLSchema::MinInclusive
- WSDL::XMLSchema::MinLength
- WSDL::XMLSchema::Parser
- WSDL::XMLSchema::Parser::AttributeConstraintError
- WSDL::XMLSchema::Parser::ElementConstraintError
- WSDL::XMLSchema::Parser::FormatDecodeError
- WSDL::XMLSchema::Parser::ParseError
- WSDL::XMLSchema::Parser::ParseFrame
- WSDL::XMLSchema::Parser::UnexpectedElementError
- WSDL::XMLSchema::Parser::UnknownAttributeError
- WSDL::XMLSchema::Parser::UnknownElementError
- WSDL::XMLSchema::Pattern
- WSDL::XMLSchema::Ref
- WSDL::XMLSchema::Ref::RefClassSupport
- WSDL::XMLSchema::Schema
- WSDL::XMLSchema::Sequence
- WSDL::XMLSchema::SimpleContent
- WSDL::XMLSchema::SimpleExtension
- WSDL::XMLSchema::SimpleRestriction
- WSDL::XMLSchema::SimpleType
- WSDL::XMLSchema::TotalDigits
- WSDL::XMLSchema::Union
- WSDL::XMLSchema::Unique
- WSDL::XMLSchema::WhiteSpace
- WSDL::XMLSchema::XSD2Ruby
- XSD
- XSD::Charset
- XSD::Charset::CharsetConversionError
- XSD::Charset::CharsetError
- XSD::Charset::UnknownCharsetError
- XSD::Charset::XSDError
- XSD::CodeGen
- XSD::CodeGen::ClassDef
- XSD::CodeGen::CommentDef
- XSD::CodeGen::GenSupport
- XSD::CodeGen::MethodDef
- XSD::CodeGen::ModuleDef
- XSD::Error
- XSD::FloatConstants
- XSD::IconvCharset
- XSD::Mapping
- XSD::Mapping::Mapper
- XSD::NS
- XSD::NS::Assigner
- XSD::NS::FormatError
- XSD::NSDBase
- XSD::NamedElements
- XSD::QName
- XSD::ValueSpaceError
- XSD::XMLParser
- XSD::XMLParser::LibXMLParser
- XSD::XMLParser::Parser
- XSD::XMLParser::Parser::ElementConstraintError
- XSD::XMLParser::Parser::FormatDecodeError
- XSD::XMLParser::Parser::ParseError
- XSD::XMLParser::Parser::ParserError
- XSD::XMLParser::Parser::UnexpectedElementError
- XSD::XMLParser::Parser::UnknownAttributeError
- XSD::XMLParser::Parser::UnknownElementError
- XSD::XMLParser::REXMLParser
- XSD::XMLParser::XMLParser
- XSD::XMLParser::XMLParser::Listener
- XSD::XMLParser::XMLScanner
- XSD::XSDAnySimpleType
- XSD::XSDAnyURI
- XSD::XSDBase64Binary
- XSD::XSDBoolean
- XSD::XSDByte
- XSD::XSDDate
- XSD::XSDDateTime
- XSD::XSDDateTimeImpl
- XSD::XSDDecimal
- XSD::XSDDouble
- XSD::XSDDuration
- XSD::XSDENTITIES
- XSD::XSDENTITY
- XSD::XSDFloat
- XSD::XSDGDay
- XSD::XSDGMonth
- XSD::XSDGMonthDay
- XSD::XSDGYear
- XSD::XSDGYearMonth
- XSD::XSDHexBinary
- XSD::XSDID
- XSD::XSDIDREF
- XSD::XSDIDREFS
- XSD::XSDInt
- XSD::XSDInteger
- XSD::XSDLanguage
- XSD::XSDLong
- XSD::XSDNCName
- XSD::XSDNMTOKEN
- XSD::XSDNMTOKENS
- XSD::XSDName
- XSD::XSDNegativeInteger
- XSD::XSDNil
- XSD::XSDNonNegativeInteger
- XSD::XSDNonPositiveInteger
- XSD::XSDNormalizedString
- XSD::XSDPositiveInteger
- XSD::XSDQName
- XSD::XSDShort
- XSD::XSDString
- XSD::XSDTime
- XSD::XSDToken
- XSD::XSDUnsignedByte
- XSD::XSDUnsignedInt
- XSD::XSDUnsignedLong
- XSD::XSDUnsignedShort
- Object
- Object::SOAPMarshal
- WEBrick
- WEBrick::Log
- Enumerable
- Hash
- Kernel

No matching classes.

# WSDL::Definitions

### Attributes

importedschema[R]
imports[R]
location[RW]
name[R]
targetnamespace[R]

### Public Class Methods

array_complextype() click to toggle source

    # File lib/wsdl/soap/definitions.rb, line 26
    def self.array_complextype
      type = XMLSchema::ComplexType.new(::SOAP::ValueArrayName)
      type.complexcontent = XMLSchema::ComplexContent.new
      type.complexcontent.restriction = XMLSchema::ComplexRestriction.new
      type.complexcontent.restriction.base = ::SOAP::ValueArrayName
      attr = XMLSchema::Attribute.new
      attr.ref = ::SOAP::AttrArrayTypeName
      anyarray = XSD::QName.new(
        XSD::AnyTypeName.namespace,
        XSD::AnyTypeName.name + '[]')
      attr.arytype = anyarray
      type.complexcontent.restriction.attributes << attr
      type
    end

exception_complextype() click to toggle source

    # File lib/wsdl/soap/definitions.rb, line 64
    def self.exception_complextype
      type = XMLSchema::ComplexType.new(XSD::QName.new(
          ::SOAP::Mapping::RubyCustomTypeNamespace, 'SOAPException'))
      excn_name = XMLSchema::Element.new(XSD::QName.new(nil, 'excn_type_name'), XSD::XSDString::Type)
      cause = XMLSchema::Element.new(XSD::QName.new(nil, 'cause'), XSD::AnyTypeName)
      backtrace = XMLSchema::Element.new(XSD::QName.new(nil, 'backtrace'), ::SOAP::ValueArrayName)
      message = XMLSchema::Element.new(XSD::QName.new(nil, 'message'), XSD::XSDString::Type)
      type.all_elements = [excn_name, cause, backtrace, message]
      type
    end

fault_complextype() click to toggle source

<xs:complexType name="Fault" final="extension">

    <xs:sequence>
      <xs:element name="faultcode" type="xs:QName" />
      <xs:element name="faultstring" type="xs:string" />
      <xs:element name="faultactor" type="xs:anyURI" minOccurs="0" />
      <xs:element name="detail" type="tns:detail" minOccurs="0" />
    </xs:sequence>

</xs:complexType>

    # File lib/wsdl/soap/definitions.rb, line 51
    def self.fault_complextype
      type = XMLSchema::ComplexType.new(::SOAP::EleFaultName)
      faultcode = XMLSchema::Element.new(::SOAP::EleFaultCodeName, XSD::XSDQName::Type)
      faultstring = XMLSchema::Element.new(::SOAP::EleFaultStringName, XSD::XSDString::Type)
      faultactor = XMLSchema::Element.new(::SOAP::EleFaultActorName, XSD::XSDAnyURI::Type)
      faultactor.minoccurs = 0
      detail = XMLSchema::Element.new(::SOAP::EleFaultDetailName, XSD::AnyTypeName)
      detail.minoccurs = 0
      type.all_elements = [faultcode, faultstring, faultactor, detail]
      type.final = 'extension'
      type
    end

new() click to toggle source

    # File lib/wsdl/definitions.rb, line 24
    def initialize
      super
      @name = nil
      @targetnamespace = nil
      @location = nil
      @importedschema = {}

      @types = nil
      @imports = []
      @messages = XSD::NamedElements.new
      @porttypes = XSD::NamedElements.new
      @bindings = XSD::NamedElements.new
      @services = XSD::NamedElements.new

      @anontypes = XSD::NamedElements.new
      @root = self
    end

parse_element(element) click to toggle source

    # File lib/wsdl/definitions.rb, line 210
    def self.parse_element(element)
      if element == DefinitionsName
        Definitions.new
      else
        nil
      end
    end

soap_rpc_complextypes() click to toggle source

    # File lib/wsdl/soap/definitions.rb, line 18
    def self.soap_rpc_complextypes
      types = XSD::NamedElements.new
      types << array_complextype
      types << fault_complextype
      types << exception_complextype
      types
    end

### Public Instance Methods

add_type(complextype) click to toggle source

ToDo: simpletype must be accepted...

    # File lib/wsdl/definitions.rb, line 79
    def add_type(complextype)
      @anontypes << complextype
    end

binding(name) click to toggle source

    # File lib/wsdl/definitions.rb, line 135
    def binding(name)
      binding = @bindings[name]
      return binding if binding
      @imports.each do |import|
        binding = import.content.binding(name) if self.class === import.content
        return binding if binding
      end
      nil
    end

bindings() click to toggle source

    # File lib/wsdl/definitions.rb, line 99
    def bindings
      result = @bindings.dup
      @imports.each do |import|
        result.concat(import.content.bindings) if self.class === import.content
      end
      result
    end

collect_attributegroups() click to toggle source

    # File lib/wsdl/definitions.rb, line 61
    def collect_attributegroups
      collect_imports(:collect_attributegroups)
    end

collect_attributes() click to toggle source

    # File lib/wsdl/definitions.rb, line 53
    def collect_attributes
      collect_imports(:collect_attributes)
    end

collect_complextypes() click to toggle source

    # File lib/wsdl/definitions.rb, line 69
    def collect_complextypes
      result = collect_imports(:collect_complextypes)
      @anontypes.dup.concat(result)
    end

collect_elements() click to toggle source

    # File lib/wsdl/definitions.rb, line 65
    def collect_elements
      collect_imports(:collect_elements)
    end

collect_faulttypes() click to toggle source

    # File lib/wsdl/soap/definitions.rb, line 80
    def collect_faulttypes
      result = []
      collect_fault_messages.each do |name|
        faultparts = message(name).parts
        if faultparts.size != 1
          raise RuntimeError.new("Expecting fault message \"#{name}\" to have ONE part")
        end
        fault_part = faultparts[0]
        # WS-I Basic Profile Version 1.1 (R2205) requires fault message parts
        # to refer to elements rather than types
        faulttype = fault_part.element
        if not faulttype
          warn("Fault message \"#{name}\" part \"#{fault_part.name}\" must specify an \"element\" attribute")
          faulttype = fault_part.type
        end
        if faulttype and result.index(faulttype).nil?
          result << faulttype
        end
      end
      result
    end

collect_modelgroups() click to toggle source

    # File lib/wsdl/definitions.rb, line 57
    def collect_modelgroups
      collect_imports(:collect_modelgroups)
    end

collect_simpletypes() click to toggle source

    # File lib/wsdl/definitions.rb, line 74
    def collect_simpletypes
      collect_imports(:collect_simpletypes)
    end

inspect() click to toggle source

    # File lib/wsdl/definitions.rb, line 42
    def inspect
      sprintf("#<%s:0x%x %s>", self.class.name, __id__, @name || '(unnamed)')
    end

message(name) click to toggle source

    # File lib/wsdl/definitions.rb, line 115
    def message(name)
      message = @messages[name]
      return message if message
      @imports.each do |import|
        message = import.content.message(name) if self.class === import.content
        return message if message
      end
      nil
    end

messages() click to toggle source

    # File lib/wsdl/definitions.rb, line 83
    def messages
      result = @messages.dup
      @imports.each do |import|
        result.concat(import.content.messages) if self.class === import.content
      end
      result
    end

parse_attr(attr, value) click to toggle source

    # File lib/wsdl/definitions.rb, line 199
    def parse_attr(attr, value)
      case attr
      when NameAttrName
        @name = XSD::QName.new(targetnamespace, value.source)
      when TargetNamespaceAttrName
        self.targetnamespace = value.source
      else
        nil
      end
    end

parse_element(element) click to toggle source

    # File lib/wsdl/definitions.rb, line 165
    def parse_element(element)
      case element
      when ImportName
        o = Import.new
        @imports << o
        o
      when TypesName
        o = Types.new
        @types = o
        o
      when MessageName
        o = Message.new
        @messages << o
        o
      when PortTypeName
        o = PortType.new
        @porttypes << o
        o
      when BindingName
        o = Binding.new
        @bindings << o
        o
      when ServiceName
        o = Service.new
        @services << o
        o
      when DocumentationName
        o = Documentation.new
        o
      else
        nil
      end
    end

porttype(name) click to toggle source

    # File lib/wsdl/definitions.rb, line 125
    def porttype(name)
      porttype = @porttypes[name]
      return porttype if porttype
      @imports.each do |import|
        porttype = import.content.porttype(name) if self.class === import.content
        return porttype if porttype
      end
      nil
    end

porttype_binding(name) click to toggle source

    # File lib/wsdl/definitions.rb, line 155
    def porttype_binding(name)
      binding = @bindings.find { |item| item.type == name }
      return binding if binding
      @imports.each do |import|
        binding = import.content.porttype_binding(name) if self.class === import.content
        return binding if binding
      end
      nil
    end

porttypes() click to toggle source

    # File lib/wsdl/definitions.rb, line 91
    def porttypes
      result = @porttypes.dup
      @imports.each do |import|
        result.concat(import.content.porttypes) if self.class === import.content
      end
      result
    end

service(name) click to toggle source

    # File lib/wsdl/definitions.rb, line 145
    def service(name)
      service = @services[name]
      return service if service
      @imports.each do |import|
        service = import.content.service(name) if self.class === import.content
        return service if service
      end
      nil
    end

services() click to toggle source

    # File lib/wsdl/definitions.rb, line 107
    def services
      result = @services.dup
      @imports.each do |import|
        result.concat(import.content.services) if self.class === import.content
      end
      result
    end

soap_rpc_complextypes(binding) click to toggle source

    # File lib/wsdl/soap/definitions.rb, line 75
    def soap_rpc_complextypes(binding)
      types = rpc_operation_complextypes(binding)
      types + self.class.soap_rpc_complextypes
    end

targetnamespace=(targetnamespace) click to toggle source

    # File lib/wsdl/definitions.rb, line 46
    def targetnamespace=(targetnamespace)
      @targetnamespace = targetnamespace
      if @name
        @name = XSD::QName.new(@targetnamespace, @name.name)
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.