Parent

Files

Class Index [+]

Quicksearch

WSDL::SOAP::Operation

Attributes

soapaction[R]
style[R]

Public Class Methods

new() click to toggle source
    # File lib/wsdl/soap/operation.rb, line 44
44:   def initialize
45:     super
46:     @soapaction = nil
47:     @style = nil
48:   end

Public Instance Methods

input_info() click to toggle source
    # File lib/wsdl/soap/operation.rb, line 70
70:   def input_info
71:     name_info = parent.find_operation.input_info
72:     param_info(name_info, parent.input)
73:   end
operation_style() click to toggle source
    # File lib/wsdl/soap/operation.rb, line 80
80:   def operation_style
81:     return @style if @style
82:     if parent_binding.soapbinding
83:       return parent_binding.soapbinding.style
84:     end
85:     nil
86:   end
output_info() click to toggle source
    # File lib/wsdl/soap/operation.rb, line 75
75:   def output_info
76:     name_info = parent.find_operation.output_info
77:     param_info(name_info, parent.output)
78:   end
parse_attr(attr, value) click to toggle source
    # File lib/wsdl/soap/operation.rb, line 54
54:   def parse_attr(attr, value)
55:     case attr
56:     when StyleAttrName
57:       if ["document", "rpc"].include?(value.source)
58:         @style = value.source.intern
59:       else
60:         raise Parser::AttributeConstraintError.new(
61:           "Unexpected value #{ value }.")
62:       end
63:     when SOAPActionAttrName
64:       @soapaction = value.source
65:     else
66:       nil
67:     end
68:   end
parse_element(element) click to toggle source
    # File lib/wsdl/soap/operation.rb, line 50
50:   def parse_element(element)
51:     nil
52:   end

Private Instance Methods

param_info(name_info, param) click to toggle source
     # File lib/wsdl/soap/operation.rb, line 94
 94:   def param_info(name_info, param)
 95:     op_style = operation_style()
 96:     op_use = param.soapbody_use
 97:     op_encodingstyle = param.soapbody_encodingstyle
 98:     op_name = name_info.op_name
 99:     optype_name = name_info.optype_name
100:     soapheader = param.soapheader
101:     headerparts = soapheader.collect { |item| item.find_part }
102:     soapbody = param.soapbody
103:     if soapbody.namespace
104:       op_name = XSD::QName.new(soapbody.namespace, op_name.name)
105:     end
106:     if soapbody.parts
107:       target = soapbody.parts.split(/\s+/)
108:       bodyparts = name_info.parts.find_all { |part|
109:         target.include?(part.name)
110:       }
111:     else
112:       bodyparts = name_info.parts
113:     end
114:     faultpart = nil
115:     OperationInfo.new(op_style, op_use, op_encodingstyle, op_name, optype_name,
116:       headerparts, bodyparts, faultpart, parent.soapaction)
117:   end
parent_binding() click to toggle source
    # File lib/wsdl/soap/operation.rb, line 90
90:   def parent_binding
91:     parent.parent
92:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.