Remoting

  • Thread starter Thread starter perspolis
  • Start date Start date
P

perspolis

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
 
you can remote an object in between a mono install and a windows install.
However from the description you provide, how do you want to get the data to
the linux box? The short answer is that you can remote between the two but
in this instance, it sounds like it may be easier to use a Web service to
accomplish your task.
 
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.
 
do u have any good idea in this subject?

W.G. Ryan - MVP said:
you can remote an object in between a mono install and a windows install.
However from the description you provide, how do you want to get the data to
the linux box? The short answer is that you can remote between the two but
in this instance, it sounds like it may be easier to use a Web service to
accomplish your task.
 
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??

Nicholas Paldino said:
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
 
It depends. If the database is on the linux server, then you should use
whatever data access method is available on the server, and then return the
data through the web service.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

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
 
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
 
Nicholas, just as an FYI, it's definitely doable in Mono right now and it's
pretty robust. With that said, I still am in total agreement with your
ulimate point though - from teh sounds of this particular scenario, a web
service is probably a whole lot more feasable.
Nicholas Paldino said:
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
 
I want to transfer data behind scence..and want to be secure..
I don't think ftp is much secure
 
Well you have sftp and the web file transfer. You also have the
NegotiatedSteams in 2.0 if you wanted something custom.
 
could u send me a sample code??
thanks
William Stacey said:
Well you have sftp and the web file transfer. You also have the
NegotiatedSteams in 2.0 if you wanted something custom.
 
Back
Top