Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Setup IIS with API
Hi
Is there a white paper for the best way to setup IIS with the API.
Thanks Anton
Is there a white paper for the best way to setup IIS with the API.
Thanks Anton
Comments
It works if we use a single install with IIS(new install). Because we want to still use both version (old and API) at the same time (RUN_OECGI_REQUEST and HTTP_MCP) with two registry setting a two services and different ports until we have changed all function to API calls. Where we have a problem is that once both services are running both calls are going to the HTTP_MCP. We have created two virtual directories using OECGI3 for the old version and OECGI4 for the API calls. So somewhere we must miss a step.
Thanks Anton
OECGI3 Reg uses RUN_OECGI_REQUEST Port 8088
OECGI4 Reg uses HTTP_MCP Port 8095
Thanks Anton
We are using the ReWrite Rules for the API (OECGI4.exe) only.
Will check where where an how it is resolving ..
Thanks Anton
Have worked this week with an Web Developer to test the registry setting with sub keys.
The Api call are working from the parent folder but not from the sub folder.
What are the latest versions of OESocketServer.jar and Revjapi.dll and OECGI4 (v4.02)
Could be the problem be with an older version of any this file.??
Thanks Anton
OECGI settings in this path are the default settings if no URL match is found:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\RevSoft\OECGI4
OECGI settings in this path apply if the first segment of the URL begins with 'carsapi'. I.e. www.example.com/carsapi:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\RevSoft\OECGI4\carsapi
Same as previous example but these settings are applied to www.example.com/trucksapi
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\RevSoft\OECGI4\trucksapi
Because you are using OECGI3 and OECGI4 and each have their own default settings I don't think you are using sub-folders in the registry but if you are please let me know because it will impact what settings are used.
Assuming you are not using registry sub-folders do you mean the URL path? I.e. does this function:
www.example.com/api
While this URL does not function:
www.example.com/api/car
If that is the case could you report back if you are adding the API to a dedicated site or an existing site as a virtual directory? ( See this link and the sections 'Dedicated API site Domain or Subdomain' and 'Adding an API to an Existing Site'. The rewrite rules are are slightly different for each and the placement of those rules is important (i.e. in the root directory verses the virtual directory). This could very well explain the issue you've reported with the rules working in the parent folder but not the sub-folder.