Re: Is Remoting The Right Tool For My Job?
- From: "Robson Siqueira" <robson@xxxxxxxxxxxxxxx>
- Date: Fri, 22 Dec 2006 11:40:51 -0500
I would still go Web Services. It is pretty simple to maintain and has
visibility on management interfaces and applications, rather than remoting
(you could, but you would need to implement a lot of instrumentation for
that). If your classes (data classes, business entities, etc) won't
serialize, is there any possibility you could change them? Remember that
even on remoting, you need to serialize your objects - there is a little bit
different because you can serialize your objects to binary also.
There are lot of ways to do what you want. You could serialize your objects
to binary and pass them as a MIME/DIME attachment to the web service. On the
other side, you would open the attachment and de-serialize the object from
the binary data you received. This would work for you, no doubt. But, it is
a workaround for sure.
I would rather understand and investigate the cause why your objects won't
serialize first. Even going remoting, this may get you sometime.
--
Regards,
Robson Siqueira
Enterprise Architect
"senfo" <enceladus311@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OjgHjd4HHHA.1248@xxxxxxxxxxxxxxxxxxxxxxx
I wrote a Windows application that used a custom DAL (data access layer) to
perform all database calls for the application. The problem is that the
application is run as the current user and the client (customer) does not
wish to grant permission to the database for individual users, even if
permission is granted through a group & role. We came up with a viable
solution that would mean separating the DAL into a web service that is
hosted by IIS and runs under a user which only key administrators have the
password for. That way users could pass credentials on to the web service
and the web service could decide whether or not the user had access to the
services; but, it would be impossible for the user to gain direct access to
the database. It sounded like a promising idea to convert my original DAL
into a web service until I realized that the properties in my classes would
not be serialized as XML. That's when I started thinking that it might be
a better idea to use .NET Remoting since I can assure that my client will
only be written in .NET.
Anybody have any opinions? Does .NET Remoting sound like the right tool
for the job?
On a side note, Windows Communication Foundation is not yet permitted.
Thank you in advance,
--
Sean
.
- References:
- Is Remoting The Right Tool For My Job?
- From: senfo
- Is Remoting The Right Tool For My Job?
- Prev by Date: Re:
- Next by Date: generate TypedDataSet with custom DataTable via designer
- Previous by thread: Re: Is Remoting The Right Tool For My Job?
- Next by thread: Paged data source serialization problem
- Index(es):
Relevant Pages
|
Loading