Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ')' : <p>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:
     

<pre><code> function  add($a,$b){
 return $a + $b;
 }

 function div($a,$b){
    return $a / $b;
 }
$server = new soap_server();

  $server-&gt;configureWSDL("Jemix WS ","urn:http://jemiaymen.com");


  $server-&gt;register("add", 
            array('a'::'xsd:int','b'::'xsd:int'), 
            array('return'-&gt;'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);
  ?&gt;
</code></pre>
