473,545 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Design Problem!!

Jay
Hello,

I have Windows Forms application which uses MS Access Database and a Pocket
PC application which uses Datasets, Iam trying to pass Datasets between
these applications using WebServices. Both these applications are shrink
wrapped so they need to perform with little user configuration

WebService/IIS is running on the computer having the Windows Application and
Pocket PC connectss to the webservice through Active Sync.

Iam trying to accomplish following task and am breaking my head over it-

1. How does the Webservice know where the MS Access Database is present. ie
How will the windows application let webservice know the location of the MS
Access database?
* I thought of registry but WebService might not have permission to read
it.
* I thought of saving an xml file in wwwroot but it could be read only.
* Web.config solution is not possible because end user is not very computer
savvy, so every time MS Access database changes its path Web.config needs to
chnage.
* Finally I thought of Web Cache. But evertime user restarts his computer
cache might get over written.
Any other workable suggestions?

2. When application starts up in the pocket pc, how will it find the name of
the host computer to get to the location of the webservice? Since the
client's computer name is not known in advance, can pocket pc application
find it other than entering the name manually.

Thanks a lot.
Jay
Nov 18 '05 #1
3 1490
1) I would go for storing the location in the web.config. You can create a
setup package that alters the web.config while installing the app. No user
interaction is needed.

2) I think you better post this question in a compact framework newsgroup...

Another question, are you planning to run web services on a desktop pc?

--
Greetz
Jan
_______________ _
Read my weblog: http://weblogs.asp.net/jan
"Jay" <pr********@atg inc.com> schreef in bericht
news:uk******** *****@TK2MSFTNG P12.phx.gbl...
Hello,

I have Windows Forms application which uses MS Access Database and a Pocket PC application which uses Datasets, Iam trying to pass Datasets between
these applications using WebServices. Both these applications are shrink
wrapped so they need to perform with little user configuration

WebService/IIS is running on the computer having the Windows Application and Pocket PC connectss to the webservice through Active Sync.

Iam trying to accomplish following task and am breaking my head over it-

1. How does the Webservice know where the MS Access Database is present. ie How will the windows application let webservice know the location of the MS Access database?
* I thought of registry but WebService might not have permission to read
it.
* I thought of saving an xml file in wwwroot but it could be read only.
* Web.config solution is not possible because end user is not very computer savvy, so every time MS Access database changes its path Web.config needs to chnage.
* Finally I thought of Web Cache. But evertime user restarts his computer
cache might get over written.
Any other workable suggestions?

2. When application starts up in the pocket pc, how will it find the name of the host computer to get to the location of the webservice? Since the
client's computer name is not known in advance, can pocket pc application
find it other than entering the name manually.

Thanks a lot.
Jay

Nov 18 '05 #2
I would recommend that the Windows Forms application pass the location of
the Access database to the Web Service. The Web Service can store it in the
cache. As far as restarting the computer, you can put the Windows Forms app
(or one of its friends) in the startup group, and have it pass the
information then. Of course, the Windows Forms app will have to know where
the database is, but then someone has to start this thing!

If the Pocket PC is connected via ActiveSync, you could have the Windows app
put a config file into the mirrored files on the host, where it would
automatically get synced to the PPC. The profile for the PPC would have to
include syncing files. For example, here's where some files are that get
synced to one of my PPC's:

C:\Documents and Settings\Rick\M y Documents\IPAQ_ 3650 My Documents\Busin ess

"Jay" <pr********@atg inc.com> wrote in message
news:uk******** *****@TK2MSFTNG P12.phx.gbl...
Hello,

I have Windows Forms application which uses MS Access Database and a Pocket PC application which uses Datasets, Iam trying to pass Datasets between
these applications using WebServices. Both these applications are shrink
wrapped so they need to perform with little user configuration

WebService/IIS is running on the computer having the Windows Application and Pocket PC connectss to the webservice through Active Sync.

Iam trying to accomplish following task and am breaking my head over it-

1. How does the Webservice know where the MS Access Database is present. ie How will the windows application let webservice know the location of the MS Access database?
* I thought of registry but WebService might not have permission to read
it.
* I thought of saving an xml file in wwwroot but it could be read only.
* Web.config solution is not possible because end user is not very computer savvy, so every time MS Access database changes its path Web.config needs to chnage.
* Finally I thought of Web Cache. But evertime user restarts his computer
cache might get over written.
Any other workable suggestions?

2. When application starts up in the pocket pc, how will it find the name of the host computer to get to the location of the webservice? Since the
client's computer name is not known in advance, can pocket pc application
find it other than entering the name manually.

Thanks a lot.
Jay

Nov 18 '05 #3

Hi Jay,

Let me restate to clarify,
You are developing two applications, one WinForms and one Pocket PC that
both need to connect to the same database. The database will be located on
the client desktop. You also are trying to use a Web Services to connect to
the database where the Web Service is running on the desktop.

Let me first start by questioning your use of Web Services on a client
desktop that needs to be easily configured. Obviously I don't know your
exact situation, however, deploying .NET Web Services to each client will as
you know require IIS to be setup and configured. This alone sounds to
increase the complexity for end users and for the most part(in my opinion) I
would say IT would not want IIS running on all the end user desktops.

Too the questions:
How does the Web Service know where the database is?
In this situation, I would suggest the web.config. You could utilize the
Web Cache to facilitate a slightly faster lookup of the connection string,
however, the cache needs to still be loaded from some place. Again the
web.config should suffice. The problem I assume you are running into is
that you are having the WinForm directly conect to the database and the
PocketPC connect to the Web Service thererfore having to manage the database
connection string in two places.

One option is to have the WinForms app point to the Web Service as well.
However, this may not give you the performance you are looking for.
Another option is build a single Data Layer and point the Web Service to
that Data Layer as well as the WinForm app.

In the end, (with out specific knowledge of your problem) I would suggest
not using a Web Service and connecting the PocketPC directly to the database
through ActiveSync.

Now if this was a Server based solution my recommendations would be
different, and most likley include Web Services. The great thing about
using a web service is you would be able to sync the PocketPC database over
wireless.

Btw- You never mentioned how you were storing the data on the PocketPC. You
mentioned Datasets, however, datasets are not going to help you when the
PocketPC is off unless you are planning to serialize them. You may want to
consider using SQL CE on the Pocket PC and MSDE on the Desktop. If you do
this you can leverage the built-in replication features.

Let me know if you need anything else,

Tom Krueger

"Jay" <pr********@atg inc.com> wrote in message
news:uk******** *****@TK2MSFTNG P12.phx.gbl...
Hello,

I have Windows Forms application which uses MS Access Database and a Pocket PC application which uses Datasets, Iam trying to pass Datasets between
these applications using WebServices. Both these applications are shrink
wrapped so they need to perform with little user configuration

WebService/IIS is running on the computer having the Windows Application and Pocket PC connectss to the webservice through Active Sync.

Iam trying to accomplish following task and am breaking my head over it-

1. How does the Webservice know where the MS Access Database is present. ie How will the windows application let webservice know the location of the MS Access database?
* I thought of registry but WebService might not have permission to read
it.
* I thought of saving an xml file in wwwroot but it could be read only.
* Web.config solution is not possible because end user is not very computer savvy, so every time MS Access database changes its path Web.config needs to chnage.
* Finally I thought of Web Cache. But evertime user restarts his computer
cache might get over written.
Any other workable suggestions?

2. When application starts up in the pocket pc, how will it find the name of the host computer to get to the location of the webservice? Since the
client's computer name is not known in advance, can pocket pc application
find it other than entering the name manually.

Thanks a lot.
Jay

Nov 18 '05 #4

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

Similar topics

5
1638
by: Michael Olea | last post by:
Here is a design problem I ran into this am - and I have cleaned the bathroom, scrubbed toilet sink and tub, windexed all glass, mopped the floor, and vacuumed the house - no dice, the problem is still there. Maybe y'all have some ideas? Background ========== The basic idea behind templates, of course, is that much code is independent
3
1997
by: Merlin | last post by:
Design Problem =============== Would appreciate any help or suggestion on this design issue. I have spent a great deal of time and effort for an elegant solution but it seems I am not getting anywhere... I have simplified my design problem to the following: Consider the following classes:
11
1471
by: Tamir Khason | last post by:
I have VERY BIG object (>2G) serialized and I'm loading it into some object. In client's site I have P4 3G/512Mb computer where the application running. In the computer the page file is 3G. But while loading the object from disk on ~400-500Mb PF usage the CPU conter comed to 0 and memory remains in the same value and application do not load...
19
2502
by: Chocawok | last post by:
Some of the classes in my app are graphical. To encapsulate the graphical side of things I had created a class called "sprite" which holds a bit map and knows how to draw itself etc. The classes that are graphical contain a sprite object.
2
1410
by: Kalpesh | last post by:
Hello, I am facing a design problem here & need your expert design advice on this. Scenario: I have a class called Vendor - which has several simple attributes like Name, Address etc Now, each vendor has some attributes - which are not "simple" Basically, they can be an instance of another class
1
1277
by: Grabi | last post by:
Hello. I'm using SQL2000, and I have a design problem. I know that every time I make a primary key, sql server makes it by default a clustered index. Since I have a large composite key in the table I don't know if it's smart to leave it as a clustered index. This is the table: CREATE TABLE ( NOT NULL , NOT NULL , NOT NULL , NOT...
5
2447
by: Leslaw Bieniasz | last post by:
Hello, I have the following OOP design problem. I have a base class designed as an element of a list, let's say: class A { public: // some stuff
6
1700
by: dragoncoder | last post by:
Hello experts, This is actually a design problem which I want to solve using c++. I have the following class. class Animal { public: virtual void run() { uselegs(); }
0
1402
by: koren99 | last post by:
Hi, i am having trouble solving a design problem i'm sure is common, and wanted some help. for berevity i'll skim the problem to a smaller example. I have a design where a base class is called SEGMENT and inheriting from it is FLOW. in SEGMENT i keep a List Of BaseObjects, BaseObject is a Class which FlowObject Inherits From. the...
2
2621
by: forums_mp | last post by:
Facing a design problem here and I'm not sure how to solve this. The system consists of bi-directional communication between a subject communicating with two (at least for now ) listeners. Message translation needs to occur during communication. Each message between subject and listener contains 30 words where each word is 16bits in...
0
7465
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.