Changeset 1912
- Timestamp:
- 08/05/07 11:02:14 (1 year ago)
- Files:
-
- trunk/lib/soap/mapping/literalregistry.rb (modified) (2 diffs)
- trunk/test/wsdl/document/array/double.wsdl (modified) (2 diffs)
- trunk/test/wsdl/document/array/test_array.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/mapping/literalregistry.rb
r1908 r1912 126 126 127 127 def stubobj2soap(obj, qname, definition) 128 if obj.is_a?(::String) 128 if obj.nil? 129 ele = SOAPNil.new 130 ele.elename = qname 131 elsif obj.is_a?(::String) 129 132 ele = SOAPElement.new(qname, obj) 130 133 else … … 138 141 ele.elename = definition.elename 139 142 end 143 return ele if obj.nil? 140 144 stubobj2soap_elements(obj, ele, definition.elements) 141 145 if definition.attributes trunk/test/wsdl/document/array/double.wsdl
r1852 r1912 19 19 <s:complexType> 20 20 <s:sequence> 21 <s:element minOccurs="0" maxOccurs="1" name="ary" 22 type="tns:ArrayOfDouble"/> 21 <s:element nilleble="true" maxOccurs="1" name="ary" type="tns:ArrayOfDouble"/> 23 22 </s:sequence> 24 23 </s:complexType> … … 27 26 <s:complexType> 28 27 <s:sequence> 29 <s:element minOccurs="0" maxOccurs="1" name="ary" 30 type="tns:ArrayOfDouble"/> 28 <s:element nilleble="true" maxOccurs="1" name="ary" type="tns:ArrayOfDouble"/> 31 29 </s:sequence> 32 30 </s:complexType> trunk/test/wsdl/document/array/test_array.rb
r1871 r1912 129 129 assert_equal(double, @client.echo(:ary => double).ary) 130 130 end 131 132 def test_stub 133 @client = ::WSDL::Document::PricerSoap.new("http://localhost:#{Port}/") 134 @client.wiredump_dev = STDOUT if $DEBUG 135 double = [0.1, 0.2, 0.3] 136 assert_equal(double, @client.echo(:ary => double).ary) 137 end 138 139 def test_stub_nil 140 @client = ::WSDL::Document::PricerSoap.new("http://localhost:#{Port}/") 141 @client.wiredump_dev = STDOUT if $DEBUG 142 assert_equal(nil, @client.echo(Echo.new).ary) 143 end 131 144 end 132 145