on 05-20-2015 4:51 PM
Does Anyone have Ideas how to connec to the on premise odata service through GWMß
My Configuration as of now is:
Configuration of the Provider System through the gwm Page (https://xxxx.cloudapp.net)
Provider Name: test
Host: <my reverseproxy url xxx.domain.com>
Port: <my reverse proxy ssl port>
Client: 123
Base Url: /sap/opu/odata/sap/
System Type: Gateway
Authentication Type: Basic
User: <my sap system user>
Password:<my sap system password>
Use SSL: checked
SSL-Certificate: <my ssl certificate of the reverse proxy server>
When i test the connection i get the following error in the log:
Connection check for provider test failed. Message: Bad Key. Exception: System.Security.Cryptography.CryptographicException: Bad Key. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.RSACryptoServiceProvider.DecryptKey(SafeKeyHandle pKeyContext, Byte[] pbEncryptedKey, Int32 cbEncryptedKey, Boolean fOAEP, ObjectHandleOnStack ohRetDecryptedKey) at System.Security.Cryptography.RSACryptoServiceProvider.Decrypt(Byte[] rgb, Boolean fOAEP) at SAP.GWPAM.AZURE.Common.UtilityRef.ControllerHelper.AssymetricDecrypt(Byte[] encData, X509Certificate2 cert) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.Common\UtilityRef\ControllerHelper.cs:line 106 at SAP.GWPAM.AZURE.Common.UtilityRef.ControllerHelper.DecryptData(String encData, String certificateName) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.Common\UtilityRef\ControllerHelper.cs:line 142 at SAP.GWPAM.AZURE.ODataConnector.SSO.BasicGWProvider.GetPassword() in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ODataConnector\SSO\BasicGWProvider.cs:line 178 at SAP.GWPAM.AZURE.ODataConnector.SSO.BasicGWProvider.GetAuthenticationData(HttpRequestMessage& request) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ODataConnector\SSO\BasicGWProvider.cs:line 106 at SAP.GWPAM.AZURE.ODataConnector.SSO.BasicGWProvider.AddProviderCredientials(HttpRequestMessage& request, HttpResponseMessage lastFailedResponse) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ODataConnector\SSO\BasicGWProvider.cs:line 33 at SAP.GWPAM.AZURE.ODataConnector.Handlers.RequestSenderHandler.GetResponse(HttpRequestMessage request, ProviderSettings providerSettings, Boolean useCache) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ODataConnector\Handlers\RequestSenderHandler.cs:line 48 at SAP.GWPAM.AZURE.ConfigWeb.Utility.ConnectionCheckUtility.CheckConnection(ProviderSettings providerSetting) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ConfigWeb\Utility\ConnectionCheckUtility.cs:line 55
When trying to connect to the odata service through the gwm
(https://xxx.cloudapp.net:8081/test/Z_Service
i get a 401:
Anyone helpful ideas as to what exactly is the meaning of the bad key message and how to solve it?
Thank you and regards
Matthias
Hi Matthias,
Can try by removing Base URL and also check the user credentials provided for Basic.
Best Regards,
Prathiba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prathiba,
i am also getting the same error Matthias, mentioned above.
i am trying to connect to odata service to gwm
https://cordisgwm.cloudapp.net:8081/odata/CORDIS/test/
i am getting the same error
Thanks
Adarsh
Hi Prathiba,
Thanks for reply.
Host is working as expected.
i can able to enter our reverse proxy details and even i can check the connection string it all good.
To get the service URL via GWM, use the following format:
https://<GWM cloud service url>:8081/<provider system name>/<odata service path without Base URL>
i am following the same steps as mentioned above
Checked with basic Credentials, i am having all the rights in the provider system.
Thanks
Adarsh
Hi Prabthiba,
connection check in provide system is successful
i am getting this error in final test when i make Service URL via GWM
https://cordisgwm.cloudapp.net:8081/odata/Xtest/TEST/
Thanks
Adarsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.