我使用网络资源 SOAP 工具包 API 来执行交易。事务捕获工作正常,但是每当我尝试使事务无效时,我都会收到响应代码 246:“您要求对一种无法无效的事务进行无效”。为什么会这样?我已包含无效交易所需的所有参数
RequestMessage request = new RequestMessage();
request.voidService = new VoidService();
request.voidService.run = "true";
request.voidService.voidRequestID = "value";
request.voidService.voidRequestToken = "value";
request.merchantID = "value";
request.merchantReferenceCode = "value";
TransactionProcessorClient proc = new TransactionProcessorClient();
proc.ChannelFactory.Credentials.UserName.UserName
= "merchantID";
proc.ChannelFactory.Credentials.UserName.Password
= "password";
ReplyMessage reply = proc.runTransaction(request);