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 / September 2004

Tip: Looking for answers? Try searching our database.

Can a remote object be a WebService as well?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julia - 06 Sep 2004 15:39 GMT
Hi,

Can a Remote object be a WebService as well?
i want to able to connect to a remote object either using .NET remoting
and HTTP\SOAP

so I wonder if I can create a singleton(statefull) object hosted in IIS
which can be xml web service
,NET remoted object,singleton and support COM+ transaction management all in
the same time

The object should served single user

Thanks.

----------------------------------------------------------------------------
----------------------------------
My orginial post which didnt get answers in several news groups:
----------------------------------------------------------------------------
----------------------------------
I need help with architecture design,please:

I have a server which  constantly  downloading messages from the internet
and store them inside a data base.

the server have two administrators options:
one is a local windows application,and the second is a web application
The administrator can either delete messages,add new messages,and send
messages

i am new to .NET remoting,so here is my idea in general:

1.Create  singleton  MessagesServer remotable object which act as my server
and hosted by some exe application
2.For Windows admin application, just connect to the singleton object and
admin it
3.For the web admin application,using ASP,NET pages,connect to the
MessagesServer and admin it
  (I cannot install .NET components on this machine so i must use server
side code?)

My questions are:

1.Can I create in .NET something similar to COM out proc server (activex
exe),which mean that when the admin application
  will create the MessagesServer,than the exe which hosting MessagesServer
will start?

2.Assuming the window admin application is local to the  MessagesServer,can
i just pack the MessagesServer object
  into the window admin executbale,so it will be local to the window
application.,but remote for the web application?

3.When using Web application,what is the best way to access the data
base,should I do itusing the MessagesServer,for example
MessagesServer.GetMessages() as
ArrayList
or can I go directly to the data base(I guess I will have some
synchronization issues here!?)

4.Regarding locks,assuming i have one thread in the MessagesServer object
which access the data base,and than a request from the
Web application is arrived to write to the data base,can i control the
time in which the request will return to the web application?

5.can the MessagesServer object be a singleton,remotable(for windows
application),hosted by IIS,support transactions using COM+ and exposed as
WebService all at the same time?!?

6.Can you point me to some articles or examples which describe a similar
problem?

7.any books about services components in .Net(preferably in C#)?

The overall architecture is something similar to Exchange server/OWA i
guess.

Thanks.
Sam Santiago - 06 Sep 2004 17:14 GMT
You should be able to if you create a true singleton object that is also
exposed a remote object.  If your web services is in the same App Domain as
your singleton object then is could use the object as a typical object.
Otherwise it could also use it as a remote object since the same instance
will be used by all clients.  We had a discussion on singletons and
factories in this group a few weeks ago, so search the group for it or I
have some of the discussion here:  http://www.SoftiTechture.com/discussions.
Also, this article might be helpful:

INFO: Configure .NET Remoting When the Remoting Client Is an ASP.NET
Application or the Client Is Another Remoted Component That Is Hosted by IIS
http://support.microsoft.com/default.aspx?scid=kb;en-us;323490

Thanks,

Sam
Signature

_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________

> Hi,
>
[quoted text clipped - 74 lines]
>
> Thanks.
Julia - 07 Sep 2004 06:33 GMT
Thanks.

> You should be able to if you create a true singleton object that is also
> exposed a remote object.  If your web services is in the same App Domain as
[quoted text clipped - 97 lines]
> >
> > Thanks.

Rate this thread:







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.