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
文档中没有看到如何做到这一点。
在哪里以及如何设置该选项?