473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Please help!! How to design this?

Hello. I hope you can help me with this. I have to write an application in
C# that is more or less this:

1.- I have different clients that receive data from a central server.
2.- The server sends the initial data to the clients and keeps waiting for
responses.
3.- The clients generate new data and send it back to the server to complete
some operations.
4.- When the server finishes the operations requested, it sends back again
the data to the clients.
5.- Finally, the clients end the operations and send the final data to the
server.
6.- The server stores the completed data in a data base.

Important issues:
* When the server works with the data sent by the clients in step 3, it
opens an entry in a table with information of the process, so it can
complete the information in step 6 and store the data in the data base.

Firstly I decided using web services and send the information (objects) via
web methods, but there was two problems: the proxy generates its own
objects, incompatible with the original objects and the second, each time a
web method is called, a new object is created, so I can't store temporary
information in the table.

I asked for help and people talk me about two solutions:
- Serializing the table in each call: I think it's not very efficient (isn't
it slow?)
- Using remoting: I should learn first about remoting :-\

What do you think?

Regards,

Diego F.
Nov 16 '05 #1
1 1117
Diego, you can create your own protocol for clients and server to
communicate between each other.
suppose, you have a class A that contains three variables of types int,
string, float...
There is no need to serizlize it into xml, you can create packet where you
will
write the type of data, it's length, and the packet's intent (so-called
packet code)
clients, or server will get that packet anilize it, and have a possibility
to constrcut object, or save data into db...

--
Vladimir Scherbina,
Ukraine, Kiev.

"Diego F." <di*****@NOterra.es> wrote in message
news:#j**************@TK2MSFTNGP10.phx.gbl...
Hello. I hope you can help me with this. I have to write an application in
C# that is more or less this:

1.- I have different clients that receive data from a central server.
2.- The server sends the initial data to the clients and keeps waiting for
responses.
3.- The clients generate new data and send it back to the server to complete some operations.
4.- When the server finishes the operations requested, it sends back again
the data to the clients.
5.- Finally, the clients end the operations and send the final data to the
server.
6.- The server stores the completed data in a data base.

Important issues:
* When the server works with the data sent by the clients in step 3, it
opens an entry in a table with information of the process, so it can
complete the information in step 6 and store the data in the data base.

Firstly I decided using web services and send the information (objects) via web methods, but there was two problems: the proxy generates its own
objects, incompatible with the original objects and the second, each time a web method is called, a new object is created, so I can't store temporary
information in the table.

I asked for help and people talk me about two solutions:
- Serializing the table in each call: I think it's not very efficient (isn't it slow?)
- Using remoting: I should learn first about remoting :-\

What do you think?

Regards,

Diego F.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mel | last post by:
i have the following script that works: window.onbeforeunload = confirmExit; function confirmExit() { return "YOU ARE LEAGING THE CHAT" }
0
by: Mobile Boy 36 | last post by:
I'm trying to make a very simple Textbox with a FocusColor property...When the focus changes to the control, the backcolor must change automaticly to the color set by the focusColor property....
4
by: mattgcon | last post by:
When I use a stored procedure to insert data into a table and when the Datagrid refreshes two new columns are added. The dataSet is set up with one table with NO columns defined. Please help me on...
2
by: rodchar | last post by:
Hey all, Database Info: I have an employee database management system. There's about 8 tables that makes up a single record for an employee. ASPNET: I have a datagrid list of Employees....
2
by: Gawn | last post by:
Hi I am from Thainald and new to PHP/MySQL. I am doing a news website and I can't do the related news, while I can for latest news. My code for latest news is "SELECT * FROM news WHERE...
1
by: ryann18 | last post by:
Can someone please help with this modifying Account problem!?!?! Modify the Account class so that it also permits an account to be opened with just a name and an account number, assuming an...
0
by: sunilrakesh435 | last post by:
Please help me for this webservice solution....... -------------------------------------------------------------------------------- Hi. Im sunil . Im new to use web services.I got a problem...
1
by: DarkGiank | last post by:
Hi, im new to csharp and im trying to create a class that can change the application database without no rewriting all connection code... but cause some reason it is not working... it tells me that...
1
by: Alwyn | last post by:
struct lib { char *name,*author,*publish; int price; int no; }u; FILE *fp; void fin() //Inputs data to a file
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.