Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Web service user already logged in

Status
Not open for further replies.

tod1d

Programmer
Nov 14, 2006
1
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top