我正在 ios 中使用授权的 .net

移动设备被批准很好,但我在“createTransaction”中收到以下错误,即使我也没有发送 Ant 交易 key

Create Transaction response
2012-07-26 18:23:40.600 Authorized[2095:207] <?xml version="1.0" encoding="utf-8"?><ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00003</code><text>The element 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has incomplete content. List of possible elements expected: 'name, transactionKey, sessionToken, password' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.</text></message></messages></ErrorResponse>
namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute
ttp://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"
                                                                               ^
2012-07-26 18:23:40.601 Authorized[2095:207] Error = (null)
2012-07-26 18:23:40.601 Authorized[2095:207] Message:
Message.code = E00003
Message.text = The element 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has incomplete content. List of possible elements expected: 'name, transactionKey, sessionToken, password' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
Message.description = (null)
2012-07-26 18:23:40.601 Authorized[2095:207] Messages:
Messages.resultCode = Error
Messages.message = (
    "Message.code = E00003\nMessage.text = The element 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has incomplete content. List of possible elements expected: 'name, transactionKey, sessionToken, password' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.\nMessage.description = (null)\n"
)
2012-07-26 18:23:40.635 Authorized[2095:207] Messages:
Messages.resultCode = (null)
Messages.message = (
)
2012-07-26 18:23:40.636 Authorized[2095:207] SplitTenderPayment = SplitTenderPayment.transId = (null)
SplitTenderPayment.responseCode = (null)
SplitTenderPayment.responseToCustomer = (null)
SplitTenderPayment.authCode = (null)
SplitTenderPayment.accountNumber = (null)
SplitTenderPayment.accountType = (null)
SplitTenderPayment.requestedAmount = (null)
SplitTenderPayment.approvedAmount = (null)
SplitTenderPayment.balanceOnCard = (null)
2012-07-26 18:23:40.637 Authorized[2095:207] CreateTransactionResponse: createTransactionResponse.anetAPIResponse = ANetApiResponse.refId = (null)
ANetApiResponse.messages = Messages.resultCode = Error
Messages.message = (
    "Message.code = E00003\nMessage.text = The element 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has incomplete content. List of possible elements expected: 'name, transactionKey, sessionToken, password' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.\nMessage.description = (null)\n"
)

最佳答案

正如 Sandchitsignh 指出的,这看起来像是您正在处理一个响应,这不是一个完全有效的 xml 响应。彻底检查响应,并确保没有隐藏的、损坏的或未转义的字符偷偷溜进来。

关于iphone - 在 "Create Transaction response"中出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11670068/

10-11 02:22