diff options
Diffstat (limited to 'lib/wsdl/operationBinding.rb')
| -rw-r--r-- | lib/wsdl/operationBinding.rb | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/lib/wsdl/operationBinding.rb b/lib/wsdl/operationBinding.rb deleted file mode 100644 index 4c04a884ea..0000000000 --- a/lib/wsdl/operationBinding.rb +++ /dev/null @@ -1,80 +0,0 @@ -# WSDL4R - WSDL bound operation definition. -# Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. - -# 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' - - -module WSDL - - -class OperationBinding < Info - attr_reader :name # required - attr_reader :input - attr_reader :output - attr_reader :fault - attr_reader :soapoperation - - def initialize - super - @name = nil - @input = nil - @output = nil - @fault = [] - @soapoperation = nil - end - - def targetnamespace - parent.targetnamespace - end - - def porttype - root.porttype(parent.type) - end - - def find_operation - porttype.operations[@name] - end - - def parse_element(element) - case element - when InputName - o = Param.new - @input = o - o - when OutputName - o = Param.new - @output = o - o - when FaultName - o = Param.new - @fault << o - o - when SOAPOperationName - o = WSDL::SOAP::Operation.new - @soapoperation = o - o - when DocumentationName - o = Documentation.new - o - else - nil - end - end - - def parse_attr(attr, value) - case attr - when NameAttrName - @name = XSD::QName.new(targetnamespace, value) - else - nil - end - end -end - - -end |
