简体   繁体   English

WSO2从Java客户端上载策略到WSO2 IS PDP时出错

[英]WSO2 getting error while uploading policy to WSO2 IS PDP from java client

I am trying to create XACML policy from java client and upload it to wso2 IS. 我正在尝试从Java客户端创建XACML策略,并将其上传到wso2 IS。 All works fine and policy also updated in WSO2 IS but after uploading policy when I tried to publish created policy to WSO2 PDP from java client then it gives me an error like this: 所有工作正常,并且策略也在WSO2 IS中更新,但是在上载策略后,当我尝试将创建的策略从Java客户端发布到WSO2 PDP时,它给了我这样的错误:

org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method publishToPDP at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.wso2.carbon.identity.entitlement.stub.EntitlementPolicyAdminServiceStub.publishToPDP(EntitlementPolicyAdminServiceStub.java:4651) at org.xacmlinfo.xacml.pap.is.PolicyAdminClient.main(PolicyAdminClient.java:177) org.apache.axis2.AxisFault:尝试在org.apache.axis2.description.RobustOutOnlyAxisOperation $ RobustOutOnlyOperationClient上的org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)处调用服务方法publishToPDP时发生异常。 (RobustOutOnlyAxisOperation.java:91)位于org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)位于org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)在org.apache。 org.wso2.carbon.identity.entitlement.stub.EntitlementPolicyAdminServiceStub.publishToPDP(EntitlementPolicyAdminServiceStub.java:4651)处org.wso2.carbon.identity.entitlement.stub.EntitlementPolicyAdminServiceStub.publishToPDP(EntitlementPolicyAdminServiceStub.java:4651)在org.xacmlinfo.xacml.pap.is.Policy主(PolicyAdminClient.java:177)

I tried a lot to resolve this issue but after doing lots of internet searching still I couldn't find the solution for the problem. 我做了很多尝试来解决此问题,但是经过大量的互联网搜索之后,我仍然找不到解决问题的方法。 I also did change in carbon.xml file of WSO2 IS for "admin service” webservice and made " <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>" but still it is not working properly. 我还对“管理服务” Web 服务的WSO2 IS的carbon.xml文件进行了更改,并设置为“ <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>"但仍无法正常工作。

I assume that you are using the java client which is mentioned in here . 我假设您正在使用此处提到的Java客户端。 You need to use the updated client for IS 5.0.0. 您需要为IS 5.0.0使用更新的客户端。 Please go through above blog post again. 请再次浏览以上博客文章。 There is some API changes in the IS 5.0.0 therefore older client may not work properly. IS 5.0.0中有一些API更改,因此较旧的客户端可能无法正常工作。 Also you may need to apply some fix which is mentioned in the blog post to get the policy re-ordering done. 另外,您可能需要应用博客文章中提到的一些修复程序才能完成策略的重新排序。 However, normally when you are adding policy in to the WSO2IS, you can add directly to PAP and PDP (as enabled policy). 但是,通常在将策略添加到WSO2IS时,可以直接添加到PAP和PDP(作为启用的策略)。 Therefore you do not need to make two class for it. 因此,您无需为此进行两堂课。 I hope you can find more details inside the java client. 我希望您可以在Java客户端中找到更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM