Our client want to integrate GP 2010 with their desktop application to post Invoice into GP using eConnect.
I dont have any idea about what should be the best method and how to configure the eConnect to use with a client/server desktop application.
I've Dynamics GP 2010 installed on a server and now going to install the eConnect on the same server.
The Database server is different then the GP server.
I've a sample application where I've used the reference for eConnect DLLs and didnt installed the eConnect on my development machine.
The questions are:
1. How can I configure the eConnect on client machine and do I need to install anything of eConnect on the client machine?
2. Can you please provide me the sample XML to create Invoice in GP. It is not available in the Sample XML folder of eConnect SDK or I am unable to locate it?
3. You guideline on what would be the best/simple method to integrate with the eConnect so that there should not be much configuration on client machine. We just configure the GP Server & eConnect on the server and include the DLLs in our application and things just work.
The function code is like:
private void ExportInvoiceToGP()
{
eConnectMethods eConnect = new eConnectMethods();
XmlDocument xmlDoc = null;
string conGP = string.Empty;
bool status = false;
string filePath = string.Empty;
try
{
xmlDoc = new System.Xml.XmlDocument();
conGP = Properties.Settings.Default.GPConnectionString;
filePath = @"E:\TestProjects\eConnectExample\eConnectExample\XML\SampleInvoice.xml";
xmlDoc.Load(filePath);
//status = eConnect. CreateEntity(conGP, xmlDoc.OuterXml);
string result = eConnect.CreateTransactionEntity(conGP, xmlDoc.OuterXml);
}
catch (Exception ex)
{
EventLog eLog = new EventLog("Application", ".", "eConnectExample");
eLog.WriteEntry(ex.Message);
}
finally
{
eConnect.Dispose();
}
}
Thanks in advance & any kind of help will be highly appreciated.
*This post is locked for comments
I don't think you can post transaction using eConnect.
1. How can I configure the eConnect on client machine and do I need to install anything of eConnect on the client machine?
You need to install eCOnnect client on each machine and then do MSDTC setting – This I was doing on GP9.0 and 10 eConnect don’t know about 2010 we need to do it or not.
2. Can you please provide me the sample XML to create Invoice in GP. It is not available in the Sample XML folder of eConnect SDK or I am unable to locate it?
msdn.microsoft.com/.../bb625169.aspx
3. You guideline on what would be the best/simple method to integrate with the eConnect so that there should not be much configuration on client machine. We just configure the GP Server & eConnect on the server and include the DLLs in our application and things just work.
I will recommend to use Dynamics GP Web Service; Install WS on web Server and then refer web reference. If not then create custom web service using eConnect – I do lot so we don’t have to worry anything on client machine
Here is one example about creating web service using eConnect that may help you.
sandipdjadhav.blogspot.com/.../next-document-number-web-service-using.html
Let me know how it goes.
Thanks
Sandip
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156