0

我参考了@bandook 在 Tally 与 XML 和 HTTP 的集成中给出的解决方案:Ledger creation failure but still getting the same error

我在 vb.net xml 字符串中进行编码,我创建如下,我没有创建文件,我使用 webrequest 直接点击 localhost 链接

Dim xmlcontents As String = "<ENVELOPE>" + Environment.NewLine
    xmlcontents &= " <HEADER>" + Environment.NewLine
    xmlcontents &= "<VERSION>1</VERSION>" + Environment.NewLine
    xmlcontents &= "<TALLYREQUEST>IMPORT</TALLYREQUEST>" + Environment.NewLine
    xmlcontents &= "<TYPE>DATA</TYPE>" + Environment.NewLine
    xmlcontents &= "<ID>ALL MASTERS</ID>" + Environment.NewLine
    xmlcontents &= "</HEADER>" + Environment.NewLine
    xmlcontents &= "<BODY>" + Environment.NewLine
    xmlcontents &= "<DESC>" + Environment.NewLine
    xmlcontents &= "<STATICVARIABLES>" + Environment.NewLine
    xmlcontents &= "<SVCURRENTCOMPANY>Soham Enterpries</SVCURRENTCOMPANY>" + Environment.NewLine
    xmlcontents &= "</STATICVARIABLES>" + Environment.NewLine
    xmlcontents &= "</DESC>" + Environment.NewLine
    xmlcontents &= "<DATA>" + Environment.NewLine
    xmlcontents &= "<TALLYMESSAGE>" + Environment.NewLine
    xmlcontents &= " <LEDGER Action = 'CREATE'>" + Environment.NewLine
    xmlcontents &= "<NAME>ICICI</NAME>" + Environment.NewLine
    xmlcontents &= " <Parent> Bank Accounts</PARENT>" + Environment.NewLine
    xmlcontents &= "<OPENINGBALANCE>12500</OPENINGBALANCE>" + Environment.NewLine
    xmlcontents &= "</LEDGER>" + Environment.NewLine
    xmlcontents &= "</TALLYMESSAGE>" + Environment.NewLine
    xmlcontents &= "</DATA>" + Environment.NewLine
    xmlcontents &= "</BODY>" + Environment.NewLine
    xmlcontents &= "</ENVELOPE>" + Environment.NewLine

' 也试过这个 ' <LEDGER NAME ='ICICI1' Action = 'CREATE'

它没有用

请帮助我提前谢谢

4

0 回答 0