function createUser($token, $profileID) { ini_set("soap.wsdl_cache", "0"); ini_set("soap.wsdl_cache_enabled", "0"); $wsdl = geoRefLink() . '/GeoreferencingService/Georeferencing?WSDL'; $sslOpts = array('ssl' => array('ciphers' => 'RC4-SHA')); $soapclient_options = array(); $soapclient_options["verify_peer"] = false; $soapclient_options["verify_host"] = false; $soapclient_options["allow_self_signed"] = true; $soapclient_options["stream_context"] = stream_context_create($sslOpts); //var_dump($token); try { $client = new SoapClient($wsdl, $soapclient_options); } catch (SoapFault $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } //$options = array(new SoapParam("token", $token), new SoapParam("childUserID", $profileID)); $params = array("token" => $token, "childUserID" => $profileID); try { return $client->createUser($params); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } return NULL; }