Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('../soap/lib/nusoap.php');
- $client = new SoapClient('http://tcups.telkomvision.net.id/EAI/ws_affiliate.php?wsdl');
- $ProsesSoap = $client->call('OpenSubscriberTCUPS',
- array(
- 'nama_plg' => 'Brian',
- 'gelar' => 'Mr.',
- 'nama_plg' => 'Brian2',
- 'jenis_kelamin' => 'Laki-Laki',
- 'tempat_lahir' => 'Jakarta',
- 'tgl_lahir' => '1980-02-31',
- 'email' => 'brian@yahoo.com',
- 'no_tlp' => '021828282',
- 'no_hp' => '0818373837',
- 'alamat_komplek' => 'Ga Pake komplek',
- 'alamat_jalan' => 'Jati',
- 'alamat_gang' => 'Salak',
- 'alamat_blok' => 'A3',
- 'alamat_no' => '5',
- 'alamat_rt' => '001',
- 'alamat_rw' => '01',
- 'alamat_kelurahan' => 'Suka Maju',
- 'alamat_kecamatan' => 'Suka Suka',
- 'alamat_kota' => 'Bandung',
- 'alamat_kode_area' => '12345',
- 'alamat_kodePos' => '12045',
- 'identitas' => 'KTP', //DEFAULT = KTP
- 'no_identitas' => '0101010101010',
- 'layanan' => 'DTH', //DEFAULT = DTH
- 'paket' => 'HIBERNATE',
- 'paket_tambahan' => '-',
- 'kategori' => 'Kosong',
- 'tipe_pembayaran' => 'CASH',
- 'cdatel' => '0', //KODE KOTA
- 'ip_address' => '10.11.12.13',
- 'approach' => 'WEBIN', //DEFAULT = WEBIN
- 'id_pln' => '00171711881',
- 'nama_ibu' => 'Mami',
- 'no_tlp_sodara' => '081828282',
- 'nama_sodara' => 'Angga',
- 'datekeyin' => date("Y-m-d H:i:s"), //TANGGAL SUBMIT
- 'uid' => '212',
- 'ref_subs' => 'WEBIN-12345' //ID DARI WEBTELVIS
- )
- );
- //print_r ($ProsesSoap);
- if ($ProsesSoap == '1'){
- echo "Berhasil Proses";
- }elseif($ProsesSoap == '0'){
- echo "Gagal Proses";
- }elseif($ProsesSoap == '-1'){
- echo "Insert Data Error";
- }
- /* Return value $result :
- 1 = Berhasil Buat SO di tcups
- 0 = Gagal buat SO di tcups
- -1 = Error Insert*/
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement