Could fix encoding bug in webservices (registration.soap) see BT#4158 (code is commented)

skala
Julio Montoya 13 years ago
parent a9d52662fb
commit 571dba9e80
  1. 4
      main/inc/lib/nusoap/nusoap.php
  2. 3
      main/webservices/registration.soap.php

@ -4548,6 +4548,9 @@ class nusoap_server extends nusoap_base {
}
$this->wsdl = new wsdl;
//$this->wsdl->soap_defencoding = $this->soap_defencoding;
$this->wsdl->serviceName = $serviceName;
$this->wsdl->endpoint = $endpoint;
$this->wsdl->namespaces['tns'] = $namespace;
@ -5471,6 +5474,7 @@ class wsdl extends nusoap_base {
*/
function serialize($debug = 0)
{
/* $xml = '<?xml version="1.0" encoding="'.$this->soap_defencoding.'"?>';*/
$xml = '<?xml version="1.0" encoding="ISO-8859-1"?>';
$xml .= "\n<definitions";
foreach($this->namespaces as $k => $v) {

@ -51,6 +51,9 @@ function WSHelperVerifyKey($params) {
// Create the server instance
$server = new soap_server();
//$server->soap_defencoding = 'UTF-8';
// Initialize WSDL support
$server->configureWSDL('WSRegistration', 'urn:WSRegistration');

Loading…
Cancel
Save