Module: ActionService::Protocol::Soap::ClassMethods

Defined in:
lib/action_service/protocol/soap.rb

Instance Method Summary collapse

Instance Method Details

#soap_mapperObject

:nodoc:



34
35
36
# File 'lib/action_service/protocol/soap.rb', line 34

def soap_mapper # :nodoc:
  read_inheritable_attribute("soap_mapper")
end

#wsdl_service_name(name) ⇒ Object

Specifies the WSDL service name to use when generating WSDL. Highly recommended that you set this value, or code generators may generate classes with very generic names.

Example

class ApiController < ActionController::Base
  wsdl_service_name 'Test'
end


30
31
32
# File 'lib/action_service/protocol/soap.rb', line 30

def wsdl_service_name(name)
  write_inheritable_attribute("soap_mapper", SoapMapper.new("urn:#{name}"))
end