SOAP: looks like we got no XML document

前端 未结 10 1430
日久生厌
日久生厌 2021-01-11 11:41

I\'m trying to create a web service but before I do I\'m trying to get a simple example that I found on the internet to work first but I keep getting the following error:

10条回答
  •  盖世英雄少女心
    2021-01-11 12:04

    Pretty late but adding my fix to benefit of others. I have got similar error when I changed my Apache server from 2.2 to 2.4 and PHP 5.4.10 to 5.6.18 on windows. Client app used php 5.6.1. To fix the problem, I have done the following:

    1. Passed SOAP version parameter to SoapClient:

      'soap_version' => SOAP_1_1

    2. On the server php.ini configuration file I have added:

      always_populate_raw_post_data = -1

提交回复
热议问题