summaryrefslogtreecommitdiff
path: root/sample/soap/icd/IICD.rb
blob: 3b1fa9b32c5124b9f55ba6429e0d8b5f341c84f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module IICD
  # All methods in a single namespace?!
  InterfaceNS = 'http://www.iwebmethod.net'

  Methods = [
    ['SearchWord', 'query', 'partial'],
    ['GetItemById', 'id'],
    ['EnumWords'],
    ['FullTextSearch', 'query'],
  ]

  def IICD.add_method(drv)
    Methods.each do |method, *param|
      drv.add_method_with_soapaction(method, InterfaceNS + "/#{ method }", *param )
    end
  end
end