source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/wsdl/soap/fault.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 1.0 KB
Line 
1# WSDL4R - WSDL SOAP body definition.
2# Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <[email protected]>.
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
9require 'wsdl/info'
10
11
12module WSDL
13module SOAP
14
15
16class 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
52end
53
54
55end
56end
Note: See TracBrowser for help on using the repository browser.