Working on learning Web Services with PHP and stumbled across Tyler Anderson's
article here:
https://www6.software.ibm.com/developerworks/education/os-php-webservice/index.html

Going through the article, I have gotten everything written correctly but I am
running into a road block.

I have the client.php written like it says in the article but keep getting this error:

"Parse error: syntax error, unexpected T_STRING, expecting ')' in C:\wamp\www\client.php on line 7"

Line 7 looks correct to me.

Here is my client.php"

<?php
$search = array($_GET["make"], $_GET["model"], $_GET["year"]);
$client_steinbach = new SoapClient(null,array('location' =>"http://localhost/server_steinbach.php", 'uri' => "urn://tyler/req"));
$client_pinefalls = new SoapClient(null,array('location' =>"http://localhost/server_pinefalls.php", 'uri' => "urn://tyler/req"));
$client_selkirk   = new SoapClient(null,array('location' =>"http://localhost/server_selkirk.php",   'uri' => "urn://tyler/req));

$result_steinbach = $client_steinbach->__soapCall("vehicleLookup", $search); [B]// THIS IS LINE 7[/B]
$result_pinefalls = $client_pinefalls->__soapCall("vehicleLookup", $search);
$result_selkirk   = $client_selkirk->__soapCall("vehicleLookup", $search);

if($result_steinbach != '' || $result_pinefalls != '' || $result_selkirk != '')
{
print "<table>";
print "<tr>
         <td><b>Make</b></td>
         <td><b>Model</b></td>
         <td><b>Year</b></td>
         <td><b>Price</b></td>
         <td><b>Description</b></td>
       </tr>";
print $result_steinbach;
print $result_pinefalls;
print $result_selkirk;
print "</table>";
}
?>

Any ideas what is causing this?

    Crap. Missing closing quote here:

    $client_selkirk   = new SoapClient(null,array('location' =>"http://localhost/server_selkirk.php",   'uri' => "urn://tyler/[COLOR="Red"]req));[/COLOR]

      You left out the closing quote on the preceding line.

        Write a Reply...