Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [soap]TestWebApi, malutki problem
dado
post
Post #1





Grupa: Zarejestrowani
Postów: 194
Pomógł: 2
Dołączył: 12.04.2004
Skąd: Częstochowa

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


Witam nie mogę się połączyć z serwerem testwebapi.pl. mam już tam konto, mam klucz mam wersję i mam kod kraju ale proste doLogin nic nie zwraca nawet błędu żadnego. Może zły adres serwera wpisuję. http://www.testwebapi.pl

Przeszukałem już forum ale nic nie ma na temat połączeń z testwebapi.pl - google też nie wiele.

  1. <?php
  2. require_once("lib/nusoap.php");
  3.  
  4. $msg = array
  5. (
  6. "user-login"  => "blabla",
  7. "user-password"  => "blabla",
  8. "country-code"  => "228",
  9. "webapi-key"  => "blabla",
  10. "local-version"  => "blabla", 
  11. );
  12.  
  13. $soap = new SoapClient('http://www.testwebapi.pl', true);
  14. $soap->soap_defencoding = 'UTF-8';
  15. $soap->decode_utf8 = false;
  16.  
  17. $response = $soap->call("doLogin", $msg);
  18. print_r($response);
  19. ?>


Ten post edytował dado 18.09.2007, 21:30:22
Go to the top of the page
+Quote Post
makusik
post
Post #2





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 19.03.2006
Skąd: Zielona Góra

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


$soap = new SoapClient('http://www.testwebapi.pl', true);

adres masz zly

http://webapi.allegro.pl/uploader.php?wsdl





ja osobiscie wykorzystuje wbudowana klase w php5,

  1. <?php
  2. $client = new SoapClient("http://webapi.allegro.pl/uploader.php?wsdl");
  3.  
  4. $conf['user-login']="login";
  5. $conf['user-password']="pass";
  6. $conf['country-code']="228";
  7. $conf['webapi-key']="webapikey";
  8. $conf['local-version']="41618439";
  9.  
  10. if($_SESSION['session_allegro']=='') {
  11. $msg = array
  12. (
  13. "user-login" => $conf['user-login'],
  14. "user-password" => $conf['user-password'],
  15. "country-code" => $conf['country-code'],
  16. "webapi-key" => $conf['webapi-key'],
  17. "local-version" => $conf['local-version']
  18.  );
  19. $respo= $client->__soapCall("doLogin", $msg);
  20. print_r($respo);
  21. }
  22. ?>
Go to the top of the page
+Quote Post

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: 19.08.2025 - 09:57