您好我正在处理一些Web应用程序,并且在我可以保存到数据库之前,首先将输入表单值传递给xml表单。但是,当我传递以下数据时,它无法正常工作。这是正确的做法。
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<PostTransaction xmlns="http://PegPayTelecomsApi/">
<trans>
<DigitalSignature>de96d901b3bad1db2aab76b7b0b202f2</DigitalSignature>
<FromTelecom>#{params[:pay_type]}</FromTelecom>
<ToTelecom>#{params[:pay_type]}</ToTelecom>
<PaymentCode>1</PaymentCode>
<VendorCode>TEST</VendorCode>
<Password>61T05DB750</Password>
<PaymentDate>01/01/2014</PaymentDate>
<Telecom></Telecom>
<CustomerRef>#{params[:phone_no]}</CustomerRef>
<CustomerName>#{params[:name]}</CustomerName>
<TranAmount>10000</TranAmount>
<TranCharge>0</TranCharge>
<VendorTranId>1</VendorTranId>
<ToAccount></ToAccount>
<FromAccount>#{params[:phone_no]}</FromAccount>
<TranType>PULL</TranType>
</trans>
</PostTransaction>
</soap:Body>
</soap:Envelope>