Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //$user="Reconik";
- //$pass="#PzyA2qkL";
- $user="TestPubliczny";
- $pass="1234abcd";
- $wsdl = 'https://uslugaterytws1test.stat.gov.pl/wsdl/terytws1.wsdl';
- $soap_options = array(
- 'ws-security-login' => $user,
- 'ws-security-password' => $pass,
- 'soap_version' => SOAP_1_1,
- 'cache_wsdl' => WSDL_CACHE_MEMORY,
- 'encoding' => 'utf8',
- 'keep_alive' => false,
- 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE,
- );
- $client= new SoapClient($wsdl, $soap_options);
- try {
- $result = $client->PobierzSlownikCechULIC();
- var_dump($result);
- } catch (SoapFault $exception) {
- var_dump($exception);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement