Home Forums Voip – Development D Orders Manager Reply To: Orders Manager

Krunal
Participant
Post count: 199

Reply of #2415

Hello jeff, this time i tried to locked the peerless number with “searchNumbers” request but still getting same error;

Request;
$locked_filter_element = [
‘quantity’ => 1,
‘consecutive’ => 1,
‘categories’ => [
‘category’ => [1,2]
],
‘tnCount’ => ”,
‘selectedTN’ => [
‘tn’ => XXXXXXX555
]
];

$locked_filter[‘filters’] = $locked_filter_element;

try {
$fullPathToWsdl = “https://animate.peerlessnetwork.com/api/axis/APIService?wsdl”;

// Instantiate the SoapClient object.
ini_set(‘default_socket_timeout’, 5000);
$client = new SoapClient($fullPathToWsdl,
array(
‘trace’ => true,
‘connection_timeout’ => 500000,
‘cache_wsdl’ => WSDL_CACHE_BOTH,
‘keep_alive’ => false,
)
);

$final_param = $this->getPParams()+$locked_filter;
$numberArray = $client->searchNumbers($final_param);

return $numberArray;

} catch (Exception $e) {
echo “SOAP Request failed: \n\t”, $e->faultstring, “\n\t”, $e->faultcode, “\n”;
}

Response;
stdClass Object
(
[is_error] => 1
[error_msg] => NUMBER_NOT_LOCKED_BY_LOGGED_IN_ENTITY_USER: XXXXXXX555
[error_code] => EPNN0006
)

can you check it again.