我一直在尝试使用 simplexml 检索 ResponseCode、ResponseDescription、Amount 和 CardNumber,但它一直返回一个空字符串。
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetTransactionDataResponse xmlns="http://services.interswitchng.com/">
<GetTransactionDataResult xmlns:a="http://schemas.datacontract.org/2004/07/WebPAY.Core.ServiceFramework.Contract" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ResponseCode xmlns="http://schemas.datacontract.org/2004/07/TechQuest.Framework.ServiceFramework.Contract">61</ResponseCode><ResponseDescription xmlns="http://schemas.datacontract.org/2004/07/TechQuest.Framework.ServiceFramework.Contract">Exceeds Withdrawal Limit</ResponseDescription>
<a:Amount>10000000</a:Amount>
<a:CardNumber>3386</a:CardNumber>
<a:LeadBankCbnCode i:nil="true"/><a:LeadBankName i:nil="true"/>
<a:MerchantReference i:nil="true"/><a:PaymentReference i:nil="true"/>
<a:RetrievalReferenceNumber i:nil="true"/><a:SplitAccounts/>
<a:TransactionDate>0001-01-01T00:00:00</a:TransactionDate>
</GetTransactionDataResult>
</GetTransactionDataResponse>
</s:Body>
</s:Envelope>