Using NuSOAP with PHP 5

That was a real trouble for me so I thought I should post it. I was using the following code,

$date = date(”Ymd”);
$params = array();
$params[’serialNo’] = $date;
$params[’entryType’] = “master”;

require_once(’lib/nusoap.php’);

$masterClient=new soapclient(”http://localhost/nusoap/edit/server.php”);

$response = $masterClient->call(’makeEntry’, $params);

While testing, I was getting error as Cannot redeclare class soapclient……… I search inside the class like weirds, but didn’t find the source of error. After searching, I found that there is clash between PHP5 build-in soap class and the nusoap class.

In order to solve this problem, simply rename all occurrences of “soapclient” in all 10 nusoap files into “soapclient2″ or whatever you want.



3 Comments

  1. Ari Dubov

    April 6, 2008 at 11:35 am

    1

    Yes, I do think your opinion is righteous. (So do lots of people). Luckily majority of people are intelligent :).

  2. Dmitri

    April 9, 2008 at 5:06 am

    2

    I’ve heard so much about this website, so I finally decided to visit it. I have to say that It’s nothing special..

  3. tube8

    August 4, 2008 at 9:31 pm

    3

    interesting post thx titanium tubing see you


Comments RSS | TrackBack Identifier URI

Leave a comment

Home | About Us | Advertise | Link to Us | Contact Us
Privacy Policy | Disclaimer | Terms of Uses
Copyright 2006-2007 Design Code Interactive. Please do not use website contents without our permissions.

Design Code Interactive
Validate XHTML Validate CSS