Errore irreversibile: exception Uncaught SoapFault: Errore interno

Sto cercando di submit un messaggio di prova con il mio client PHP SOAP. Sto usando la libreria BeSimpleSoap perché ho avuto problemi con il PHP standard SOAP calss e la class NuSOAP. Parte del copione è:

$client = new BeSimple\SoapClient\SoapClient("GSBService.wsdl", arrays( "trace"=>1, "exceptions"=>1, 'location'=>$SERVICE_TEST, "local_cert" =>$SOAP_cert, 'uri'=>$NAMESPACE_URI, "passphrase"=>$cert_password, "connection_timeout" => 60)); var_dump($client->echo('abc1234')); print_r( $client->sendMessage($par_envelope)); echo "<p>Request :".htmlspecialchars($client->__getLastRequest()) ."</p>"; echo "<p>Response:".htmlspecialchars($client->__getLastResponse())."</p>"; echo "<p>Debug:".soapDebug($client)."</p>"; 

L'errore è:

  string(57) "Request: 'abc1234'. Response: '2014-02-12T09:39:56.474Z'." Fatal error: Uncaught SoapFault exception: [env:Client] Internal Error in C:\xampp\htdocs\NIAS\HZZO-OKP-SOAP.php:146 Stack trace: #0 C:\xampp\htdocs\NIAS\HZZO-OKP-SOAP.php(146): SoapClient->__call('sendMessage', Array) #1 C:\xampp\htdocs\NIAS\HZZO-OKP-SOAP.php(146): BeSimple\SoapClient\SoapClient->sendMessage(Array) #2 {main} thrown in C:\xampp\htdocs\NIAS\HZZO-OKP-SOAP.php on line 146 

Provai:

 ini_set('soap.wsdl_cache_enabled',0); 

e ottenuto questo:

 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from 'file:///schema/GSBSchema.xsd' in C:\xampp\htdocs\NIAS\BeSimpleSoap-master\src\BeSimple\SoapClient\SoapClient.php:113 Stack trace: #0 C:\xampp\htdocs\NIAS\BeSimpleSoap-master\src\BeSimple\SoapClient\SoapClient.php(113): SoapClient->SoapClient('\wsdl_9429a1dff...', Array) #1 C:\xampp\htdocs\NIAS\HZZO-OKP-SOAP.php(134): BeSimple\SoapClient\SoapClient->__construct('GSBService.wsdl', Array) #2 {main} thrown in C:\xampp\htdocs\NIAS\BeSimpleSoap-master\src\BeSimple\SoapClient\SoapClient.php on line 113 

Il problema era nella codifica di $par_envelope . Dopo aver codificato la string in UTF-8 con utf8_encode non ho ottenuto l' Fatal error: Uncaught SoapFault exception: [env:Client] Internal Error