Hi all,
I am a new bie in SOAP and PHP.I got one question about the data retrieval.
I am able to retrieve the data successfully from my database. this is my sql statement:
select roadname from address where postalcode Like '123%';
based on that sql query it should return me multiple rows value, but instead of that, it only return me the first row of the data.i can't see the rest of it..
I hope somebody can help me out from this problem.
thank you for your guidance...
the following is how i configure my SOAP server:
function getQuote($symbo l){
mssql_connect ("server","user ","password ");
mssql_select_db ("database") ;
$query = "select roadname from address where postalcode Like '123%' ";
$result = mssql_query($qu ery);
while($course = mssql_fetch_ass oc($result))
{
$courses= array('Road' => $course["roadname"]);
}
foreach ($courses as $road =>$name)
{
return $name;
}
}
}
while the following is my SOAP client:
$client = new SoapClient("sto ckquote3.wsdl);
try
{
$result= ($client->getQuote($symb ol));
echo "Your Address is:\n";
//print ($client->getQuote($symb ol));
echo $result;
echo "<br>\n";
regards,
Kencana
I am a new bie in SOAP and PHP.I got one question about the data retrieval.
I am able to retrieve the data successfully from my database. this is my sql statement:
select roadname from address where postalcode Like '123%';
based on that sql query it should return me multiple rows value, but instead of that, it only return me the first row of the data.i can't see the rest of it..
I hope somebody can help me out from this problem.
thank you for your guidance...
the following is how i configure my SOAP server:
function getQuote($symbo l){
mssql_connect ("server","user ","password ");
mssql_select_db ("database") ;
$query = "select roadname from address where postalcode Like '123%' ";
$result = mssql_query($qu ery);
while($course = mssql_fetch_ass oc($result))
{
$courses= array('Road' => $course["roadname"]);
}
foreach ($courses as $road =>$name)
{
return $name;
}
}
}
while the following is my SOAP client:
$client = new SoapClient("sto ckquote3.wsdl);
try
{
$result= ($client->getQuote($symb ol));
echo "Your Address is:\n";
//print ($client->getQuote($symb ol));
echo $result;
echo "<br>\n";
regards,
Kencana
Comment