calling soap method from laravel to chamilo registration.soap.php for creating user but geeting error as "http://example.com/main/webservices/registration.soap.php?wsdl' : Extra content at the end of the document..
// passing array in soap
    $params =  array (
                        'username' => 'admin',//$userdata->username,
                        'secret_key' => $ChamiloSecreteKey, 
                    );  
        $chamilo_account = (new self)->chamilo_soap_call('registration', 'WSGetUserFromUsername', $params);
    public function chamilo_soap_call(){
    $params = func_get_args();
    $service = array_shift($params);
    $action = array_shift($params);
    ini_set('soap.wsdl_cache_enabled', 0);
     $service_path = (new self)->chamilo_get_service_path($service);
         if ($service_path) {
            $client = new SoapClient($service_path);    
            // Make call and its return result
            return $client->__soapCall($action, $params);
          } else {
            return FALSE;
          }
    }
    public function chamilo_get_service_path($service) {
      static $services;
      $chamilo_server   = Config::get('app.careerxi.subdomain.learning');
      $chamilo_baseurl   = Config::get('app.careerxi.chamilo.base_url');
      //$chamilo_server = variable_get('chamilo_server', '');
      if (!isset($services)) {
        $services = array('courses_list', 'user_info', 'registration');
      }
    and using this function crating path which is in chamilo 
but getting error as "SOAP-ERROR: Parsing WSDL: Couldn't load from " "Extra content at the end of the document" currently i am using php 7 .. do need to downgrade or anything else to solve this?
                        
found there is some warning on chamilo server after resovling that its working