Android Question Consume php web service without WSDL

CONNECTOR

New Member
Licensed User
Hi,
I need to access a web service written in php and that has no WSDL. I'm able to access it from a php client page, but not from B4A.
Could you help me ?

Sample code of the web service :
<?php
class WsServer {
function hello($name) {
return "hello " . $name;
}
}
try {
$server = new SoapServer(Null, array('uri' => 'http://localhost/test/wsserver.php'));
$server->setClass("WsServer");
$server->handle();
}
catch(Exception $e) {
echo "Exception: " . $e;
}
?>

Thank you in advance.
Daniel
 
Top