Menu

Allowed memory size of error X on nusoap

Help
maverabil
2015-03-09
2015-03-09
  • maverabil

    maverabil - 2015-03-09

    PHP is connected to SOAP between NuSOAP and I can recieve data from PHP. After getting data, I get timeout error because of data size is huge which is received. You can see xdebug print out on below.I can run same service using PHP native SOAP command.

    http://s15.postimg.org/c9491lf1n/2015_03_08_02_07_10.jpg

    I am using following settings. I can not get a solution about the above error although I increased maximum limit as possible as much.

    
    

    ini_set('memory_limit', "512M");

    ini_set('max_execution_time', 60000);

    ini_set("display_errors", 1);

    ini_set("max_input_time ", 6000);

    I am waiting your solution about this issue urgently. Thank for your support.

    Edit: My NuSOAP client function:

    function nusoapCall($method,$params,$returnType="array")
    {

    global $WSDLURL,$debugMode;
    
    require_once('tools/nusoap/nusoap.php');
    
    $soapClient = new nusoap_client($WSDLURL, 'wsdl');
    
    $soapClient->soap_defencoding = 'UTF-8';
    
    $soapClient->decode_utf8 = false;
    
    $soapClient->setUseCURL(true);
    
    $soapClient->setCurlOption(CURLOPT_CONNECTTIMEOUT, 60);
    
    if($debugMode == 1){
        $soapClient->debug_flag = false;
    }
    
    $tResult = $soapClient->call( $method,$params);
    if($returnType=="object"){
        $tResult = array_to_object($tResult);
    }
    
    $soapError = $soapClient->getError();
    echo $soapClient->getDebug();
    if (!empty($soapError)) {
    
        $errorMessage = 'Nusoap object creation failed: ' . $soapError;
        throw new Exception($errorMessage);
        return false;
    }else{
        return $tResult;
    }
    

    }
    ?>

     

    Last edit: maverabil 2015-03-09
    • mango

      mango - 2015-03-09
      <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=gb2312"> </HEAD>

      <BODY>

      官方阿迪达斯新店开张大促销了,三折呀,还有情侣款,我卖了两双,去验过是正品,很满意~!http://st.zzaa.org


      This is an automatic reply, confirming that your e-mail was received.Thank you



      邮箱使用小提示


      想让对方更及时看到你的邮件,可以试试发到"对方手机号@163.com"。



      无需事先开通,还有短信提醒。了解网易手机邮箱详情


      </body>
      </html>

       

Log in to post a comment.