Persopolis:
Just so there's no confusion, understand that Remoting and Web Services are
both simply mechanisms to facility remote procedure calls. They are means by
which you implement your communications layer. Both of them require the
data that is to be remoted to be serialized. Connection objects, as well as
datareaders aren't serializable. So you don't use remoting to query a
database. You use an object to query the database, get the data you need,
then remote the object.
now, in terms of "Better". first, you can use Remoting and Web Services in
a DMZ to provide 'better' security (better than exposing your database
server to the world through your web server). You can also use remoting to
better facilititate changes that you need - better in the sense that if you
remote a dataset or have a web service return a dataset (or any other
object), then you can switch the back end or anything else and the client
code would be none the wiser.
Mono is very well suite in it's current form, to handle Non ui tasks, the
main weakness it has is that from a UI point of view, it still leaves a
little to be desired. But you can have a linux box, call a MySql or Orace
databse, and return a dataset which can be consumed on a windows box, quite
easily. If you are really serious about this, Cross-Platform .NET
Development using Mono, Portable .NET and Microsoft .NET is a superb
resource on the subject..
perspolis said:
If that website is hosted in Windows it's better to use web service or
using
for example an OleDataAdapter to connect to the database on that site??
in
message news:
[email protected]...
perspolis,
The short answer is no, you can not. You ^might^ be able to do it,
depending on how far the Mono project is (it has ports of .NET for
various
flavors of *nix, but I don't know how much of the remoting infrastructure
they have in place).
You are better off creating a web service on the linux box and then
making calls from .NET through a web reference.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
perspolis said:
Hi
I want to send some info from my C# windows application to a website
that
hosetd in Linux.
Can I use Remoting to transfer information between them?
thanks in advance