PC Review


Reply
Thread Tools Rate Thread

Re: How to access a .Net remoting server

 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      2nd Sep 2003
What's wrong with using web services? You can expose your object methods via
web service and enjoy the built-in support for xml web services in CF. The
only thing you won't get are events, but that would not sit well with the
mobile device paradigm anyway - these devices are not always connected

"Lars Roith" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello out there,
>
> I hope someone can give some hints for solving the following problem:
>
> I have to access some remoting objects hosted at a server known to me.
> These objects are able to send events. The complete scenario is working

quite well on
> platforms using the "real" .Net Framework.
>
> Now I have the new requirement to support .NET CF clients.
>
> As I found out the CF does not support Remoting nor does it support

serialization.
>
> My questions now are:
> * What do I have to do to be able to communicate with server components

the same way
> "normal" .NET components do? This also includes execution/calling

methods across the wire.
> Is this possible or do I have to implement my own protocol and generat

server and client
> proxies that handle the requests and perform the communication?
>
> * Is there an easy way to use SOAP as the protocol? So the CF doesn't have

any
> serialization support it seems to be a daunting task to write each

message by
> hand because the CF doesn't "really" support XML. (I know it has XML DOM

the limitations
> seem to be very hard). Nevertheless it would be much easier for the

server side implementation
> to have SOAP messages instead of some own binary format. Or maybe is

there a way to rebuild the
> BinaryFormatter used in "normal" .NET?
>
> * If I have to implement my own protocol could you give me some hints on

how to do it?
> Maybe there are some BestPractices or relevant patterns to take care of?
>
> * Are there BestPractices on how to implement a proxy? I know there are

some patterns.
> Maybe someone could give me a link to a sample implementation.
>
> Thanks in advance,
>
> Lars
>
>
>
>
>



 
Reply With Quote
 
 
 
 
Alex Yakhnin [eMVP]
Guest
Posts: n/a
 
      3rd Sep 2003
Your choices in that case could be using Sockets with
some "custom" protocol. If you still want to use Soap, you
can take a look at the Soap formatter implementation in
the "mono" project:

http://www.go-mono.com

HTH... Alex
--
Alex Yakhnin, eMVP
IntelliProg, Inc.
http://www.intelliprog.com


>-----Original Message-----
>Hello Alex,
>
>thanks for the response.
>
>The events are a dire neccessity. The scenario the

application is running in is
>industrial automation meaning the CF-Client will be used

to control machines.
>This doesn't imply that the CF-Client is running on a

mobile device. Furthermore
>"intelligent" panels are used which have their own

operating system. In many cases
>this is CE.NET.
>The base system uses the "normal" .NET framework and is

running on
>PC's. Theses PCs can be part of the machine itself or

some other "servers".
>Now imagine the following scenario:
>An alarm occurs within the machine (Maybe a temperature

got to high).
>This alarm should be reported to all connected clients.

Now if I would use WebServices
>I have to query in small intervals wether there is an

alarm. In the case of events
>I have to do nothing but subscribe to the event and

handle it in any way.
>
>Of course there would be a problem when the CF-Client is

a mobile client and
>disconnected at the time of the occurence of the alarm.

Nevertheless this is in my
>scenario a special case that requires a special handling

I thought about registering
>the client at the server and using a queue to notify it.

If it is not reachable the queue
>will store the messages to be sent to the client for a

certain amount of time.
>
>Maybe there are some other opinions about my primary

questions.
>
>Cheers,
>
>Lars
>
>"Alex Feinman [MVP]" <(E-Mail Removed)> wrote

in message news:(E-Mail Removed)...
>> What's wrong with using web services? You can expose

your object methods via
>> web service and enjoy the built-in support for xml web

services in CF. The
>> only thing you won't get are events, but that would not

sit well with the
>> mobile device paradigm anyway - these devices are not

always connected
>>
>> "Lars Roith" <(E-Mail Removed)> wrote in

message
>> news:(E-Mail Removed)...
>> > Hello out there,
>> >
>> > I hope someone can give some hints for solving the

following problem:
>> >
>> > I have to access some remoting objects hosted at a

server known to me.
>> > These objects are able to send events. The complete

scenario is working
>> quite well on
>> > platforms using the "real" .Net Framework.
>> >
>> > Now I have the new requirement to support .NET CF

clients.
>> >
>> > As I found out the CF does not support Remoting nor

does it support
>> serialization.
>> >
>> > My questions now are:
>> > * What do I have to do to be able to communicate with

server components
>> the same way
>> > "normal" .NET components do? This also includes

execution/calling
>> methods across the wire.
>> > Is this possible or do I have to implement my own

protocol and generat
>> server and client
>> > proxies that handle the requests and perform the

communication?
>> >
>> > * Is there an easy way to use SOAP as the protocol?

So the CF doesn't have
>> any
>> > serialization support it seems to be a daunting

task to write each
>> message by
>> > hand because the CF doesn't "really" support XML.

(I know it has XML DOM
>> the limitations
>> > seem to be very hard). Nevertheless it would be

much easier for the
>> server side implementation
>> > to have SOAP messages instead of some own binary

format. Or maybe is
>> there a way to rebuild the
>> > BinaryFormatter used in "normal" .NET?
>> >
>> > * If I have to implement my own protocol could you

give me some hints on
>> how to do it?
>> > Maybe there are some BestPractices or relevant

patterns to take care of?
>> >
>> > * Are there BestPractices on how to implement a

proxy? I know there are
>> some patterns.
>> > Maybe someone could give me a link to a sample

implementation.
>> >
>> > Thanks in advance,
>> >
>> > Lars
>> >
>> >
>> >
>> >
>> >

>>
>>

>
>
>.
>

 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      3rd Sep 2003
If there are disconnected clients, I'd think about MSMQ as the notification
mechanism. It handles the disconnected scenario for you without any special
code on your part. Maybe there's a combination of things that you have to
use: MSMQ for alarms, WebServices for actual data updates, etc.

Paul T.

"Alex Yakhnin [eMVP]" <(E-Mail Removed)> wrote in message
news:0a4001c37218$6e579140$(E-Mail Removed)...
> Your choices in that case could be using Sockets with
> some "custom" protocol. If you still want to use Soap, you
> can take a look at the Soap formatter implementation in
> the "mono" project:
>
> http://www.go-mono.com
>
> HTH... Alex
> --
> Alex Yakhnin, eMVP
> IntelliProg, Inc.
> http://www.intelliprog.com
>
>
> >-----Original Message-----
> >Hello Alex,
> >
> >thanks for the response.
> >
> >The events are a dire neccessity. The scenario the

> application is running in is
> >industrial automation meaning the CF-Client will be used

> to control machines.
> >This doesn't imply that the CF-Client is running on a

> mobile device. Furthermore
> >"intelligent" panels are used which have their own

> operating system. In many cases
> >this is CE.NET.
> >The base system uses the "normal" .NET framework and is

> running on
> >PC's. Theses PCs can be part of the machine itself or

> some other "servers".
> >Now imagine the following scenario:
> >An alarm occurs within the machine (Maybe a temperature

> got to high).
> >This alarm should be reported to all connected clients.

> Now if I would use WebServices
> >I have to query in small intervals wether there is an

> alarm. In the case of events
> >I have to do nothing but subscribe to the event and

> handle it in any way.
> >
> >Of course there would be a problem when the CF-Client is

> a mobile client and
> >disconnected at the time of the occurence of the alarm.

> Nevertheless this is in my
> >scenario a special case that requires a special handling

> I thought about registering
> >the client at the server and using a queue to notify it.

> If it is not reachable the queue
> >will store the messages to be sent to the client for a

> certain amount of time.
> >
> >Maybe there are some other opinions about my primary

> questions.
> >
> >Cheers,
> >
> >Lars
> >
> >"Alex Feinman [MVP]" <(E-Mail Removed)> wrote

> in message news:(E-Mail Removed)...
> >> What's wrong with using web services? You can expose

> your object methods via
> >> web service and enjoy the built-in support for xml web

> services in CF. The
> >> only thing you won't get are events, but that would not

> sit well with the
> >> mobile device paradigm anyway - these devices are not

> always connected
> >>
> >> "Lars Roith" <(E-Mail Removed)> wrote in

> message
> >> news:(E-Mail Removed)...
> >> > Hello out there,
> >> >
> >> > I hope someone can give some hints for solving the

> following problem:
> >> >
> >> > I have to access some remoting objects hosted at a

> server known to me.
> >> > These objects are able to send events. The complete

> scenario is working
> >> quite well on
> >> > platforms using the "real" .Net Framework.
> >> >
> >> > Now I have the new requirement to support .NET CF

> clients.
> >> >
> >> > As I found out the CF does not support Remoting nor

> does it support
> >> serialization.
> >> >
> >> > My questions now are:
> >> > * What do I have to do to be able to communicate with

> server components
> >> the same way
> >> > "normal" .NET components do? This also includes

> execution/calling
> >> methods across the wire.
> >> > Is this possible or do I have to implement my own

> protocol and generat
> >> server and client
> >> > proxies that handle the requests and perform the

> communication?
> >> >
> >> > * Is there an easy way to use SOAP as the protocol?

> So the CF doesn't have
> >> any
> >> > serialization support it seems to be a daunting

> task to write each
> >> message by
> >> > hand because the CF doesn't "really" support XML.

> (I know it has XML DOM
> >> the limitations
> >> > seem to be very hard). Nevertheless it would be

> much easier for the
> >> server side implementation
> >> > to have SOAP messages instead of some own binary

> format. Or maybe is
> >> there a way to rebuild the
> >> > BinaryFormatter used in "normal" .NET?
> >> >
> >> > * If I have to implement my own protocol could you

> give me some hints on
> >> how to do it?
> >> > Maybe there are some BestPractices or relevant

> patterns to take care of?
> >> >
> >> > * Are there BestPractices on how to implement a

> proxy? I know there are
> >> some patterns.
> >> > Maybe someone could give me a link to a sample

> implementation.
> >> >
> >> > Thanks in advance,
> >> >
> >> > Lars
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >>

> >
> >
> >.
> >



 
Reply With Quote
 
Lars Roith
Guest
Posts: n/a
 
      4th Sep 2003
Hallo Paul and all the others,

I think the hint to mono can be quiet useful.
Also the considerations about MSMQ are good.
And the webservice ... I am not sure wether they fit my needs.
I think I have to prototype it.

So it is now up to me to build some working app out of the information retrieved.
And this is the most difficult part ;o)

Thanks again,

Lars
"Paul G. Tobey [eMVP]" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> If there are disconnected clients, I'd think about MSMQ as the notification
> mechanism. It handles the disconnected scenario for you without any special
> code on your part. Maybe there's a combination of things that you have to
> use: MSMQ for alarms, WebServices for actual data updates, etc.
>
> Paul T.
>
> "Alex Yakhnin [eMVP]" <(E-Mail Removed)> wrote in message
> news:0a4001c37218$6e579140$(E-Mail Removed)...
> > Your choices in that case could be using Sockets with
> > some "custom" protocol. If you still want to use Soap, you
> > can take a look at the Soap formatter implementation in
> > the "mono" project:
> >
> > http://www.go-mono.com
> >
> > HTH... Alex
> > --
> > Alex Yakhnin, eMVP
> > IntelliProg, Inc.
> > http://www.intelliprog.com
> >
> >
> > >-----Original Message-----
> > >Hello Alex,
> > >
> > >thanks for the response.
> > >
> > >The events are a dire neccessity. The scenario the

> > application is running in is
> > >industrial automation meaning the CF-Client will be used

> > to control machines.
> > >This doesn't imply that the CF-Client is running on a

> > mobile device. Furthermore
> > >"intelligent" panels are used which have their own

> > operating system. In many cases
> > >this is CE.NET.
> > >The base system uses the "normal" .NET framework and is

> > running on
> > >PC's. Theses PCs can be part of the machine itself or

> > some other "servers".
> > >Now imagine the following scenario:
> > >An alarm occurs within the machine (Maybe a temperature

> > got to high).
> > >This alarm should be reported to all connected clients.

> > Now if I would use WebServices
> > >I have to query in small intervals wether there is an

> > alarm. In the case of events
> > >I have to do nothing but subscribe to the event and

> > handle it in any way.
> > >
> > >Of course there would be a problem when the CF-Client is

> > a mobile client and
> > >disconnected at the time of the occurence of the alarm.

> > Nevertheless this is in my
> > >scenario a special case that requires a special handling

> > I thought about registering
> > >the client at the server and using a queue to notify it.

> > If it is not reachable the queue
> > >will store the messages to be sent to the client for a

> > certain amount of time.
> > >
> > >Maybe there are some other opinions about my primary

> > questions.
> > >
> > >Cheers,
> > >
> > >Lars
> > >
> > >"Alex Feinman [MVP]" <(E-Mail Removed)> wrote

> > in message news:(E-Mail Removed)...
> > >> What's wrong with using web services? You can expose

> > your object methods via
> > >> web service and enjoy the built-in support for xml web

> > services in CF. The
> > >> only thing you won't get are events, but that would not

> > sit well with the
> > >> mobile device paradigm anyway - these devices are not

> > always connected
> > >>
> > >> "Lars Roith" <(E-Mail Removed)> wrote in

> > message
> > >> news:(E-Mail Removed)...
> > >> > Hello out there,
> > >> >
> > >> > I hope someone can give some hints for solving the

> > following problem:
> > >> >
> > >> > I have to access some remoting objects hosted at a

> > server known to me.
> > >> > These objects are able to send events. The complete

> > scenario is working
> > >> quite well on
> > >> > platforms using the "real" .Net Framework.
> > >> >
> > >> > Now I have the new requirement to support .NET CF

> > clients.
> > >> >
> > >> > As I found out the CF does not support Remoting nor

> > does it support
> > >> serialization.
> > >> >
> > >> > My questions now are:
> > >> > * What do I have to do to be able to communicate with

> > server components
> > >> the same way
> > >> > "normal" .NET components do? This also includes

> > execution/calling
> > >> methods across the wire.
> > >> > Is this possible or do I have to implement my own

> > protocol and generat
> > >> server and client
> > >> > proxies that handle the requests and perform the

> > communication?
> > >> >
> > >> > * Is there an easy way to use SOAP as the protocol?

> > So the CF doesn't have
> > >> any
> > >> > serialization support it seems to be a daunting

> > task to write each
> > >> message by
> > >> > hand because the CF doesn't "really" support XML.

> > (I know it has XML DOM
> > >> the limitations
> > >> > seem to be very hard). Nevertheless it would be

> > much easier for the
> > >> server side implementation
> > >> > to have SOAP messages instead of some own binary

> > format. Or maybe is
> > >> there a way to rebuild the
> > >> > BinaryFormatter used in "normal" .NET?
> > >> >
> > >> > * If I have to implement my own protocol could you

> > give me some hints on
> > >> how to do it?
> > >> > Maybe there are some BestPractices or relevant

> > patterns to take care of?
> > >> >
> > >> > * Are there BestPractices on how to implement a

> > proxy? I know there are
> > >> some patterns.
> > >> > Maybe someone could give me a link to a sample

> > implementation.
> > >> >
> > >> > Thanks in advance,
> > >> >
> > >> > Lars
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >
> > >.
> > >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Remoting: Passing information to the Remoting Object upon Creation Felix Wang Microsoft C# .NET 3 9th Feb 2004 10:09 AM
Re: Remoting: Passing information to the Remoting Object upon Creation Matthew Wieder Microsoft C# .NET 0 6th Feb 2004 03:01 PM
Re: Remoting: Passing information to the Remoting Object upon Creation Matthew Wieder Microsoft C# .NET 0 5th Feb 2004 02:04 PM
Remoting: Passing information to the Remoting Object upon Creation Matthew Wieder Microsoft C# .NET 0 4th Feb 2004 11:42 PM
How do I tell when a remoting client or remoting server goes away? John Microsoft Dot NET Framework 4 19th Sep 2003 01:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 PM.