Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] WEBAPI allegro logowanie
Piotrwusek
post
Post #1





Grupa: Zarejestrowani
Postów: 399
Pomógł: 7
Dołączył: 11.06.2007
Skąd: Poznan

Ostrzeżenie: (20%)
X----


Witam

Chcę zalogować się do allegro.

Zapozyczyłem przykłądy z dokumentacji dostepnej na webapi.allegro.pl

Wyszło mi
  1. <?php
  2. $msg = array
  3.  (
  4. "user-login" => $login,
  5. "user-password" => $pass,
  6. "country-code" => $kraj,
  7. "webapi-key" => $apikey,
  8. "local-version" => $ver_key, 
  9. );
  10.  
  11. $soap = new SoapClient('http://webapi.allegro.pl/uploader.php?wsdl', true);
  12. $soap->soap_defencoding = 'UTF-8';
  13. $soap->decode_utf8 = false;
  14.  
  15. $dran = $soap->call("doLogin", $msg);
  16. print_r($dran);
  17. ?>


I wywala mi taki błąd


Warning: SoapClient::__construct() expects parameter 2 to be array, boolean given in /home/kwserwer/ftp/piotrwusek/allegro/webapi/index.php on line 31

Fatal error: Uncaught SoapFault exception: [Client] SoapClient::__construct() [<a href='function.SoapClient---construct'>function.SoapClient---construct</a>]: Invalid parameters in /home/kwserwer/ftp/piotrwusek/allegro/webapi/index.php:31 Stack trace: #0 /home/kwserwer/ftp/piotrwusek/allegro/webapi/index.php(31): SoapClient->__construct('http://webapi.a...', true) #1 {main} thrown in /home/kwserwer/ftp/piotrwusek/allegro/webapi/index.php on line 31


31 linia to
  1. <?php
  2. $soap = new SoapClient('http://webapi.allegro.pl/uploader.php', true);
  3. ?>


Wersja PHP 5
Wersja nuSOAP 1.73
Serwer obsługuje SOAP

Co jest?

Ten post edytował Piotrwusek 22.06.2008, 17:01:55
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 21.08.2025 - 06:27