Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class readZP400
- {
- public $soapUri = "http://websrv.bzp.uzp.gov.pl/BZP_PublicWebService.asmx?wsdl";
- public function readJSON()
- {
- $soapClient = new \SoapClient($this->soapUri, array(
- 'exceptions' => true,
- "trace" => 1
- ));
- try {
- $ap_param = new class()
- {
- public $_rodzaj_zamawiajacego = 99;
- public $_rodzaj_zamowienia = 99;
- public $_tryb_udzielenia_zamowienia = 99;
- public $_data_publikacjiOd = '2017-09-06';
- public $_data_publikacjiDo = '2017-09-07';
- public $_czyGrupaCPV = 0;
- public $_calkowita_wart_zam_od = -1;
- public $_calkowita_wart_zam_do = -1;
- };
- $info = $soapClient->ogloszeniaZP400KryteriaWyszukiwaniaJSON($ap_param);
- return $info->Table;
- } catch (SoapFault $fault) {
- throw new Exception($fault, 1);
- }
- }
- }
- $readZP400 = new readZP400();
- $readZP400->readJSON();
Advertisement
Add Comment
Please, Sign In to add comment