TT#1678 Use returned interception id in soap test

Change-Id: I3d2fda455f70652a8ad6cb7a4e2c8475f17f2490
changes/54/12254/2
Andreas Granig 9 years ago
parent ae1ad387be
commit ab9d6408c8

@ -1,11 +1,11 @@
<?php <?php
require_once 'nusoap/nusoap.php'; require_once 'nusoap/nusoap.php';
#$wsdl = 'https://10.15.17.189:1443/SOAP/Intercept.wsdl'; $wsdl = 'https://10.15.17.233:2443/SOAP/Intercept.wsdl';
$wsdl = 'https://192.168.0.126:1443/SOAP/Intercept.wsdl'; #$wsdl = 'https://192.168.0.126:1443/SOAP/Intercept.wsdl';
$client = new nusoap_client($wsdl, true); $client = new nusoap_client($wsdl, true);
$client->setCredentials('testuser', 'testpass', 'basic'); $client->setCredentials('ngcpsoap', 'password', 'basic');
$error = $client->getError(); $error = $client->getError();
if($error) { if($error) {
echo "Error: " . $error; echo "Error: " . $error;
@ -54,6 +54,7 @@ if($client->fault) {
echo "\n\n\n"; echo "\n\n\n";
} }
} }
$id = $res;
$res = $client->call('update_interception', $res = $client->call('update_interception',
array( array(
@ -63,7 +64,7 @@ $res = $client->call('update_interception',
'type' => 'admin' 'type' => 'admin'
), ),
'parameters' => array( 'parameters' => array(
'id' => 1, 'id' => $res,
'data' => array( 'data' => array(
'cc_required' => 1, 'cc_required' => 1,
'iri_delivery' => array( 'iri_delivery' => array(
@ -143,7 +144,7 @@ $res = $client->call('delete_interception',
'type' => 'admin' 'type' => 'admin'
), ),
'parameters' => array( 'parameters' => array(
'id' => 1 'id' => $id
) )
) )
); );
@ -176,7 +177,7 @@ $res = $client->call('get_interception_by_id',
'type' => 'admin' 'type' => 'admin'
), ),
'parameters' => array( 'parameters' => array(
'id' => 1 'id' => $id
) )
) )
); );

Loading…
Cancel
Save