Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/branches/1_5/lib/wsdl/soap/binding.rb

Revision 1824, 0.9 kB (checked in by nahi, 2 years ago)
  • Copyright notice updated. add '2000-2007' uniformly.
  • Property svn:eol-style set to native
  • Property svn:keywords set to author date id revision
Line 
1 # WSDL4R - WSDL SOAP binding definition.
2 # Copyright (C) 2000-2007  NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
3
4 # This program is copyrighted free software by NAKAMURA, Hiroshi.  You can
5 # redistribute it and/or modify it under the same terms of Ruby's license;
6 # either the dual license version in 2003, or any later version.
7
8
9 require 'wsdl/info'
10
11
12 module WSDL
13 module SOAP
14
15
16 class Binding < Info
17   attr_reader :style
18   attr_reader :transport
19
20   def initialize
21     super
22     @style = nil
23     @transport = nil
24   end
25
26   def parse_element(element)
27     nil
28   end
29
30   def parse_attr(attr, value)
31     case attr
32     when StyleAttrName
33       if ["document", "rpc"].include?(value.source)
34         @style = value.source.intern
35       else
36         raise Parser::AttributeConstraintError.new(
37           "Unexpected value #{ value }.")
38       end
39     when TransportAttrName
40       @transport = value.source
41     else
42       nil
43     end
44   end
45 end
46
47
48 end
49 end
Note: See TracBrowser for help on using the browser.