Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • wsdl/param.rb

Class/Module Index [+]

Quicksearch

WSDL::Param

Attributes

message[R]
name[R]
soapbody[R]
soapfault[R]
soapheader[R]

Public Class Methods

new() click to toggle source
 
               # File wsdl/param.rb, line 22
def initialize
  super
  @message = nil
  @name = nil
  @soapbody = nil
  @soapheader = []
  @soapfault = nil
end
            

Public Instance Methods

find_message() click to toggle source
 
               # File wsdl/param.rb, line 35
def find_message
  root.message(@message) or raise RuntimeError.new("#{@message} not found")
end
            
parse_attr(attr, value) click to toggle source
 
               # File wsdl/param.rb, line 69
def parse_attr(attr, value)
  case attr
  when MessageAttrName
    if value.namespace.nil?
      value = XSD::QName.new(targetnamespace, value.source)
    end
    @message = value
  when NameAttrName
    @name = XSD::QName.new(targetnamespace, value.source)
  else
    nil
  end
end
            
parse_element(element) click to toggle source
 
               # File wsdl/param.rb, line 47
def parse_element(element)
  case element
  when SOAPBodyName
    o = WSDL::SOAP::Body.new
    @soapbody = o
    o
  when SOAPHeaderName
    o = WSDL::SOAP::Header.new
    @soapheader << o
    o
  when SOAPFaultName
    o = WSDL::SOAP::Fault.new
    @soap_fault = o
    o
  when DocumentationName
    o = Documentation.new
    o
  else
    nil
  end
end
            
soapbody_use() click to toggle source
 
               # File wsdl/param.rb, line 39
def soapbody_use
  if @soapbody
    @soapbody.use || :literal
  else
    raise RuntimeError.new("soap:body not found")
  end
end
            
targetnamespace() click to toggle source
 
               # File wsdl/param.rb, line 31
def targetnamespace
  parent.targetnamespace
end