TT#1678 Use returned interception id in soap test

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

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

Loading…
Cancel
Save