Hello all,
I am entirely new to InfoPath, SQL, and Web Services and creating a POC example for a patient healthcare record. I have a form that is based on an a pre-defined schema with two views.
1. I want to use .NET Web Services to allow the data in the form (once filled out) to be submitted to a Web Service which sends it to a SQL database which has one or more tables to hold the values (I want to use more than one table, but based on my research that seems to complicate the coding quite a bit).
2. I also want to use a Web Service to query the SQL database table (or tables) when an input value is put into the form (for instance patient name which would NOT be the primary key of a SQL table) and then bring in the other values to the InfoPath fields.
What I have been looking into/trying is as follows:
1. I DO NOT want to use native SQL Web services as they are being phased out.
2. I have tried to transmit the entire file by first creating stored XML schema collections in SQL and then a Web Service with two methods (one for GET, one for UPDATE) based on http://blogs.msdn.com/infopath/archive/2007/02/05/infopath-and-yukon-the-details.aspx. When creating the data connections and buttons, I get a "success" message from InfoPath after clicking "submit" or "get" but it doesn't seem to be storing the record and it definately does not fill in the fields.
3. I have been trying to submit the data a SQL table/tables and also get it from those tables to fill the form out. I found references for using xsd.exe as part of Visual Studio command prompt to create classes for my schema. I am guessing that this would be used to map between schema elements and fields in the database. However, I have not found a full example that shows how to BOTH store/submit and get data from tables using this.
If possible, I would like code examples/advice on the best method to use for a beginner with little programming background. If the table method is recommended, should I put all the values in one table or are multiple tables ok? Any help is much appreciated!