If an old version is also installed in the server, then you must copy few parameters from the backup file and update the same in the new web.config file (<installed path>\Web\API\webConfig). Parameters are as follows:
-
Services baseUri
-
ID and Secret values of the service which has prefix as SMAT/V1.
-
Navigate to the Smart Materials Web API Config tool folder through the installation path:<installed path>\tools\WebApiConfigTool.
-
Right click the Intergraph.WebApi.ServiceConfigurationtool application and then select Run as an administrator. Click Next.
-
Enter the Username and Password.
Use the SAM login credentials only.
-
To check the given credentials, click Test, and then click OK.
-
Select Register New Service and click Generate.
If API is already registered, Update Existing Service is enabled, and fields are auto populated, click Generate.
The service secret is automatically generated and appears in the Service Secret box. Secret is generated to hold the relation between client and service.
-
After Service Secret is generated, click Next.
-
Provide the details as required, and then click Next.
Name
Description
Web Site
Create a new one or use the existing site
Application Name
Provide the name of the application that you want to create in this website
Application Pool
New application pool to isolate the application
Enable Https
Select this to enable Https Protocol standards
Https Certificate
You can find Https Certificate by following these steps:
-
In the dropdown, select the installed SSL certificate
-
Click View.
To know more about SSL certificate, refer Install SSL Certificate.
Https Port
Mention the port number where the application is hosted
WebSite Name
Provide WebSite Name if you want to create a new website
If you select Enable Https, provide Certificate details. If certificate is not available, then add a certificate and restart the application.
-
-
Click Next. To save the configuration file, click Save to file. Type filename and password.
Remember the service name and URL for further usage.
-
Click Finish.