使用S/4 Hana本地系统的服务时出现未知身份验证错误

2020-08-18 06:20发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)你好 在使用SAP Cloud...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


你好

在使用SAP Cloud SDK Java从本地系统中使用服务时,我们遇到了以下问题:

"," CSNComponent":"","应用程序":" A3my6RW4NVX1bA5H-Anewuswcase-srv"," space_id":" cc718305-eb95-4e7c-81bf-fb727212d203"," container_id":" 10.0.138.245",  " type":" log"," logger":" com.sap.cloud.sdk.cloudplatform.connectivity.PrincipalPropagationStrategy"," thread":" http-nio-0.0.0.0-3000-exec-5"," level  ":" ERROR","类别":[]," msg":"目标ScpCfDestination(destinationType = HTTP,name = ErpQueryEndpoint,description = SideBySideExtensibility,propertiesByName = DefaultDestination(properties = { 说明= SideBySideExtensibility,用户= dev001,WebIDEEnabled = true,URL = http://此处的IP地址,名称= ErpQueryEndpoint,WebIDEUsage = odata_abap,dev_abap,ui5_execute_abap,authTokens = [ScpCfDestinationServiceV1Response.DestinationAuthTokenMD(x = Bs  = null,expiresIn = null)],类型= HTTP,证书= null,身份验证= BasicAuthentication,CloudConnectorLocationId = Cloud1,ProxyType = On 前提,WebIDESystem = S7h,密码=(隐藏)}))"} 

我们已在云基础设施中配置了目标ErpQueryEndpoint。 截图附在这里。 我们还配置了目标,连接和xsuaa服务。 子帐户和端点详细信息在云连接器中配置。

SDK版本为3.17.1。 以下是我们用于连接到目的地的代码:

最终HttpDestination destination = DestinationAccessor.getDestination(" ErpQueryEndpoint")。asHttp()。decorate(DefaultHttpDestination :: new);

 pohead = new DefaultZAKCDSPOHEADCDSService()。getAllPoHead()。execute(destination); 

当我们直接通过Cloud Foundary或Cloud Connector将其连接时,目标已建立连接。 您能在这里帮助我们吗?

此致

Kamalpreet

(18.6 kB)
6条回答
骆驼绵羊
2020-08-18 07:13

是否有可能您切换了"授权类型"并立即用应用程序对其进行了测试? 请注意,目标属性在初始加载后的几分钟内被缓存。

这意味着也许您具有"主体传播"作为授权类型,应用程序缓存了配置,切换到"基本身份验证",并且在尝试时,该应用程序仍使用旧的授权类型,从而导致了上面的错误消息 。

一周热门 更多>