Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Design Problem!!

    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


    Jay Guest

  2. Similar Questions and Discussions

    1. db query/design problem
      Hello I have a question about my database design, and how to query. I Made an extra table in my database design in where I put the type of...
    2. Design problem
      Hi All, This could be a classic design problem, but as I am using PHP, I thought I would seek help in this NG. I have built a small application in...
    3. Design view problem
      Hi there, I can't understand why when I write this text (part of datalist) onclick="javascript: changeImage('<%#...
    4. Design-time problem
      Hi there, I have 2 properties "P1" (enum) and "P2" (Color). When I set P1 I change the value of P2. Although the value of P2 is changed in...
    5. Database Design Problem
      I've got a problem I need to solve where I have an item that can have one or more prices, but the item can be bought from one or more distributors...
  3. #2

    Default Re: Design Problem!!

    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: [url]http://weblogs.asp.net/jan[/url]


    "Jay" <programmer@atginc.com> schreef in bericht
    news:ukvHVkmQEHA.568@TK2MSFTNGP12.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
    >
    >

    Jan Tielens Guest

  4. #3

    Default Re: Design Problem!!

    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\My Documents\IPAQ_3650 My Documents\Business



    "Jay" <programmer@atginc.com> wrote in message
    news:ukvHVkmQEHA.568@TK2MSFTNGP12.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
    >
    >

    Rick Spiewak Guest

  5. #4

    Default Re: Design Problem!!


    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" <programmer@atginc.com> wrote in message
    news:ukvHVkmQEHA.568@TK2MSFTNGP12.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
    >
    >

    Tom Krueger [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139