Hi Mukesh debug your code and check that in this portion of code: String tokenID; if (renewedTokenID != null) { tokenID = renewedTokenID; } else { tokenID = responseTokenID; } serClient.getOptions().setProperty(RampartMessageData.KEY_CUSTOM_ISSUED_TOKEN, tokenID);
tokenID it's not null. I had that problem and it was because tokenID was null. Also I use wire debug to see what service I'm calling, because if tokenID = null the call will go to the IS not to the AS or ESB log4j.logger.httpclient.wire=DEBUG log4j.logger.org.apache.commons.httpclient=DEBUG Regards, Jorge. 2017-05-02 5:14 GMT-04:00, Mukesh Yadav <mak....@gmail.com>: > Hi Omnidu, > > I tested by disabling renew, even then same error is coming. I'm using [1] > as Service. > > > [1] https://github.com/muke5hy/Axis2HelloWorld > > On Tue, May 2, 2017 at 1:41 AM, Omindu Rathnaweera <omi...@wso2.com> wrote: > >> Hi Mukesh, >> >> Can you try adding the fix provided in [1] and see whether it solves the >> issue ? Keep the "renew" property set to 'false' in 'client.properties' >> file. >> >> [1] - https://github.com/wso2/product-is/pull/1231/files >> >> Regards, >> Omindu. >> >> On Tue, May 2, 2017 at 12:23 AM, Mukesh Yadav <mak....@gmail.com> wrote: >> >>> If you need any other info please let me know, >>> >>> The client code, >>> https://github.com/muke5hy/Axis2Client-wso2IS >>> >>> >>> >>> On Sat, Apr 29, 2017 at 9:00 PM, Kasun Bandara <kbandara...@gmail.com> >>> wrote: >>> >>>> [+] Looping in the Identity server team. >>>> >>>> Kasun Gayan Bandara >>>> PhD Research Student >>>> Machine Learning Group >>>> >>>> Faculty of Information Technology, Clayton >>>> Monash University >>>> 25 Exhibition Walk, Clayton Campus >>>> Wellington Road >>>> Clayton VIC 3800 >>>> Australia. >>>> >>>> E: herath.band...@monash.edu >>>> M (+61) 43 491 6476 >>>> >>>> <https://www.linkedin.com/in/bandarakasun> >>>> >>>> >>>> >>>> On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav <mak....@gmail.com> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm using WSO2 IS version 5.3.0 and AS 5.3.0 >>>>> Yes, I did follow all the steps in that blog. >>>>> >>>>> Did any tried running STS client for version 5.3.0 or IS and AS. >>>>> >>>>> >>>>> >>>>> On Sat, Apr 29, 2017 at 9:14 AM, Kasun Bandara <kbandara...@gmail.com> >>>>> wrote: >>>>> >>>>>> Hi Mukesh, >>>>>> >>>>>> Can you please specify the respective versions of WSO2 IS and WSO2 AS >>>>>> that you are using? I assume you are testing the WS-Trust STS (Active >>>>>> STS) >>>>>> protocol to secure a service deployed on the application server. If >>>>>> so, >>>>>> can you please recheck whether you gave followed steps as in [1]. >>>>>> >>>>>> Regards, >>>>>> Kasun >>>>>> >>>>>> [1] http://www.vitharana.org/2015/01/how-ws-trust-sts-works- >>>>>> in-wso2-identity.html >>>>>> >>>>>> Kasun Gayan Bandara >>>>>> PhD Research Student >>>>>> Machine Learning Group >>>>>> >>>>>> Faculty of Information Technology, Clayton >>>>>> Monash University >>>>>> 25 Exhibition Walk, Clayton Campus >>>>>> Wellington Road >>>>>> Clayton VIC 3800 >>>>>> Australia. >>>>>> >>>>>> E: herath.band...@monash.edu >>>>>> M (+61) 43 491 6476 >>>>>> >>>>>> <https://www.linkedin.com/in/bandarakasun> >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav <mak....@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> I have created WSO2-IS server and WSO2-AS server for as per the >>>>>>> documentation, And checkout sample code. But when I run sample code I >>>>>>> get >>>>>>> the following error. >>>>>>> >>>>>>> I do get "Response SAML 2.0 Token is valid" but After that, I get >>>>>>> the error. >>>>>>> >>>>>>> org.apache.axis2.AxisFault: Missing wsse:Security header in request >>>>>>> at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndTh >>>>>>> rowAxisFault(RampartReceiver.java:195) >>>>>>> >>>>>>> at org.apache.rampart.handler.RampartReceiver.invoke(RampartRec >>>>>>> eiver.java:100) >>>>>>> >>>>>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) >>>>>>> >>>>>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313) >>>>>>> >>>>>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) >>>>>>> >>>>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) >>>>>>> >>>>>>> at org.apache.axis2.description.OutInAxisOperationClient.handle >>>>>>> Response(OutInAxisOperation.java:359) >>>>>>> >>>>>>> at org.apache.axis2.description.OutInAxisOperationClient.send(O >>>>>>> utInAxisOperation.java:445) >>>>>>> >>>>>>> at >>>>>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl( >>>>>>> OutInAxisOperation.java:225) >>>>>>> >>>>>>> at org.apache.axis2.client.OperationClient.execute(OperationCli >>>>>>> ent.java:149) >>>>>>> >>>>>>> at org.apache.axis2.client.ServiceClient.sendReceive(ServiceCli >>>>>>> ent.java:554) >>>>>>> >>>>>>> at org.apache.axis2.client.ServiceClient.sendReceive(ServiceCli >>>>>>> ent.java:530) >>>>>>> >>>>>>> at org.wso2.carbon.identity.samples.sts.Client.run(Client.java:235) >>>>>>> >>>>>>> at org.wso2.carbon.identity.samples.sts.Client.main(Client.java:94) >>>>>>> >>>>>>> Caused by: org.apache.rampart.RampartException: Missing >>>>>>> wsse:Security header in request >>>>>>> >>>>>>> at org.apache.rampart.RampartEngine.process(RampartEngine.java:146) >>>>>>> >>>>>>> at org.apache.rampart.handler.RampartReceiver.invoke(RampartRec >>>>>>> eiver.java:93) >>>>>>> >>>>>>> ... 12 more >>>>>>> -- >>>>>>> Regards >>>>>>> Mukesh Yadav >>>>>>> mukeshyadav.com >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Dev mailing list >>>>>>> Dev@wso2.org >>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Regards >>>>> Mukesh Yadav >>>>> mukeshyadav.com >>>>> >>>> >>>> >>> >>> >>> -- >>> Regards >>> Mukesh Yadav >>> mukeshyadav.com >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Omindu Rathnaweera >> Senior Software Engineer, WSO2 Inc. >> Mobile: +94 771 197 211 <+94%2077%20119%207211> >> > > > > -- > Regards > Mukesh Yadav > mukeshyadav.com > _______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev