summaryrefslogtreecommitdiff
path: root/lib/wsdl/operation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wsdl/operation.rb')
-rw-r--r--lib/wsdl/operation.rb29
1 files changed, 7 insertions, 22 deletions
diff --git a/lib/wsdl/operation.rb b/lib/wsdl/operation.rb
index ff3450d234..be28446d34 100644
--- a/lib/wsdl/operation.rb
+++ b/lib/wsdl/operation.rb
@@ -1,20 +1,9 @@
-=begin
-WSDL4R - WSDL operation definition.
-Copyright (C) 2002, 2003 NAKAMURA, Hiroshi.
+# WSDL4R - WSDL operation definition.
+# Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
-This program is free software; you can redistribute it and/or modify it under
-the terms of the GNU General Public License as published by the Free Software
-Foundation; either version 2 of the License, or (at your option) any later
-version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-PRATICULAR PURPOSE. See the GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along with
-this program; if not, write to the Free Software Foundation, Inc., 675 Mass
-Ave, Cambridge, MA 02139, USA.
-=end
+# This program is copyrighted free software by NAKAMURA, Hiroshi. You can
+# redistribute it and/or modify it under the same terms of Ruby's license;
+# either the dual license version in 2003, or any later version.
require 'wsdl/info'
@@ -49,7 +38,7 @@ class Operation < Info
@parameter_order = nil
@input = nil
@output = nil
- @fault = nil
+ @fault = []
end
def targetnamespace
@@ -76,10 +65,6 @@ class Operation < Info
sort_parts(output.find_message.parts)
end
- def faultparts
- sort_parts(fault.find_message.parts)
- end
-
def outputname
XSD::QName.new(targetnamespace,
output.name ? output.name.name : @name.name + 'Response')
@@ -97,7 +82,7 @@ class Operation < Info
o
when FaultName
o = Param.new
- @fault = o
+ @fault << o
o
when DocumentationName
o = Documentation.new