Hi everyone im getting this error when i try to execut the code via a browser, its a SOAP call to a footprints webservices server written in php, well it only shows me this error. I pasted the entire code below minus my username and password :)

<h2>Web Service Test - create new issue</h2>

<?php

try [B]{[/B]

$client = new SoapClient(NULL,

   array(

"location"=>"http://www.mywebsite.com/MRcgi/MRWebServices.pl",

"uri"=>"MRWebServices",

"style"=>SOAP_RPC,

        "use" => SOAP_ENCODED       

   )

);

$issue_number = $client->MRWebServices__createIssue("username",'password','',

array(projectID =>1,

       title=>"Test Issue creation.",

                              status=>"Open" ,

                      priorityNumber => 3,

                      description => "This is a test"

              )

);

print "<BR><b> Issue created; Issue number = $issue_number</b><br><hr>\n";

 

 } catch (SoapFault $exception) {

print "ERROR! - Got a SOAP exception:<br>";

echo $exception;             

}

?>

try to remove and in the fifth row

try to remove and in the fifth row

i did remove the { and it just through me another error

Parse error: parse error, unexpected T_VARIABLE in /homepages/10/d159684860/htdocs/joomla/issue.php on line 7

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.