- Navigate to your web server roo
- Create a folder called InteractAPI (or whatever you want to call it), and within it create another folder called bin
- Go to your interact/Web/bin folder
- Copy the following files to your new InteractAPI/bin folder:
- InteractWebService.dll
- Odyssey.Interact.Core2.dll
- Odyssey.Interact.Database.dll
- Go to your interact/web folder
- Copy the following files to your new InteractAPI folder:
- Service.asmx
- web.config
- A web.config is needed, however the file from this specific location will cause issues. Your best bet when you are doing this is to contact Interact to ask for a web.config because there are a lot of changes that need to happen to this file for it to work.
- Edit the web.config file in your InteractAPI folder
- Change the <add key=”connectionstring”> entry to point to your Interact db.
- The new entry should look something like this: <add key="ConnectionString" value="Data Source=INTERACTDB;user=interactdba;password=p!SSw!&#;Database=interact;Persist Security Info=True;MultipleActiveResultSets=True;Connect Timeout=30;Min Pool Size=5;Max Pool Size=1000 " />
- Register InteractAPI to IIS
- Open the IIS Manager
- Right click on "Sites"
- Select "Add Website"
- Set the Site name to "InteractAPI"
- Determine which Application Pool you want the API to be a part of
- Set the Physical path to your newly created InteractAPI folder (C:\InteractAPI)
- The binding shouldn't have a host name and the port should be set to 81
- Configure InteractAPI Authentication
- Select InteractAPI from the left panel
- Within the IIS area select Authentication
- Adjust the authentication settings to match this:
- Set Default Document
- Select InteractAPI from the left panel
- Within the IIS area select Default Document
- Click "Add..." from the right menu
- Enter "service.asmx"
- Test the Setup
- At this point you should be able test your setup by going to http://localhost:81/ from your server. This should display your service.asmx page
- Additionally you should be able to view the service page using whatever DNS you've created for your install and appending the port. For example http://interact:81
- Create a DNS entry for IWS
- Clicking through from your localhost path (and example code which you can request from Interact) will display some errors because there are hard coded paths pointing to http://IWS:81
- To get around this you'll need to create an internal DNS entry pointing to the IP address of server you've installed the IWS on.
- If your DNS is setup properly you should now be able to view the Service.asmx page by visiting http://IWS:81
Tuesday, June 26, 2012
Interact Intranet: Installing the API
Creating a custom widget in Interact Intranet takes a few steps, the first of which is to install the API (aka Interact Web Service - IWS).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment