title: PHP: Catchable fatal error: Object of class stdClass could not be converted to string
body: <p>I get the following dump &amp; error when running the attached code.  What I'm confused by is that $procID appears to be returned as a string, but as soon as I attempt to pass it again, its an object?  How do I get it to be/stay a string?  Thanks.</p>
  
  <pre>
  object(stdClass)#2 (1) {
  ["processId"]=> string(13)
  "Genesis114001" }  string(311)
  "Genesis114001" string(293) " Genesis
  " Catchable fatal error: Object of
  class stdClass could not be converted
  to string in
  C:\wamp\www\SugarCE\testSOAPShawn.php
  on line 15</pre>
  
  <pre><code>&lt;?php
  set_time_limit(0);
  require_once('nusoap.php');
  require_once('BenefitSOAP.php');  //WSDL to PHP Classes
  $client = new SoapClient('C:\wsdl\BenefitDeterminationProcess_BenefitDialogueServiceSOAP.wsdl', array('trace' =&gt; 1));
  $procID = $client-&gt;start(array("prefix"=&gt;"Genesis"));
  $respXML = $client-&gt;__getLastResponse();
  $requXML = $client-&gt;__getLastRequest();
  echo "&lt;p/&gt;";
  var_dump($procID);
  //echo "&lt;p/&gt;";
  var_dump($respXML);
  //echo "&lt;p/&gt;";
  var_dump($requXML);
  $exchange = $client-&gt;exchangeOptions(array("processId"=&gt;$procID)); //LINE 15
  $end = $client-&gt;stop(array("processId"=&gt;$procID));
  ?&gt;
  </code></pre>