Flowdock
method

create_method_struct

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::WSDLDriver::Servant__
create_method_struct(op_info, *params) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/soap/wsdlDriver.rb, line 422
    def create_method_struct(op_info, *params)
      parts_names = op_info.bodyparts.collect { |part| part.name }
      obj = create_method_obj(parts_names, params)
      method = Mapping.obj2soap(obj, @wsdl_mapping_registry, op_info.op_name)
      if method.members.size != parts_names.size
        new_method = SOAPStruct.new
        method.each do |key, value|
          if parts_names.include?(key)
            new_method.add(key, value)
          end
        end
        method = new_method
      end
      method.elename = op_info.op_name
      method.type = XSD::QName.new      # Request should not be typed.
      method
    end
Register or log in to add new notes.