Boys & Girls,
As I'm discovering InfoPath (which seems like a wonderfull product), I'm
left wondering about the correct (read: ideal) application design for an
accounting (invoicing, stock management, time reporting) solution.
In the scenario I have in mind I could either use a 3-Tier ("InfoPath -
WebService - Database") design or simply Client-Server ("InfoPath -
Database") architecture?
The specific question which has left me wondering is: why (in what scenario)
would one introduce a WebService? Am I correct in presuming that any Business
Logic (although for my application I currently don't have any specific
business logic yet) should be implemented in a WebService?
Peter
virgul - 29 Dec 2004 09:48 GMT
Hi,
For example when you form is not always the same and depend on two
variable a webservice send you an Xml file with the field that you want
and you can bind it to infopath.
For your scenario your description is a little bit general .
++
Raj Chaudhuri - 29 Dec 2004 12:35 GMT
Here are some reasons for not directly connecting to a database:
1) Your form users do not have rights to the database directly.
2) Your database is behind a firewall which only allows port 80 traffic.
3) There are design differences between your form schema and your database
tables. For instance, your form allows entry on ONE master row and multiple
detail rows in a typical master-detail table setup.
4) You have business rules which cannot be conveniently expressed in JScript
or TSQL.
I have found all four reasons to be applicable for every Infopath project I
have done so far.
Also, since you talk about design in general, here is how I design my
Infopath solutions. I start with one or more XML schemas (schema? schemae) ,
which I use both as the basis of my Infopath forms, as well as to create
typed datasets, which I then use in web services to receive data from those
forms. I often have multiple forms based on the same schema, with diffrent
read-write rules and submission points. This has helped me create
workflow-type solutions without too many client-side rules or script.
> Boys & Girls,
>
[quoted text clipped - 14 lines]
>
> Peter