php 向asmx发送请求 || php 发送xml请求, 以及处理返回的xml结果

 var $live_url = 'https://processing.ukash.com/RPPGateway/process.asmx';

$source = array(
    'SecurityToken' => $res[0]->merchant_name,
    'BrandID' => $res[0]->merchant_key2,
    'UTID' => $UTID,
);

$soap = new SoapClient($this->live_url.'?wsdl');
$response = $soap->GetTransactionStatus($source); //$response is the xml string
$xml_obj=simplexml_load_string($response->GetTransactionStatusResult);  //transform xml to object

原文地址:https://www.cnblogs.com/barfoo/p/4023857.html