- Timestamp:
- 09/15/05 10:07:44 (3 years ago)
- Files:
-
- trunk/lib/soap/encodingstyle/aspDotNetHandler.rb (modified) (1 diff)
- trunk/lib/soap/rpc/element.rb (modified) (2 diffs)
- trunk/lib/soap/rpc/proxy.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/encodingstyle/aspDotNetHandler.rb
r1581 r1624 30 30 def encode_data(generator, ns, data, parent) 31 31 attrs = {} 32 # ASPDotNetHandler is intended to be used for accessing an ASP.NET doc/lit 33 # service as an rpc/encoded service. in the situation, local elements 34 # should be qualified. propagate parent's namespace to children. 35 if data.elename.namespace.nil? 36 data.elename.namespace = parent.elename.namespace 37 end 32 38 name = generator.encode_name(ns, data, attrs) 33 39 case data trunk/lib/soap/rpc/element.rb
r1531 r1624 21 21 22 22 def response 23 root = root_node 23 24 if !@is_fault 24 if void?25 if root.nil? 25 26 nil 27 elsif root.is_a?(SOAPBasetype) 28 root 26 29 else 27 30 # Initial element is [retval]. 28 root _node[0]31 root[0] 29 32 end 30 33 else 31 root _node34 root 32 35 end 33 36 end 34 37 35 38 def outparams 36 if !@is_fault and !void? 37 op = root_node[1..-1] 39 root = root_node 40 if !@is_fault and !root.nil? and !root.is_a?(SOAPBasetype) 41 op = root[1..-1] 38 42 op = nil if op && op.empty? 39 43 op … … 41 45 nil 42 46 end 43 end44 45 def void?46 root_node.nil?47 47 end 48 48 trunk/lib/soap/rpc/proxy.rb
r1622 r1624 127 127 :soapaction => op_info.soapaction || @soapaction, 128 128 :envelopenamespace => @options["soap.envelope.requestnamespace"], 129 :default_encodingstyle => op_info.request_default_encodingstyle, 129 :default_encodingstyle => 130 @default_encodingstyle || op_info.request_default_encodingstyle, 130 131 :elementformdefault => op_info.elementformdefault, 131 132 :attributeformdefault => op_info.attributeformdefault … … 133 134 resopt = create_encoding_opt( 134 135 :envelopenamespace => @options["soap.envelope.responsenamespace"], 135 :default_encodingstyle => op_info.response_default_encodingstyle, 136 :default_encodingstyle => 137 @default_encodingstyle || op_info.response_default_encodingstyle, 136 138 :elementformdefault => op_info.elementformdefault, 137 139 :attributeformdefault => op_info.attributeformdefault