954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Parse error: parse error, unexpected '{' in /homepages/10/issue.php line 5

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, :) I also have this question up on numara footprints yahoo group and still am hoping they have an answer but its been 6 days without a reply and it looks grim so i am coming here on daniweb hoping once again that i will be able to get the help i need from you guys :)

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

<?php

try {

$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><hr>\n";

 

 } catch (SoapFault $exception) {

print "ERROR! - Got a SOAP exception:";

echo $exception;             

}

?>
marcuskona
Newbie Poster
5 posts since Aug 2007
Reputation Points: 10
Solved Threads: 1
 

I usually find that you have forgotten to close parenthesis before the {

example

if ( this == somefunc($var) { 
   ...stuff
}


should be

if ( this == somefunc($var)) { 
   ...stuff
}

notice that in the first example I forgot the second ')' in my 'if' statement.

I have done this dozens of times.

johnNui
Newbie Poster
1 post since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You