Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2005

Tip: Looking for answers? Try searching our database.

Shared DLL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 14 Nov 2005 00:44 GMT
Hi,
I have a DLL that talks to the widget on a comm port. It grabs the comm port
and hold it for the life of the application that invoked it.
With a windows client there is no problem as the appropriate class is only
instantiated once, getting control of the comm port and processing requests
as required.

I want to expose the functionality via a web service.( I am a newbie with
Web services)
What is the best way to way bolt this together? It seems to me that you
can't just reference the DLL in the web service as only one instantiation
can have control of the comm port. Also the initial handshaking to the
widget on the end of the port is timeconsuming and only wants to occur once.

So how do you implement a web service when the functionality can only have
one copy instantiated ? i.e. Stateless Web service married to stateful DLL.
Thanks
Bob
Peter Kelcey - 14 Nov 2005 21:50 GMT
Bob,

You could instantiate your object in the application_onstart event of
the global.asax file. You could then store the object in an application
variable which would remain stateful for you. You can then reference
this object instance from all of you web services as needed.

Peter
Bob - 15 Nov 2005 01:45 GMT
Hi Peter,
Thank you.
I shall give it a go.
regards
Bob.
> Bob,
>
[quoted text clipped - 4 lines]
>
> Peter

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.