Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 simultaneous calls to a webservice wreaks havoc
Message
From
26/01/2006 17:52:26
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01090751
Message ID:
01090756
Views:
15
>I have a webservice made up of 2 projects aeService and aeCommon. Within aeCommon I have a class DB that sets and retrieves the DBConnection String.
>
>Main Webservice method accepts an id, a password and an xml file of inventory as parameters and then calls DB.SetDBConn(strRetailerID, strPassword). This main method then starts parsing the xml file and calls functions in the db class to insert records into the appropriate sql database.
>
>Unfortunately, if 2 applications call this webservice at the same time It's like the dbconnection string is overwritten and then the xml starts going to the wrong sql database.

You probably have the same problem I had recently. Remove the Shared attribute of the related variables/methods and that should work.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform