Kariboe
2008-06-03 13:05:20 UTC
Hi all,
Busy testing SCA package. I have a problem with a very simple
testscript. Running a local script client.php:
<?php
include 'SCA/SCA.php';
$wsdl = file_get_contents('http://barabas.hogent.be/kariboe/
helloworld.php?wsdl');
file_put_contents("helloworld.wsdl",$wsdl);
$helloservice = SCA::getService('helloworld.wsdl');
echo $helloservice->sayHello();
?>
And on my server:
<?php
include "SCA/SCA.php";
/**
* @service
* @binding.ws
*/
class helloworld
{
/**
* @return string Hello Message
*/
function sayHello(){
return 'hello kariboe';
}
}
?>
If I try to access the generated wsdl code I receive a blank page!
What am I doing wrong?
Server: Red Hat Enterprise Linux 4
PHP: 5.2.1
Apache: 2.2.3
Help is appreciated!
Regards,
Stefaan
Busy testing SCA package. I have a problem with a very simple
testscript. Running a local script client.php:
<?php
include 'SCA/SCA.php';
$wsdl = file_get_contents('http://barabas.hogent.be/kariboe/
helloworld.php?wsdl');
file_put_contents("helloworld.wsdl",$wsdl);
$helloservice = SCA::getService('helloworld.wsdl');
echo $helloservice->sayHello();
?>
And on my server:
<?php
include "SCA/SCA.php";
/**
* @service
* @binding.ws
*/
class helloworld
{
/**
* @return string Hello Message
*/
function sayHello(){
return 'hello kariboe';
}
}
?>
If I try to access the generated wsdl code I receive a blank page!
What am I doing wrong?
Server: Red Hat Enterprise Linux 4
PHP: 5.2.1
Apache: 2.2.3
Help is appreciated!
Regards,
Stefaan