您好我正在尝试将我的xml发布到使用soap的网址http://stageserv.interswitchng.com/uat_quicktellerservice/QuickTeller.svc?wsdl
的网络服务的'SendBillPaymentAdvice'函数中,但我一直收到错误,即我的xml格式不正确。尝试了这么多格式,但它不会只是工作!
如何正确地将我的xml发布到该函数中。以下是我的摘录:
$xmlData=<<<DATA
<?xml version="1.0" encoding="utf-8" ?>
<BillPaymentAdvice>
<Amount>10000</Amount>
<PaymentCode>1***</PaymentCode>
<CustomerId>080***9</CustomerId>
<CustomerEmail>luvysols@gmail.com</CustomerEmail>
<TerminalId>3****01</TerminalId>
<RequestReference>123456789</RequestReference>
</BillPaymentAdvice>
DATA;
$wsdl = 'http://stageserv.interswitchng.com/uat_quicktellerservice/QuickTeller.svc?wsdl';
$client = new SoapClient($wsdl)
$result = $client->SendBillPaymentAdvice($xmlData);
谢谢!