Is there a flag that can be sent with the Zend_Soap that will allow the client 
software to ignore the lack of an XML decaration at the top of the file. I am 
using the following code to send my query.

        $client = new Zend_Soap_Client($wsdl,
                array(  'compression' => SOAP_COMPRESSION_ACCEPT,
                                'soap_version' => SOAP_1_1)  // Don't mess with 
this or the queries will fail. With wrong content type.
                );
        echo "<h1>Client Types</h1><pre>\n" . print_r 
($client->getTypes(),true) . '</pre>'; // Output the list of SOAP types used. 
        echo "<h1>Client Functions</h1><pre>\n" . print_r 
($client->getFunctions(),true) . '</pre>'; // Output the list of SOAP functions 
used.
        // Try a query for a known good query.  
        try { 
            echo "<h1>GetCaseSummary</h1><pre>\n";                          
            var_dump($client->GetCaseSummary (array ('userName' =>      
$username,      'passWord'      =>      $password,      'caseDscr'      =>      
'uwrEnZRTI8jWaylNvSksnfVhg9UNSgpwLm/bgu0xOTg='))); 
            echo "\n</pre>\n"; 
        } catch (SoapFault $exception) { 
                echo "<pre>\n";
                echo 
"RequestHeaders:\n".htmlspecialchars($client->getLastRequestHeaders())."\n";
                echo "Request :\n".htmlspecialchars($client->getLastRequest()) 
."\n";
                echo 
"ResponseHeaders:\n".htmlspecialchars($client->getLastResponseHeaders())."\n";
                echo 
"Response:\n".htmlspecialchars($client->getLastResponse())."\n";
                echo "</pre>Trace"; 
            Zend_Debug::dump ($exception);       
          } 

When the reply is sent it is missing the '<?xml version="1.0" 
encoding="UTF-8"?>' string. Is there a way to tell Zend_Soap to ignore this 
error and parse the file anyways or is there a way to work around this.

Reply via email to