I'm getting this error: PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /var/www/dt.com/inc/oec_webservice.php on line 9 in my logs. The page is pretty simple it has the following code:

<?
include('/nusoap/lib/nusoap.php');


$client=new soapclient('http://www.openecry.com/webservices/demosetup_allocated_test.cfc?wsdl');

$param=array(
'NewUserCategoryName'=>'DTRDemo'
'TemplateUserName'=>'DTRUser'
'CusType'=>'Indirect'
'WLabelID'=>'74'
'SCodeID'=>''
'SoftID'=> '34'
'FName'=>'FNameTest'
'LName'=>'LNameTest'
'Email'=>'xxxxxx@yyyyyy.zzz'
'Phone'=>'PhoneTest'
'Address'=>'AddressTest'
'City'=>'CityTest'
'State'=>'StateTest'
'Zip'=>'ZipTest'
'Country'=>'CountryText'
'How'=> 'How did the client hear about you'
'MoreEMail'=>'0'
'RemoteAddr'=>'192.0.0.0'
'CampaignID'=>''
);
echo $client->call('demosetup', $param);

print 'done';

?>

Where is my syntax error?

Thanks in advance, for taking a look guys.

    You have forgotten to use commas to separate the elements of your array. Also, I suggest that you use normal <?php open tags instead of short open tags since short open tags may be disabled and come into conflict with <?xml.

      Thanks that did the trick!!!!

      🙂

        No problem. Remember to mark this thread as resolved using the thread tools 🙂

          Write a Reply...