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

Changeset 1501

Show
Ignore:
Timestamp:
04/18/05 00:06:48 (4 years ago)
Author:
nahi
Message:

updated

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/wsdl/document/echo.rb

    r1471 r1501  
    1 # urn:docrpc 
     1require 'xsd/qname' 
     2 
     3# {urn:docrpc}echoele 
    24class Echoele 
    35  @@schema_type = "echoele" 
    46  @@schema_ns = "urn:docrpc" 
    5   @@schema_attribute = {"attr_string" => "SOAP::SOAPString", "attr_int" => "SOAP::SOAPInt"} 
    6   @@schema_element = [["struct1", "Echo_struct"], ["struct2", "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")]]] 
    79 
    810  attr_accessor :struct1 
    9   attr_accessor :struct
     11  attr_accessor :struct_
    1012 
    1113  def attr_attr_string 
     
    1820 
    1921  def attr_attr_int 
    20     (@__soap_attribute ||= {})["attr_int"] 
     22    (@__soap_attribute ||= {})["attr-int"] 
    2123  end 
    2224 
    2325  def attr_attr_int=(value) 
    24     (@__soap_attribute ||= {})["attr_int"] = value 
     26    (@__soap_attribute ||= {})["attr-int"] = value 
    2527  end 
    2628 
    27   def initialize(struct1 = nil, struct2 = nil) 
     29  def initialize(struct1 = nil, struct_2 = nil) 
    2830    @struct1 = struct1 
    29     @struct2 = struct
     31    @struct_2 = struct_
    3032    @__soap_attribute = {} 
    3133  end 
    3234end 
    3335 
    34 # urn:docrpc 
     36# {urn:docrpc}echo_response 
    3537class Echo_response 
    3638  @@schema_type = "echo_response" 
    3739  @@schema_ns = "urn:docrpc" 
    38   @@schema_attribute = {"attr_string" => "SOAP::SOAPString", "attr_int" => "SOAP::SOAPInt"} 
    39   @@schema_element = [["struct1", "Echo_struct"], ["struct2", "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")]]] 
    4042 
    4143  attr_accessor :struct1 
    42   attr_accessor :struct
     44  attr_accessor :struct_
    4345 
    4446  def attr_attr_string 
     
    5153 
    5254  def attr_attr_int 
    53     (@__soap_attribute ||= {})["attr_int"] 
     55    (@__soap_attribute ||= {})["attr-int"] 
    5456  end 
    5557 
    5658  def attr_attr_int=(value) 
    57     (@__soap_attribute ||= {})["attr_int"] = value 
     59    (@__soap_attribute ||= {})["attr-int"] = value 
    5860  end 
    5961 
    60   def initialize(struct1 = nil, struct2 = nil) 
     62  def initialize(struct1 = nil, struct_2 = nil) 
    6163    @struct1 = struct1 
    62     @struct2 = struct
     64    @struct_2 = struct_
    6365    @__soap_attribute = {} 
    6466  end 
    6567end 
    6668 
    67 # urn:docrpc 
     69# {urn:docrpc}echo_struct 
    6870class Echo_struct 
    6971  @@schema_type = "echo_struct"