# SOAP and sending empty elements

**URL:** <https://www.ruby-forum.com/t/soap-and-sending-empty-elements/101366>\
**Category:** Ruby\
**Created:** [August 4, 2006, 3:03pm UTC](https://www.ruby-forum.com/t/soap-and-sending-empty-elements/101366 "2006-08-04T15:03:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![emcconne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/47e85d/32.png) [@emcconne](https://www.ruby-forum.com/u/emcconne)\
**Post date:** [August 4, 2006, 3:03pm UTC](https://www.ruby-forum.com/t/soap-and-sending-empty-elements/101366/1 "2006-08-04T15:03:16Z")

</div>

Using the classes provided by wsdl2ruby results in passing either “” or  
nil to create objects for use by the RPC driver. Is there any way to  
NOT send empty elements? For instance if I now have:

14 Bacon Street

Can this be changed so that only address1 is sent?
