Witam,
Mam dziwny problem otóż integruje się z allegro i chcę ściągnąć sprzedawane przedmioty , dostaje je ale zauważyłem że przy wywołaniu __soapCall te wartości pageSize,pageNumber są pomijane (nie są wymagane przez wsdl).
$request = array(
'sessionId' => $sessionId,
'pageSize' => $pageSize,
'pageNumber' => $pageNumber
);
$this->soap->__soapCall("doGetMySoldItems", $request);
Tą tablice przekazuję:
array (size=3)
'sessionId' => string 'xyz' (length=52)
'pageSize' => int 1
'pageNumber' => int 1
To zwraca __getLastRequest:
string '<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:AllegroWebApi" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:doGetMySoldItems>
<session-id xsi:type="xsd:string">xyz</session-id>
<sort-options xsi:type="ns1:SortOptionsStruct"/>
<filter-options xsi:type="ns1:SoldFilterOptionsStruct"/>
<search-value xsi:nil="true"/>
<category-id xsi:nil="true"/>
<item-ids xsi:nil="true" xsi:type="ns1:ArrayOfItemsID"/>
<page-size xsi:nil="true"/>
<page-number xsi:nil="true"/>
</ns1:doGetMySoldItems>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
' (length=843)