Jack - Here we go.
1. Created the Gateway in SIC.
2. Created the SIC rule for the webAPI
3. Calling the SIC rule from Extender rule.
The below is the Extender rule calling the SIC rule
Dim objGatewayDetails As GatewayDetails = _
BRApi.Utilities.GetGatewayConnectionInfo(si, "sapapi")
brapi.ErrorLog.LogMessage(si, objGatewayDetails.RemoteGatewayHost)
Dim objRemoteRequestResultDto As RemoteRequestResultDto = _
BRApi.Utilities.ExecRemoteGatewayBusinessRule(si, _
"SAP_Call3", Nothing, objGatewayDetails.RemoteGatewayHost, "SAP_Call3")
'drqdbci.aoc-resins.com
If(objRemoteRequestResultDto.RemoteResultStatus = RemoteMessageResultType.Success)
'If (objRemoteRequestResultDto.RemoteResultStatus = RemoteMessageResultType.RunOperationReturnObject)
brapi.ErrorLog.LogMessage(si, "PASS_1")
Else
brapi.ErrorLog.LogMessage(si, "Status---" + objRemoteRequestResultDto.RemoteResultStatus.ToString + " and " + RemoteMessageResultType.RunOperationReturnObject.ToString + " and " + RemoteMessageResultType.HTTPError.ToString)
brapi.ErrorLog.LogMessage(si, "AllSuccessValues----" & RemoteMessageResultType.AllSuccessValues)
brapi.ErrorLog.LogMessage(si, "APIKeyInvalid----" & RemoteMessageResultType.APIKeyInvalid)
brapi.ErrorLog.LogMessage(si, "RemoteEndPointProviderIsInvalid----" & RemoteMessageResultType.RemoteEndPointProviderIsInvalid)
brapi.ErrorLog.LogMessage(si, "RemoteHost---" & objGatewayDetails.RemoteGatewayHost)
End If