Changeset 1501
- Timestamp:
- 04/18/05 00:06:48 (4 years ago)
- Files:
-
- trunk/test/wsdl/document/echo.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/wsdl/document/echo.rb
r1471 r1501 1 # urn:docrpc 1 require 'xsd/qname' 2 3 # {urn:docrpc}echoele 2 4 class Echoele 3 5 @@schema_type = "echoele" 4 6 @@schema_ns = "urn:docrpc" 5 @@schema_attribute = {"attr_string" => "SOAP::SOAPString", "attr _int" => "SOAP::SOAPInt"}6 @@schema_element = [["struct1", "Echo_struct"], ["struct 2", "Echo_struct"]]7 @@schema_attribute = {"attr_string" => "SOAP::SOAPString", "attr-int" => "SOAP::SOAPInt"} 8 @@schema_element = [["struct1", "Echo_struct"], ["struct_2", ["Echo_struct", XSD::QName.new(nil, "struct-2")]]] 7 9 8 10 attr_accessor :struct1 9 attr_accessor :struct 211 attr_accessor :struct_2 10 12 11 13 def attr_attr_string … … 18 20 19 21 def attr_attr_int 20 (@__soap_attribute ||= {})["attr _int"]22 (@__soap_attribute ||= {})["attr-int"] 21 23 end 22 24 23 25 def attr_attr_int=(value) 24 (@__soap_attribute ||= {})["attr _int"] = value26 (@__soap_attribute ||= {})["attr-int"] = value 25 27 end 26 28 27 def initialize(struct1 = nil, struct 2 = nil)29 def initialize(struct1 = nil, struct_2 = nil) 28 30 @struct1 = struct1 29 @struct 2 = struct231 @struct_2 = struct_2 30 32 @__soap_attribute = {} 31 33 end 32 34 end 33 35 34 # urn:docrpc36 # {urn:docrpc}echo_response 35 37 class Echo_response 36 38 @@schema_type = "echo_response" 37 39 @@schema_ns = "urn:docrpc" 38 @@schema_attribute = {"attr_string" => "SOAP::SOAPString", "attr _int" => "SOAP::SOAPInt"}39 @@schema_element = [["struct1", "Echo_struct"], ["struct 2", "Echo_struct"]]40 @@schema_attribute = {"attr_string" => "SOAP::SOAPString", "attr-int" => "SOAP::SOAPInt"} 41 @@schema_element = [["struct1", "Echo_struct"], ["struct_2", ["Echo_struct", XSD::QName.new(nil, "struct-2")]]] 40 42 41 43 attr_accessor :struct1 42 attr_accessor :struct 244 attr_accessor :struct_2 43 45 44 46 def attr_attr_string … … 51 53 52 54 def attr_attr_int 53 (@__soap_attribute ||= {})["attr _int"]55 (@__soap_attribute ||= {})["attr-int"] 54 56 end 55 57 56 58 def attr_attr_int=(value) 57 (@__soap_attribute ||= {})["attr _int"] = value59 (@__soap_attribute ||= {})["attr-int"] = value 58 60 end 59 61 60 def initialize(struct1 = nil, struct 2 = nil)62 def initialize(struct1 = nil, struct_2 = nil) 61 63 @struct1 = struct1 62 @struct 2 = struct264 @struct_2 = struct_2 63 65 @__soap_attribute = {} 64 66 end 65 67 end 66 68 67 # urn:docrpc69 # {urn:docrpc}echo_struct 68 70 class Echo_struct 69 71 @@schema_type = "echo_struct"