~ubuntu-branches/ubuntu/hardy/ruby1.8/hardy-updates

« back to all changes in this revision

Viewing changes to lib/wsdl/soap/fault.rb

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2007-03-13 22:11:58 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070313221158-h3oql37brlaf2go2
Tags: 1.8.6-1
* new upstream version, 1.8.6.
* libruby1.8 conflicts with libopenssl-ruby1.8 (< 1.8.6) (closes: #410018)
* changed packaging style to cdbs from dbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# WSDL4R - WSDL SOAP body definition.
 
2
# Copyright (C) 2002, 2003  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 Fault < Info
 
17
  attr_reader :name     # required
 
18
  attr_reader :use      # required
 
19
  attr_reader :encodingstyle
 
20
  attr_reader :namespace
 
21
 
 
22
  def initialize
 
23
    super
 
24
    @name = nil
 
25
    @use = nil
 
26
    @encodingstyle = nil
 
27
    @namespace = nil
 
28
  end
 
29
 
 
30
  def targetnamespace
 
31
    parent.targetnamespace
 
32
  end
 
33
 
 
34
  def parse_element(element)
 
35
    nil
 
36
  end
 
37
 
 
38
  def parse_attr(attr, value)
 
39
    case attr
 
40
    when NameAttrName
 
41
      @name = XSD::QName.new(targetnamespace, value.source)
 
42
    when UseAttrName
 
43
      @use = value.source
 
44
    when EncodingStyleAttrName
 
45
      @encodingstyle = value.source
 
46
    when NamespaceAttrName
 
47
      @namespace = value.source
 
48
    else
 
49
      nil
 
50
    end
 
51
  end
 
52
end
 
53
 
 
54
 
 
55
end
 
56
end