Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][NuSOAP][WebAPI]Nie wysyła tablicy argumentów w zapytaniu
NewBrand
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 17.05.2015

Ostrzeżenie: (0%)
-----


Hej.


Od dawna borykam sie z problemem, ktorego sam nie potrafie rozwiązać i skończyły mi sie wszystkie pomysły ;(
Otóz jakkolwiek bym nie próbował to w zapytaniu nie wysyła 'filterOptions'.


tutaj fragment kodu który odpowiada za zapytanie

  1. $filter=array();
  2. $filter['filterId']="userId";
  3. $filter['filterValueId']='33239260';
  4. print_r($filter);
  5. $itemList = $soapClient->call(
  6. 'doGetItemsList',
  7. 'webapiKey' => WEBAPI_KEY,
  8. 'countryId' => 1,
  9. 'filterOptions' => $filter,
  10. 'resultSize' => 100,
  11. 'resultOffset' => 1,
  12. 'resultScope' => 1
  13. )
  14. )
  15. );


a to mój request

  1. ?xml version="1.0" encoding="UTF-8"?>
  2. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 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/" xmlns:ns6625="http://tempuri.org">
  3. <SOAP-ENV:Body>
  4. <DoGetItemsListRequest xmlns="https://webapi.allegro.pl/service.php">
  5. <webapiKey>********</webapiKey>
  6. <countryId>1</countryId>
  7. <filterOptions></filterOptions>
  8. <resultSize>100</resultSize>
  9. <resultOffset>0</resultOffset>
  10. <resultScope>0</resultScope>
  11. </DoGetItemsListRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>


Dziękuje za pomoc (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 16:13