Advertisement
joris

Sample Soap

Feb 28th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2. $NuSOAPLibPath = Yii::getPathOfAlias('ext.nusoap');
  3. include($NuSOAPLibPath . DIRECTORY_SEPARATOR . 'nusoap.php');
  4. $client = new nusoap_client('http://10.15.193.232/EAI/ws_affiliate.php');
  5. $username = 'FREELANCE';
  6. $password = 'b5t0rND8XN';
  7. $client->setCredentials($username, $password, "basic");
  8. $BacaSOAP = $client->call('ProspectFreelance', array(
  9.     'NO_HP' => '+6281122334455',
  10.     'TRX_NAMA' => 'BERTHO TESTING',
  11.     'TRX_ALAMAT' => 'CUSTOMER CARE BASE CAMP',
  12.     'TRX_HP1' => '081111111'.rand(00000,99999),
  13.     'TRX_HP2' => '082222222'.rand(00000,99999)
  14. ));
  15. echo "<pre>";
  16. var_dump($BacaSOAP);
  17. echo "</pre>";
  18. echo $BacaSOAP->getError();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement