From 1889059dea1c1e4f9a25eb4ce291f571f9edcf53 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Mon, 13 Dec 2010 20:42:04 +0000
Subject: [PATCH] Fix: Works with new nusoap lib

---
 htdocs/webservices/demo_wsclient_invoice.php    | 4 ++--
 htdocs/webservices/demo_wsclient_other.php      | 2 +-
 htdocs/webservices/demo_wsclient_thirdparty.php | 2 +-
 htdocs/webservices/server_invoice.php           | 2 +-
 htdocs/webservices/server_other.php             | 2 +-
 htdocs/webservices/server_thirdparty.php        | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/htdocs/webservices/demo_wsclient_invoice.php b/htdocs/webservices/demo_wsclient_invoice.php
index f23c3db8fb5..7eb24691ce5 100755
--- a/htdocs/webservices/demo_wsclient_invoice.php
+++ b/htdocs/webservices/demo_wsclient_invoice.php
@@ -35,12 +35,12 @@ $WS_METHOD2  = 'getInvoicesForThirdParty';
 
 // Set the WebService 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)
 {
 	$soapclient1->soap_defencoding='UTF-8';
 }
-$soapclient2 = new soapclient_nusoap($WS_DOL_URL);
+$soapclient2 = new nusoap_client($WS_DOL_URL);
 if ($soapclient2)
 {
     $soapclient2->soap_defencoding='UTF-8';
diff --git a/htdocs/webservices/demo_wsclient_other.php b/htdocs/webservices/demo_wsclient_other.php
index deb7c5c09d0..bd214695fd4 100755
--- a/htdocs/webservices/demo_wsclient_other.php
+++ b/htdocs/webservices/demo_wsclient_other.php
@@ -34,7 +34,7 @@ $WS_METHOD  = 'getVersions';
 
 // Set the WebService 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)
 {
 	$soapclient->soap_defencoding='UTF-8';
diff --git a/htdocs/webservices/demo_wsclient_thirdparty.php b/htdocs/webservices/demo_wsclient_thirdparty.php
index 4ee540b1916..3846023e424 100755
--- a/htdocs/webservices/demo_wsclient_thirdparty.php
+++ b/htdocs/webservices/demo_wsclient_thirdparty.php
@@ -34,7 +34,7 @@ $WS_METHOD  = 'getThirdParty';
 
 // Set the WebService 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)
 {
 	$soapclient->soap_defencoding='UTF-8';
diff --git a/htdocs/webservices/server_invoice.php b/htdocs/webservices/server_invoice.php
index f4bbe9b08b7..c8c010ce8af 100755
--- a/htdocs/webservices/server_invoice.php
+++ b/htdocs/webservices/server_invoice.php
@@ -44,7 +44,7 @@ if (empty($conf->global->MAIN_MODULE_WEBSERVICES))
 }
 
 // Create the soap Object
-$server = new soap_server();
+$server = new nusoap_server();
 $server->soap_defencoding='UTF-8';
 $ns='http://www.dolibarr.org/ns';
 $server->configureWSDL('WebServicesDolibarrInvoice',$ns);
diff --git a/htdocs/webservices/server_other.php b/htdocs/webservices/server_other.php
index d01643ee1db..a2057a5b51a 100644
--- a/htdocs/webservices/server_other.php
+++ b/htdocs/webservices/server_other.php
@@ -44,7 +44,7 @@ if (empty($conf->global->MAIN_MODULE_WEBSERVICES))
 }
 
 // Create the soap Object
-$server = new soap_server();
+$server = new nusoap_server();
 $server->soap_defencoding='UTF-8';
 $ns='http://www.dolibarr.org/ns';
 $server->configureWSDL('WebServicesDolibarrOther',$ns);
diff --git a/htdocs/webservices/server_thirdparty.php b/htdocs/webservices/server_thirdparty.php
index d642690fd1d..e13bd79a7c1 100755
--- a/htdocs/webservices/server_thirdparty.php
+++ b/htdocs/webservices/server_thirdparty.php
@@ -44,7 +44,7 @@ if (empty($conf->global->MAIN_MODULE_WEBSERVICES))
 }
 
 // Create the soap Object
-$server = new soap_server();
+$server = new nusoap_server();
 $server->soap_defencoding='UTF-8';
 $ns='http://www.dolibarr.org/ns';
 $server->configureWSDL('WebServicesDolibarrThirdParty',$ns);
-- 
GitLab