Ticket #862: patch_commit_24cae2eee396.patch

File patch_commit_24cae2eee396.patch, 1.4 KB (added by ktwbc, 11 months ago)

patch fix

  • includes/qcubed/_core/framework/QSoapService.class.php

    diff --git a/includes/qcubed/_core/framework/QSoapService.class.php b/includes/qcubed/_core/framework/QSoapService.class.php
    index fd2ca87f8aebfe17044746b6e8e71fd4522c92f7..4c47d9f23d4dcb05af04848c22cc9ef6e9c0da97 100644
    a b  
    4040                        } 
    4141 
    4242                        $objReflection = new ReflectionMethod($this->strType, 'AlterSoapComplexTypeArray'); 
    43                         $objReflection->invoke(null, $strComplexTypesArray, false); 
     43                        $objReflection->invoke(null, &$strComplexTypesArray, false); 
    4444                        return $strToReturn; 
    4545                } 
    4646 
     
    419419                        $strToReturn = sprintf('<types><schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="%s" ' . 
    420420                                'xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">', 
    421421                                $this->strNamespace); 
    422  
     422                        $strToReturn .= '<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>'; 
    423423                        foreach ($strComplexTypesArray as $strComplexType) 
    424424                                $strToReturn .= $strComplexType; 
    425425 
     
    472472                                'xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" ' . 
    473473                                'xmlns:tns="%s" ' . 
    474474                                'xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' . 
     475                                'xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"  ' . 
    475476                                'xmlns:xsd1="%s">', 
    476477                                $this->strClassName, $this->strNamespace, $this->strNamespace, $this->strNamespace); 
    477478