Hello,
I am just beginning to work with the Accpac CRM Web Services. I have the following code:
CurlyCRM.WebService webserv = new CurlyCRM.WebService();
// Logon to CRM
CurlyCRM.logonresult logonResult = webserv.logon("tod", "tod");
webserv.SessionHeaderValue = new CurlyCRM.SessionHeader();
webserv.SessionHeaderValue.sessionId = logonResult.sessionid;
Response.Write("SessionID = " + logonResult.sessionid);
CurlyCRM.company comp = (CurlyCRM.company)webserv.queryentity(751, "company").records;
lblFirst.Text = comp.name;
webserv.logoff(webserv.SessionHeaderValue.sessionId);
logonResult = null;
webserv.Dispose();
webserv = null;
My problem is that I recieved an exception after the webserv.logon function was called. Now, whenever I rund the above code, I get a "Web service user already logged in" error. Does anyone know how to grab the sessionID for my currently logged on user so I can logoff?
Thanks.
Tod Birdsall
I am just beginning to work with the Accpac CRM Web Services. I have the following code:
CurlyCRM.WebService webserv = new CurlyCRM.WebService();
// Logon to CRM
CurlyCRM.logonresult logonResult = webserv.logon("tod", "tod");
webserv.SessionHeaderValue = new CurlyCRM.SessionHeader();
webserv.SessionHeaderValue.sessionId = logonResult.sessionid;
Response.Write("SessionID = " + logonResult.sessionid);
CurlyCRM.company comp = (CurlyCRM.company)webserv.queryentity(751, "company").records;
lblFirst.Text = comp.name;
webserv.logoff(webserv.SessionHeaderValue.sessionId);
logonResult = null;
webserv.Dispose();
webserv = null;
My problem is that I recieved an exception after the webserv.logon function was called. Now, whenever I rund the above code, I get a "Web service user already logged in" error. Does anyone know how to grab the sessionID for my currently logged on user so I can logoff?
Thanks.
Tod Birdsall