User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 456,494 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,690 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 1781 | Replies: 1
Reply
Join Date: Aug 2007
Posts: 5
Reputation: marcuskona is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
marcuskona marcuskona is offline Offline
Newbie Poster

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

  #1  
Sep 23rd, 2007
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><br><hr>\n";

 

 } catch (SoapFault $exception) {

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

echo $exception;             

}

?>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Posts: 1
Reputation: johnNui is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
johnNui johnNui is offline Offline
Newbie Poster

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

  #2  
Nov 15th, 2007
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb RSS, Web Services and SOAP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the RSS, Web Services and SOAP Forum

All times are GMT -4. The time now is 3:21 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC