IT Technical Support for Developers

Tally Integration Capabilities

Share

How to Integrate .NET with Tally Using XML

Tally Interfaces – For Integration .NET Sample Code

How to Export data from tally using .NET using c#?

WebRequest Request = WebRequest.Create(TallyUrl.Text);
string exportxml = null;
int Amt = int.Parse(VCHAmount.Text);

exportxml = "<ENVELOPE>" +
"<HEADER>" +
"<TALLYREQUEST>Export Data</TALLYREQUEST>" +
"</HEADER>" +
"<BODY>" +
. . .
. . .
"</BODY>" +
"</ENVELOPE>";
}
Byte[] bytesToWrite = Encoding.ASCII.GetBytes(exportxml);

Request.Method = "POST";
Request.ContentLength = bytesToWrite.Length;
Request.ContentType = "text/xml";

Stream newStream = Request.GetRequestStream();
newStream.Write(bytesToWrite, 0, bytesToWrite.Length);
newStream.Close();

HttpWebResponse response = (HttpWebResponse)Request.GetResponse();
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);

string responseFromServer = reader.ReadToEnd();
string xmlresponse = responseFromServer;

XmlDocument xd = new XmlDocument();
xd.LoadXml(xmlresponse);


Tags : Tally to .net c# xml data,
Tally xml export/ import using C# .net
How to: Request Data Using the WebRequest Class,
How to make a GET request by using Visual C#,
c# - HTTP request with post,
Create HTTP GET and POST Request with C#,
HttpWebRequest/Response in a Nutshell
Hits: 5568, Rating : ( 5 ) by 1 User(s).