1
我有延伸SoapClient
如何爲SoapClient設置XML_PARSE_HUGE?
class SOAPWrapper extends \SoapClient
{
public function GetSomething(GetSomething $parameters)
{
return $this->__soapCall('GetSomething', array($parameters));
}
}
GetSomething
正在返回超過10MB更大的東西,所以我得到了錯誤的類:
Couldn't load from ' http://example.com/example.asmx ' : Excessive depth in document: 256 use XML_PARSE_HUGE option
這意味着我必須使用XML_PARSE_HUGE選項,但我可以在__soapCall
文檔中沒有看到如何做到這一點。
在哪裏以及如何設置該選項?