本文整理汇总了PHP中Migration::soap_call方法的典型用法代码示例。如果您正苦于以下问题:PHP Migration::soap_call方法的具体用法?PHP Migration::soap_call怎么用?PHP Migration::soap_call使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Migration
的用法示例。
在下文中一共展示了Migration::soap_call方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: process_transactions
static function process_transactions($params, $web_service_details)
{
$transactions = Migration::soap_call($web_service_details, 'transacciones', $params);
$transaction_status_list = self::get_transaction_status_list();
$counter = 0;
if (isset($transactions) && isset($transactions['error']) && $transactions['error'] == true) {
error_log($transactions['message']);
} else {
$counter = count($transactions);
error_log("Processing " . $counter . " transaction(s)");
$count = 1;
$exclude_list = self::check_transactions_duplicity($transactions);
if (!empty($transactions)) {
foreach ($transactions as $id => $transaction_info) {
$result = array();
//Add transactions here
if (in_array($id, $exclude_list)) {
// Insert as deprecated
$result = self::process_transaction($transaction_info, $transaction_status_list, null, true);
} else {
// Do normal insert
$result = self::process_transaction($transaction_info, $transaction_status_list);
}
$count++;
if ($result['error'] == true) {
error_log('ERROR: ' . $result['message']);
//exit;
} else {
error_log($result['message']);
}
}
}
}
return $counter;
}