method
soap2obj
ruby latest stable - Class:
SOAP::Mapping::WSDLLiteralRegistry
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.
soap2obj(node, obj_class = nil)public
node should be a SOAPElement
# File lib/soap/mapping/wsdlliteralregistry.rb, line 56
def soap2obj(node, obj_class = nil)
# obj_class is given when rpc/literal service. but ignored for now.
begin
return any2obj(node)
rescue MappingError
end
if @excn_handler_soap2obj
begin
return @excn_handler_soap2obj.call(node) { |yield_node|
Mapping.soap2obj(yield_node, nil, nil, MAPPING_OPT)
}
rescue Exception
end
end
if node.respond_to?(:type)
raise MappingError.new("cannot map #{node.type.name} to Ruby object")
else
raise MappingError.new("cannot map #{node.elename.name} to Ruby object")
end
end Related methods
- Instance methods
- obj2soap
- soap2obj
- Class methods
- new
- Private methods
-
add_attributes2plainobj -
add_attributes2soap -
add_attributes2stubobj -
add_elements2plainobj -
add_elements2soap -
add_elements2stubobj -
any2obj -
any2soap -
anytype2obj -
base2soap -
complexobj2soap -
define_xmlattr -
define_xmlattr -
define_xmlattr_accessor -
define_xmlattr_accessor -
mappingobj2soap -
obj2elesoap -
obj2typesoap -
schema_attribute_definition -
schema_element_definition -
simpleobj2soap -
soapele2plainobj -
soapele2stubobj -
stubobj2soap