我想使用 XML 将第三方应用程序与 HTTP 上的计数集成。当我尝试通过 HTTP 将分类帐导入计数时,它显示未知请求,无法处理
相同的 XML 格式,当我使用“Tally 网关”中的“导入数据”手动导入 Tally 时,它导入时没有错误并创建分类帐。
我是否缺少任何 HTTP 标头?目前,我将“Content-Type”设置为“text/xml”;我也试过“text/xml;charset=utf-16”;
使用相同的标头,当我以相同的方式尝试时,还有其他计数 XML 请求工作
<!-- language: xml -->
<?xml version="1.0" encoding="UTF-8"?>
<ENVELOPE>
<HEADER>
<TALLYREQUEST>Import Data</TALLYREQUEST>
</HEADER>
<BODY>
<IMPORTDATA>
<REQUESTDESC>
<STATICVARIABLES>
<SVCURRENTCOMPANY>Test</SVCURRENTCOMPANY>
</STATICVARIABLES>
</REQUESTDESC>
<REQUESTDATA>
<TALLYMESSAGE xmlns:UDF="TallyUDF">
<LEDGER NAME="name2" RESERVEDNAME="">
<ADDRESS.LIST TYPE="String">
<ADDRESS>line1, line2</ADDRESS>
<ADDRESS>city</ADDRESS>
</ADDRESS.LIST>
<LEDSTATENAME>Goa</LEDSTATENAME>
<PINCODE>403001</PINCODE>
<MAILINGNAME.LIST TYPE="String">
<MAILINGNAME>name2</MAILINGNAME>
</MAILINGNAME.LIST>
<CURRENCYNAME>₹</CURRENCYNAME>
<EMAIL>testvira@email.com</EMAIL>
<WEBSITE />
<INCOMETAXNUMBER>LSWI2278DF</INCOMETAXNUMBER>
<COUNTRYNAME>India</COUNTRYNAME>
<GSTREGISTRATIONTYPE>Regular</GSTREGISTRATIONTYPE>
<PARENT>Sundry Debtors - Viras</PARENT>
<NARRATION />
<COUNTRYOFRESIDENCE>India</COUNTRYOFRESIDENCE>
<EMAILCC>mysteryman@email.com</EMAILCC>
<LEDGERPHONE>458923</LEDGERPHONE>
<LEDGERCONTACT>Mystery Man</LEDGERCONTACT>
<LEDGERMOBILE>6598765987</LEDGERMOBILE>
<PARTYGSTIN>ASDF234kl56</PARTYGSTIN>
<GSTNATUREOFSUPPLY>SEZ</GSTNATUREOFSUPPLY>
<LANGUAGENAME.LIST>
<NAME.LIST TYPE="String">
<NAME>name2</NAME>
<NAME>new name2</NAME>
</NAME.LIST>
<LANGUAGEID>1033</LANGUAGEID>
</LANGUAGENAME.LIST>
<PAYMENTDETAILS.LIST>
<IFSCODE>ifsc code</IFSCODE>
<BANKNAME>ScamNo1</BANKNAME>
<ACCOUNTNUMBER>123456789</ACCOUNTNUMBER>
<PAYMENTFAVOURING>name2</PAYMENTFAVOURING>
<TRANSACTIONNAME>E-Payment</TRANSACTIONNAME>
<SETASDEFAULT>No</SETASDEFAULT>
<DEFAULTTRANSACTIONTYPE>Inter Bank Transfer</DEFAULTTRANSACTIONTYPE>
<BENEFICIARYCODEDETAILS.LIST />
</PAYMENTDETAILS.LIST>
<LEDMULTIADDRESSLIST.LIST>
<ADDRESS.LIST TYPE="String">
<ADDRESS>Door No 1</ADDRESS>
<ADDRESS>Road No 1</ADDRESS>
<ADDRESS>Semmedu</ADDRESS>
</ADDRESS.LIST>
<EMAIL />
<STATE>Tamil Nadu</STATE>
<PINCODE>641114</PINCODE>
<INCOMETAXNUMBER>LSWI2278DF</INCOMETAXNUMBER>
<COUNTRYNAME>India</COUNTRYNAME>
<GSTREGISTRATIONTYPE>Regular</GSTREGISTRATIONTYPE>
<ADDRESSNAME>City Office</ADDRESSNAME>
<PARTYGSTIN>ASDF234kl56</PARTYGSTIN>
<CONTACTPERSON>maverick</CONTACTPERSON>
<ISOTHTERRITORYASSESSEE>No</ISOTHTERRITORYASSESSEE>
</LEDMULTIADDRESSLIST.LIST>
<LEDMULTIADDRESSLIST.LIST>
<ADDRESS.LIST TYPE="String">
<ADDRESS>Door No 1</ADDRESS>
<ADDRESS>Road No 1</ADDRESS>
<ADDRESS>Semmedu</ADDRESS>
</ADDRESS.LIST>
<EMAIL />
<STATE>Tamil Nadu</STATE>
<PINCODE>641114</PINCODE>
<INCOMETAXNUMBER>LSWI2278DF</INCOMETAXNUMBER>
<COUNTRYNAME>India</COUNTRYNAME>
<GSTREGISTRATIONTYPE>Regular</GSTREGISTRATIONTYPE>
<ADDRESSNAME>Godown</ADDRESSNAME>
<PARTYGSTIN>ASDF234kl56</PARTYGSTIN>
<CONTACTPERSON>maverick</CONTACTPERSON>
<ISOTHTERRITORYASSESSEE>No</ISOTHTERRITORYASSESSEE>
</LEDMULTIADDRESSLIST.LIST>
</LEDGER>
</TALLYMESSAGE>
</REQUESTDATA>
</IMPORTDATA>
</BODY>
</ENVELOPE>
我希望输出是一个 XML,上面写着 ledger created 但实际输出是 Unknown Request,无法处理