Nusoap "SOAP-ENV: Xml was empty, didn't parse" Message Nusoap "SOAP-ENV: Xml was empty, didn't parse" Message php php

Nusoap "SOAP-ENV: Xml was empty, didn't parse" Message


In your nusoap. Server you should change:

This:

@$server->service($HTTP_RAW_POST_DATA);

for this:

@$server->service(file_get_contents("php://input"));

You may remove the @ if you want to check notices and warnings.

Some explanation from http://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data

This feature was DEPRECATED in PHP 5.6.0, and REMOVED as of PHP 7.0.0. If set to TRUE, PHP will always populate the $HTTP_RAW_POST_DATA containing the raw POST data. Otherwise, the variable is populated only when the MIME type of the data is unrecognised.

The preferred method for accessing raw POST data is php://input, and $HTTP_RAW_POST_DATA is deprecated in PHP 5.6.0 onwards. Setting always_populate_raw_post_data to -1 will opt into the new behaviour that will be implemented in a future version of PHP, in which $HTTP_RAW_POST_DATA is never defined.

Regardless of the setting, $HTTP_RAW_POST_DATA is not available with enctype="multipart/form-data".