Fix: Works with new nusoap lib

This commit is contained in:
Laurent Destailleur 2010-12-13 20:42:04 +00:00
parent a52e5888d0
commit 1889059dea
6 changed files with 7 additions and 7 deletions

View File

@ -35,12 +35,12 @@ $WS_METHOD2 = 'getInvoicesForThirdParty';
// Set the WebService URL // Set the WebService URL
dol_syslog("Create soapclient_nusoap for URL=".$WS_DOL_URL); dol_syslog("Create soapclient_nusoap for URL=".$WS_DOL_URL);
$soapclient1 = new soapclient_nusoap($WS_DOL_URL); $soapclient1 = new nusoap_client($WS_DOL_URL);
if ($soapclient1) if ($soapclient1)
{ {
$soapclient1->soap_defencoding='UTF-8'; $soapclient1->soap_defencoding='UTF-8';
} }
$soapclient2 = new soapclient_nusoap($WS_DOL_URL); $soapclient2 = new nusoap_client($WS_DOL_URL);
if ($soapclient2) if ($soapclient2)
{ {
$soapclient2->soap_defencoding='UTF-8'; $soapclient2->soap_defencoding='UTF-8';

View File

@ -34,7 +34,7 @@ $WS_METHOD = 'getVersions';
// Set the WebService URL // Set the WebService URL
dol_syslog("Create soapclient_nusoap for URL=".$WS_DOL_URL); dol_syslog("Create soapclient_nusoap for URL=".$WS_DOL_URL);
$soapclient = new soapclient_nusoap($WS_DOL_URL); $soapclient = new nusoap_client($WS_DOL_URL);
if ($soapclient) if ($soapclient)
{ {
$soapclient->soap_defencoding='UTF-8'; $soapclient->soap_defencoding='UTF-8';

View File

@ -34,7 +34,7 @@ $WS_METHOD = 'getThirdParty';
// Set the WebService URL // Set the WebService URL
dol_syslog("Create soapclient_nusoap for URL=".$WS_DOL_URL); dol_syslog("Create soapclient_nusoap for URL=".$WS_DOL_URL);
$soapclient = new soapclient_nusoap($WS_DOL_URL); $soapclient = new nusoap_client($WS_DOL_URL);
if ($soapclient) if ($soapclient)
{ {
$soapclient->soap_defencoding='UTF-8'; $soapclient->soap_defencoding='UTF-8';

View File

@ -44,7 +44,7 @@ if (empty($conf->global->MAIN_MODULE_WEBSERVICES))
} }
// Create the soap Object // Create the soap Object
$server = new soap_server(); $server = new nusoap_server();
$server->soap_defencoding='UTF-8'; $server->soap_defencoding='UTF-8';
$ns='http://www.dolibarr.org/ns'; $ns='http://www.dolibarr.org/ns';
$server->configureWSDL('WebServicesDolibarrInvoice',$ns); $server->configureWSDL('WebServicesDolibarrInvoice',$ns);

View File

@ -44,7 +44,7 @@ if (empty($conf->global->MAIN_MODULE_WEBSERVICES))
} }
// Create the soap Object // Create the soap Object
$server = new soap_server(); $server = new nusoap_server();
$server->soap_defencoding='UTF-8'; $server->soap_defencoding='UTF-8';
$ns='http://www.dolibarr.org/ns'; $ns='http://www.dolibarr.org/ns';
$server->configureWSDL('WebServicesDolibarrOther',$ns); $server->configureWSDL('WebServicesDolibarrOther',$ns);

View File

@ -44,7 +44,7 @@ if (empty($conf->global->MAIN_MODULE_WEBSERVICES))
} }
// Create the soap Object // Create the soap Object
$server = new soap_server(); $server = new nusoap_server();
$server->soap_defencoding='UTF-8'; $server->soap_defencoding='UTF-8';
$ns='http://www.dolibarr.org/ns'; $ns='http://www.dolibarr.org/ns';
$server->configureWSDL('WebServicesDolibarrThirdParty',$ns); $server->configureWSDL('WebServicesDolibarrThirdParty',$ns);