Hi!
The code below works fine in Apache+Windows but don't work in Apache
+linux
//Result.php
<?php
require 'SCA/SCA.php';
/**
* @service
* @binding.soap
*/
class Result
{
/**
*
* @param string $input
* @return string $output
*/
function getResult($input)
{
return "Result: $input";
}
}
?>
// client.php
<?php
$service = new SoapClient('http://localhost/Result.php?wsdl');
try
{
$return = $service->getResult('test');
echo "<pre>";
echo var_dump($return);
echo "</pre>";
}
catch (SoapFault $soapFault)
{
echo "<pre>";
echo var_dump($soapFault);
echo "</pre>";
echo "Request :<br>";
echo "<pre>";
echo print_r(htmlentities($service->__getLastRequest()));
echo "</pre>";
echo "Response :<br>";
echo "<pre>";
echo print_r(htmlentities($service->__getLastResponse()));
echo "</pre>";
}
?>
the errors are:
public 'faultstring' => string 'Bad Request' (length=11)
public 'faultcode' => string 'SOAP-ENV:Client' (length=15)
Anyone help me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"phpsoa" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---