soap error调用laravel到chamilo(lms)

问题描述 投票:0回答:1
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 

但出现错误,例如“ SOAP-ERROR:解析WSDL:无法从”“文档末尾的额外内容”加载,当前我正在使用php 7 ..是否需要降级或采取其他措施来解决此问题?] >

从laravel到chamilo registration.soap.php调用soap方法,以创建用户,但错误显示为“ http://example.com/main/webservices/registration.soap.php?wsdl':末尾的额外内容。 ..

laravel soap wsdl chamilo-lms
1个回答
0
投票

发现chamilo服务器在恢复其工作状态后出现一些警告

© www.soinside.com 2019 - 2024. All rights reserved.