Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]
Show
Ignore:
Timestamp:
09/20/07 23:38:42 (1 year ago)
Author:
nahi
Message:
  • sample updated.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/sample/showcase/wsdl/raa2.4/raa.rb

    r1843 r1977  
    1 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
     1require 'xsd/qname' 
     2 
     3# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}Gem 
     4#   id - SOAP::SOAPInt 
     5#   category - Category 
     6#   owner - Owner 
     7#   project - Project 
     8#   updated - SOAP::SOAPDateTime 
     9#   created - SOAP::SOAPDateTime 
    210class Gem 
    3   @@schema_type = "Gem" 
    4   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     11  attr_accessor :id 
     12  attr_accessor :category 
     13  attr_accessor :owner 
     14  attr_accessor :project 
     15  attr_accessor :updated 
     16  attr_accessor :created 
    517 
    6   def id 
    7     @id 
    8   end 
    9  
    10   def id=(value) 
    11     @id = value 
    12   end 
    13  
    14   def category 
    15     @category 
    16   end 
    17  
    18   def category=(value) 
    19     @category = value 
    20   end 
    21  
    22   def owner 
    23     @owner 
    24   end 
    25  
    26   def owner=(value) 
    27     @owner = value 
    28   end 
    29  
    30   def project 
    31     @project 
    32   end 
    33  
    34   def project=(value) 
    35     @project = value 
    36   end 
    37  
    38   def updated 
    39     @updated 
    40   end 
    41  
    42   def updated=(value) 
    43     @updated = value 
    44   end 
    45  
    46   def created 
    47     @created 
    48   end 
    49  
    50   def created=(value) 
    51     @created = value 
    52   end 
    53  
    54   def initialize(id = nil, 
    55       category = nil, 
    56       owner = nil, 
    57       project = nil, 
    58       updated = nil, 
    59       created = nil) 
     18  def initialize(id = nil, category = nil, owner = nil, project = nil, updated = nil, created = nil) 
    6019    @id = id 
    6120    @category = category 
     
    6726end 
    6827 
    69 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
     28# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}Category 
     29#   major - SOAP::SOAPString 
     30#   minor - SOAP::SOAPString 
    7031class Category 
    71   @@schema_type = "Category" 
    72   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     32  attr_accessor :major 
     33  attr_accessor :minor 
    7334 
    74   def major 
    75     @major 
    76   end 
    77  
    78   def major=(value) 
    79     @major = value 
    80   end 
    81  
    82   def minor 
    83     @minor 
    84   end 
    85  
    86   def minor=(value) 
    87     @minor = value 
    88   end 
    89  
    90   def initialize(major = nil, 
    91       minor = nil) 
     35  def initialize(major = nil, minor = nil) 
    9236    @major = major 
    9337    @minor = minor 
     
    9539end 
    9640 
    97 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
     41# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}Owner 
     42#   id - SOAP::SOAPInt 
     43#   email - SOAP::SOAPAnyURI 
     44#   name - SOAP::SOAPString 
    9845class Owner 
    99   @@schema_type = "Owner" 
    100   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     46  attr_accessor :id 
     47  attr_accessor :email 
     48  attr_accessor :name 
    10149 
    102   def id 
    103     @id 
    104   end 
    105  
    106   def id=(value) 
    107     @id = value 
    108   end 
    109  
    110   def email 
    111     @email 
    112   end 
    113  
    114   def email=(value) 
    115     @email = value 
    116   end 
    117  
    118   def name 
    119     @name 
    120   end 
    121  
    122   def name=(value) 
    123     @name = value 
    124   end 
    125  
    126   def initialize(id = nil, 
    127       email = nil, 
    128       name = nil) 
     50  def initialize(id = nil, email = nil, name = nil) 
    12951    @id = id 
    13052    @email = email 
     
    13355end 
    13456 
    135 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
     57# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}Project 
     58#   name - SOAP::SOAPString 
     59#   short_description - SOAP::SOAPString 
     60#   version - SOAP::SOAPString 
     61#   status - SOAP::SOAPString 
     62#   url - SOAP::SOAPAnyURI 
     63#   download - SOAP::SOAPAnyURI 
     64#   license - SOAP::SOAPString 
     65#   description - SOAP::SOAPString 
     66#   description_style - SOAP::SOAPString 
     67#   updated - SOAP::SOAPDateTime 
     68#   history - ProjectArray 
     69#   dependency - ProjectDependencyArray 
    13670class Project 
    137   @@schema_type = "Project" 
    138   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     71  attr_accessor :name 
     72  attr_accessor :short_description 
     73  attr_accessor :version 
     74  attr_accessor :status 
     75  attr_accessor :url 
     76  attr_accessor :download 
     77  attr_accessor :license 
     78  attr_accessor :description 
     79  attr_accessor :description_style 
     80  attr_accessor :updated 
     81  attr_accessor :history 
     82  attr_accessor :dependency 
    13983 
    140   def name 
    141     @name 
    142   end 
    143  
    144   def name=(value) 
    145     @name = value 
    146   end 
    147  
    148   def short_description 
    149     @short_description 
    150   end 
    151  
    152   def short_description=(value) 
    153     @short_description = value 
    154   end 
    155  
    156   def version 
    157     @version 
    158   end 
    159  
    160   def version=(value) 
    161     @version = value 
    162   end 
    163  
    164   def status 
    165     @status 
    166   end 
    167  
    168   def status=(value) 
    169     @status = value 
    170   end 
    171  
    172   def url 
    173     @url 
    174   end 
    175  
    176   def url=(value) 
    177     @url = value 
    178   end 
    179  
    180   def download 
    181     @download 
    182   end 
    183  
    184   def download=(value) 
    185     @download = value 
    186   end 
    187  
    188   def license 
    189     @license 
    190   end 
    191  
    192   def license=(value) 
    193     @license = value 
    194   end 
    195  
    196   def description 
    197     @description 
    198   end 
    199  
    200   def description=(value) 
    201     @description = value 
    202   end 
    203  
    204   def updated 
    205     @updated 
    206   end 
    207  
    208   def updated=(value) 
    209     @updated = value 
    210   end 
    211  
    212   def history 
    213     @history 
    214   end 
    215  
    216   def history=(value) 
    217     @history = value 
    218   end 
    219  
    220   def dependency 
    221     @dependency 
    222   end 
    223  
    224   def dependency=(value) 
    225     @dependency = value 
    226   end 
    227  
    228   def initialize(name = nil, 
    229       short_description = nil, 
    230       version = nil, 
    231       status = nil, 
    232       url = nil, 
    233       download = nil, 
    234       license = nil, 
    235       description = nil, 
    236       updated = nil, 
    237       history = nil, 
    238       dependency = nil) 
     84  def initialize(name = nil, short_description = nil, version = nil, status = nil, url = nil, download = nil, license = nil, description = nil, description_style = nil, updated = nil, history = nil, dependency = nil) 
    23985    @name = name 
    24086    @short_description = short_description 
     
    24591    @license = license 
    24692    @description = description 
     93    @description_style = description_style 
    24794    @updated = updated 
    24895    @history = history 
     
    25198end 
    25299 
    253 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
     100# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}ProjectDependency 
     101#   project - SOAP::SOAPString 
     102#   version - SOAP::SOAPString 
     103#   description - SOAP::SOAPString 
    254104class ProjectDependency 
    255   @@schema_type = "ProjectDependency" 
    256   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     105  attr_accessor :project 
     106  attr_accessor :version 
     107  attr_accessor :description 
    257108 
    258   def project 
    259     @project 
    260   end 
    261  
    262   def project=(value) 
    263     @project = value 
    264   end 
    265  
    266   def version 
    267     @version 
    268   end 
    269  
    270   def version=(value) 
    271     @version = value 
    272   end 
    273  
    274   def description 
    275     @description 
    276   end 
    277  
    278   def description=(value) 
    279     @description = value 
    280   end 
    281  
    282   def initialize(project = nil, 
    283       version = nil, 
    284       description = nil) 
     109  def initialize(project = nil, version = nil, description = nil) 
    285110    @project = project 
    286111    @version = version 
     
    289114end 
    290115 
    291 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
    292 class GemArray < Array 
    293   # Contents type should be dumped here... 
    294   @@schema_type = "GemArray" 
    295   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     116# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}GemArray 
     117class GemArray < ::Array 
    296118end 
    297119 
    298 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
    299 class OwnerArray < Array 
    300   # Contents type should be dumped here... 
    301   @@schema_type = "OwnerArray" 
    302   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     120# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}OwnerArray 
     121class OwnerArray < ::Array 
    303122end 
    304123 
    305 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
    306 class ProjectArray < Array 
    307   # Contents type should be dumped here... 
    308   @@schema_type = "ProjectArray" 
    309   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     124# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}ProjectArray 
     125class ProjectArray < ::Array 
    310126end 
    311127 
    312 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
    313 class ProjectDependencyArray < Array 
    314   # Contents type should be dumped here... 
    315   @@schema_type = "ProjectDependencyArray" 
    316   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     128# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}ProjectDependencyArray 
     129class ProjectDependencyArray < ::Array 
    317130end 
    318131 
    319 # http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/ 
    320 class StringArray < Array 
    321   # Contents type should be dumped here... 
    322   @@schema_type = "StringArray" 
    323   @@schema_ns = "http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/" 
     132# {http://www.ruby-lang.org/xmlns/soap/type/RAA/0.0.3/}StringArray 
     133class StringArray < ::Array 
    324134end 
    325  
    326 # http://xml.apache.org/xml-soap 
    327 class Map < Array 
    328   # Contents type should be dumped here... 
    329   @@schema_type = "Map" 
    330   @@schema_ns = "http://xml.apache.org/xml-soap" 
    331 end 
    332