How is the maximum size of a SOAP message determined?

I use NuSOAP on PHP 5.2.6 and I see that the maximum message size is only 1000 bytes (which makes it difficult to do anything meaningful). Is this installed in the WSDL endpoint or is it something I can configure in NuSOAP?

+3
source share
5 answers

Regarding the FUD about the "limit of 1000 bytes" ... I searched the source code of nusoap_client and found that the limit is only effective for debug output .

This means that all data is processed and transferred to the webservice (regardless of its size), but only the first 1000 bytes (or more precisely: characters) are displayed in the debug log.

Here is the code:

$this->debug('SOAP message length=' . strlen($soapmsg) . ' contents (max 1000 bytes)=' . substr($soapmsg, 0, 1000));

// send
$return = $this->send($this->getHTTPBody($soapmsg),$soapAction,$this->timeout,$this->response_timeout);

, getHTTPBody() $soapmsg, 1000 . , substr() $soapmsg ( ).

- . , , , (, RAM, PHP script, HTTP ), , , , " 1000 " , NuSOAP.

+6

PHP NuSOAP . SOAP . HTTP ( 16384 POST SOAP, ( , )).

/ NuSOAP . WSDL ( WSDL, -... ( XML-), ), , .

+2

PHP 5.2.5 NuSoap PHP 4 1 .

, , php.ini

max_input_time        (defaults to 60)

, script . , script .

A sidenote: , PHP SoapClient/SoapServer. NuSoap , . , NuSoap "" wsdl no-wsdl. Weird...

+2

, SOAP. , , NuSOAP POST, GET (, , , , ). , PHP.INI , . , , - NuSOAP - , IIRC.

+1

, PHP, . , 6.5MB - . 8MB, nusoap.php( 64 PHP).

0

Source: https://habr.com/ru/post/1698656/


All Articles