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.

Namespace
Methods
D
N
Constants
ArrayTypeAttrName = XSD::QName.new(Namespace, 'arrayType')
 
BindingName = XSD::QName.new(Namespace, 'binding')
 
DefinitionsName = XSD::QName.new(Namespace, 'definitions')
 
DocumentationName = XSD::QName.new(Namespace, 'documentation')
 
FaultName = XSD::QName.new(Namespace, 'fault')
 
ImportName = XSD::QName.new(Namespace, 'import')
 
InputName = XSD::QName.new(Namespace, 'input')
 
MessageName = XSD::QName.new(Namespace, 'message')
 
OperationName = XSD::QName.new(Namespace, 'operation')
 
OutputName = XSD::QName.new(Namespace, 'output')
 
PartName = XSD::QName.new(Namespace, 'part')
 
PortName = XSD::QName.new(Namespace, 'port')
 
PortTypeName = XSD::QName.new(Namespace, 'portType')
 
ServiceName = XSD::QName.new(Namespace, 'service')
 
TypesName = XSD::QName.new(Namespace, 'types')
 
SchemaName = XSD::QName.new(XSD::Namespace, 'schema')
 
SOAPAddressName = XSD::QName.new(SOAPBindingNamespace, 'address')
 
SOAPBindingName = XSD::QName.new(SOAPBindingNamespace, 'binding')
 
SOAPHeaderName = XSD::QName.new(SOAPBindingNamespace, 'header')
 
SOAPBodyName = XSD::QName.new(SOAPBindingNamespace, 'body')
 
SOAPFaultName = XSD::QName.new(SOAPBindingNamespace, 'fault')
 
SOAPOperationName = XSD::QName.new(SOAPBindingNamespace, 'operation')
 
BindingAttrName = XSD::QName.new(nil, 'binding')
 
ElementAttrName = XSD::QName.new(nil, 'element')
 
LocationAttrName = XSD::QName.new(nil, 'location')
 
MessageAttrName = XSD::QName.new(nil, 'message')
 
NameAttrName = XSD::QName.new(nil, 'name')
 
NamespaceAttrName = XSD::QName.new(nil, 'namespace')
 
ParameterOrderAttrName = XSD::QName.new(nil, 'parameterOrder')
 
TargetNamespaceAttrName = XSD::QName.new(nil, 'targetNamespace')
 
TypeAttrName = XSD::QName.new(nil, 'type')
 
DEFAULT_ITEM_NAME = XSD::QName.new(nil, 'item')
 
Version = '0.0.2'
 
Namespace = 'http://schemas.xmlsoap.org/wsdl/'
 
SOAPBindingNamespace = 'http://schemas.xmlsoap.org/wsdl/soap/'
 
Instance Public methods
dump_arraydef(complextype)
# File lib/wsdl/soap/classDefCreator.rb, line 266
def dump_arraydef(complextype)
  qname = complextype.name
  c = XSD::CodeGen::ClassDef.new(create_class_name(qname), '::Array')
  c.comment = "#{qname}"
  child_type = complextype.child_type
  c.def_classvar('schema_type', ndq(child_type.name))
  c.def_classvar('schema_ns', ndq(child_type.namespace))
  child_element = complextype.find_aryelement
  schema_element = []
  if child_type == XSD::AnyTypeName
    type = nil
  elsif child_element and (klass = element_basetype(child_element))
    type = klass.name
  elsif child_type
    type = create_class_name(child_type)
  else
    type = nil
  end
  if child_element
    if child_element.map_as_array?
      type << '[]' if type
    end
    child_element_name = child_element.name
  else
    child_element_name = DEFAULT_ITEM_NAME
  end
  schema_element << [child_element_name.name, child_element_name, type]
  c.def_classvar('schema_element',
    '[' +
      schema_element.collect { |varname, name, type|
        '[' +
          (
            if name
              varname.dump + ', [' + ndq(type) + ', ' + dqname(name) + ']'
            else
              varname.dump + ', ' + ndq(type)
            end
          ) +
        ']'
      }.join(', ') +
    ']'
  )
  c.dump
end
name_attribute(attribute)
# File lib/wsdl/soap/classDefCreator.rb, line 258
def name_attribute(attribute)
  return attribute.name if attribute.name
  return attribute.ref if attribute.ref
  raise RuntimeError.new("cannot define name of #{attribute}")
end
name_element(element)
# File lib/wsdl/soap/classDefCreator.rb, line 252
def name_element(element)
  return element.name if element.name
  return element.ref if element.ref
  raise RuntimeError.new("cannot define name of #{element}")
end