Module: ActionWebService::Protocol::Soap::ClassMethods

Defined in:
lib/action_web_service/protocol/soap_protocol.rb

Instance Method Summary collapse

Instance Method Details

#soap_mapperObject

:nodoc:



34
35
36
# File 'lib/action_web_service/protocol/soap_protocol.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 MyController < ActionController::Base
  wsdl_service_name 'MyService'
end


30
31
32
# File 'lib/action_web_service/protocol/soap_protocol.rb', line 30

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