From: Steve Vanspall Date: 2007-12-14T14:52:43+09:00 Subject: How to set a SOAP object to nil Hi, we are using SOAP::WSDLDriverFactory and creating an rpc driver based on a WSDL file. We have a complex type that we want to be able to set to nil or null in the soap request. In order to make this more dynamic we create a object whose instance variable map to one of the elements in the WSDL file. So say there is a complex type of Accountant within another complex type of Applicant and Accountant has a number of different fields. (NOTE: Example below has been cut down to give you the basic idea) so if I have object 1 with in0 set as an instance variable object 1 @in0 = object 2 and object 2 with no instance variables set (so no accountant set) object 2 when I call rpc_driver.submitPreapproval(object 1) I would expect that the soap request has accountant set to null. Instead I find that it has an accountant complextype with blank strings for all it's fields. Is there something I need to know to make sure accountant is sent down the line as null? Any help would be appreciated Steve -- Posted via http://www.ruby-forum.com/.