SOAP with custom form select
The #options property should be an array of key value pairs (the key is the &lt;option&gt;'s value attribute, the value is the content of that tag), so:

$options = array();
foreach($sxml2-&gt;NewDataSet-&gt;DepCity as $item) {
  $options[$item-&gt;Name] = $item-&gt;Name;
}

$form['from'] = array(
  '#type' =&gt; 'select',
  '#title' =&gt; t('From'),
  '#options' =&gt; $options,
);


That's just for demonstration, you may wish to use something other than a name for the option key - it's the sort of thing that would clash easily.