Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> SOAP API XML brandbank
L00zak
post
Post #1





Grupa: Zarejestrowani
Postów: 58
Pomógł: 5
Dołączył: 2.05.2006

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


chyba ślepy jestem, ale do $xml mogę wgrać cokolwiek, a i tak w odpowiedzi dostaję "-2" czyli błędne żądanie

https://api.brandbank.com/svc/feed/reportda...yCoverageReport

będę wdzięczny za pomoc

  1. <?php
  2. try {
  3.  
  4. $client = new SoapClient('https://api.brandbank.com/svc/feed/reportdata.asmx?WSDL');
  5. $authData->ExternalCallerId = 'kluczyk';
  6. $authHeader = new SoapHeader('http://www.i-label.net/Partners/WebServices/DataFeed/2005/11', 'ExternalCallerHeader', $authData);
  7. $client->__setSoapHeaders(array($authHeader));
  8.  
  9. $xml=file_get_contents('input_sent.xml');
  10.  
  11. $result = $client->SupplyCoverageReport(array('xmlData' => $xml));
  12.  
  13. print_r($client->__getLastResponse());
  14. print_r($result);
  15.  
  16. }
  17. catch(SoapFault $f) {
  18. print($f->faultstring);
  19. }
  20. ?>
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: 24.12.2025 - 02:38