I need to get a lot of data from a web service in SOAP, however depending on the query the server can not handle, I have seen in some articles, that this can be solved by xml compression or sending in parts, but I did not find examples.
I tried to loop and chain the requests for each record, but it did not work, it understands it to be just a request.
foreach ($this->vg['marcas'] as $key => $value) {
$xmlr = new SimpleXMLElement('<CustumeSearch></CustumeSearch>');
$paramsSoap = array(
'categoria' => $tipoDados['nome'],
'idMarca' => $key,
'idModelo' => 0,
'HashSeguranca' => 'xxxx'
);
// Looping responsavel por adicionar propriedade e valores ao XML exemplo (codigoAnuncio => 292)
foreach($paramsSoap as $key => $value) {
$xmlr->addChild($key, $value);
}
$marcas = $this->vg['soap']->__soapCall(
"RetornarVersoes" ,
array($xmlr)
); ...
Fatal error: Uncaught SoapFault exception: [soap: Server] System.Web.Services.Protocols.SoapException: Server was unable to process request.