Advertisement
joris

SOAP Subscribe

Jan 10th, 2013
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.83 KB | None | 0 0
  1. <?php
  2. require_once('../soap/lib/nusoap.php');
  3.  
  4. $client = new SoapClient('http://tcups.telkomvision.net.id/EAI/ws_affiliate.php?wsdl');
  5. $ProsesSoap = $client->call('OpenSubscriberTCUPS',
  6.     array( 
  7.             'nama_plg'      =>  'Brian',
  8.             'gelar'         =>  'Mr.',
  9.             'nama_plg'      =>  'Brian2',
  10.             'jenis_kelamin'     =>  'Laki-Laki',
  11.             'tempat_lahir'      =>  'Jakarta',
  12.             'tgl_lahir'     =>  '1980-02-31',
  13.             'email'         =>  'brian@yahoo.com',     
  14.             'no_tlp'        =>  '021828282',
  15.             'no_hp'         =>  '0818373837',
  16.             'alamat_komplek'    =>  'Ga Pake komplek',
  17.             'alamat_jalan'      =>  'Jati',
  18.             'alamat_gang'       =>  'Salak',
  19.             'alamat_blok'       =>  'A3',
  20.             'alamat_no'     =>  '5',
  21.             'alamat_rt'     =>  '001',
  22.             'alamat_rw'     =>  '01',
  23.             'alamat_kelurahan'  =>  'Suka Maju',
  24.             'alamat_kecamatan'  =>  'Suka Suka',
  25.             'alamat_kota'       =>  'Bandung',
  26.             'alamat_kode_area'  =>  '12345',
  27.             'alamat_kodePos'    =>  '12045',
  28.             'identitas'     =>  'KTP',      //DEFAULT = KTP
  29.             'no_identitas'      =>  '0101010101010',
  30.             'layanan'       =>  'DTH',      //DEFAULT = DTH
  31.             'paket'         =>  'HIBERNATE',             
  32.             'paket_tambahan'    =>  '-',
  33.             'kategori'      =>  'Kosong',  
  34.             'tipe_pembayaran'   =>  'CASH',
  35.             'cdatel'        =>  '0',        //KODE KOTA
  36.             'ip_address'        =>  '10.11.12.13',
  37.             'approach'      =>  'WEBIN',        //DEFAULT = WEBIN
  38.             'id_pln'        =>  '00171711881',
  39.             'nama_ibu'      =>  'Mami',
  40.             'no_tlp_sodara'     =>  '081828282',
  41.             'nama_sodara'       =>  'Angga',             
  42.             'datekeyin'     =>  date("Y-m-d H:i:s"),    //TANGGAL SUBMIT
  43.             'uid'           =>  '212',
  44.             'ref_subs'      =>  'WEBIN-12345'       //ID DARI WEBTELVIS
  45.         )
  46. );
  47.  
  48. //print_r ($ProsesSoap);
  49. if ($ProsesSoap == '1'){
  50.     echo "Berhasil Proses";
  51. }elseif($ProsesSoap == '0'){
  52.     echo "Gagal Proses";
  53. }elseif($ProsesSoap == '-1'){
  54.     echo "Insert Data Error";
  55. }
  56.  
  57. /*  Return value $result :
  58.     1   = Berhasil Buat SO di tcups
  59.     0   = Gagal buat SO di tcups
  60.     -1  = Error Insert*/
  61.  
  62. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement