Krishna
2 years agoValued Contributor
WEBAPI through SIC ???
Hi - Has anyone done WEBAPI through SIC ? I followed the document and I am not successful connecting to the endpoint. All I am trying to get the HTTP response. There are no issue from the firewall an...
- 2 years ago
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
- 2 years ago
The Status is online.
Thanks Nicolas
- 2 years ago
I was able to fix it. In the BR I have to provide the localhost:PortNumber which was specified in the SIC configuration screen. Once updated. It is working as expected.