I thought I'd post a few tips on schema gen where people here at AMS as well as some of you have run into some trouble.
1. Schema gen requires the Phoenix System odbc be set up and pointing to the DB you are logged into with the Phoenix Desktop. Because schema gen uses the Phoenix connection via ODBC, if you aren't already using something like Policy Manager or Configuration manager you might not have your ODBC set up and pointing to the correct database. Prior to generating schema, make sure you double check your ODBC DSN for Phoenix System and make sure it is pointing to the correct database.
2. "Generate Schema" and "Deploy" are 2 entirely seperate activities. If you have 3 lines of business, you must select each one and click "generate" for each LOB. You then need to Deploy each LOB one at a time. You can not generate all 3 LOBs and then just deploy once. Also, you will want to leave validations checked. AOOSE requires the validation xml be generated and deployed.
3. Here is a way to verify that your deploy worked successfully. Go to your web server, navigate to the Program Files/AmsServices/PhoenixLinkWebService directory. Open up your web.config file. This is a structured XML file. You should see a node for each Company with sub nodes for each Deployment. You can also verify that all your deployed LOBs are present in this file. Next, you can look in the same directory at the "Data" folder. Verify that all your schema is present - organized in the same fasion using Company and Deployment.
4. Don't forget to always reset IIS after you deploy! The easiest way to do this is log onto your web server and go to Start -> Run. At the command prompt type in IISRESET. It will take a few seconds to reset. Remember, each time it resets it will take a little extra time for the next web request. The first request will cause it to load the cache. Subsequent requests will be much faster.
5. If you don't use integrated DB security, don't forget to change your connect string in the web.config for each deployment if you log in using PHXADM. Deployment always defaults to use integrated windows security. Remember to IISReset after you change this setting.
6. A good troubleshooting test to ensure you have set up your web services correctly is to navigate to them via a web browser. To do this, open a browser and type http:// webservername>/PhoenixLink/Policy.asmx. If you don't see the list of web methods, then you likely have an issue with your installation. Double check the security settings as described in the 8.0 documentation. If you still have trouble, try browsing to the policy.asmx directly from IIS logged into the web server.
Ok, that is all for now.
Eric Mathis |