English 中文(简体)
PHP SoapClient Constructor 极慢
原标题:PHP SoapClient Constructor extremely slow

我试图对《社会行动计划》的预报作一些测试,而且执行时间极其缓慢。 我曾做过一些挖掘,发现它占据了永远执行的巨大建筑。 我也尝试使用代理人,看看看它是否引出它引起的询问,但这种询问执行得相对快,在问询中,它ling着大约30秒钟。

这里需要看一看孔径:

“kcachegrind”/

这里还有Charles Proxy的WSDL问题:

“charles

几个月前也在此报告了同样的问题:

PHP: SoapClient Constructionor 非常缓慢(3分钟)

但是他没有得到答复。

任何建议都会受到高度赞赏。

Edit:

The code portion where the SoapClient is initiated (this is part of the NetSuite PHP toolkit)

        $this->client = new SoapClient( $host . "/wsdl/v" . $endpoint . "_0/netsuite.wsdl",

                                    array(  "location"              => $host . "/services/NetSuitePort_" . $endpoint,

                                            "trace"                 => 1,

                                            "connection_timeout"    => 5,

                                            "typemap"               => $typemap,

                                            "user_agent"            => "PHP-SOAP/" . phpversion() . " + NetSuite PHP Toolkit " . $version

                                    )

    );
最佳回答

Are you using multiple users? I was getting 3-20 minute lags on the same line of code which turned out to be related to multiple users causing multiple copies of the wsdl to be fetched. http://www.ozonesolutions.com/programming/2011/05/nsclient-login-time/

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签