I use PHP 5.5. I try to add an arrow instead of a colon, but it still does not work. How to fix the code so that it works? My code:
function add($a,$b){
return $a + $b;
}
function div($a,$b){
return $a / $b;
}
$server = new soap_server();
$server->configureWSDL("Jemix WS ","urn:http://jemiaymen.com");
$server->register("add",
array('a'::'xsd:int','b'::'xsd:int'),
array('return'->'xsd:int'),
// namespace
"http://jemiaymen.com",
// soapaction
false,
// style
'rpc',
// use
'encoded',
// description
'A simple add web method');
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA :
'';
$server::service($HTTP_RAW_POST_DATA);
?>