Re: [Dev] Error while running sample STS client

2017-05-04 Thread Jorge
Hi Mukesh.

Can you get the request with the post headers to see if this response came
from WSO2 IS or WSO2 AS?

Maybe you can open a question in stackoverflow.

Regards,
   Jorge.

2017-05-04 5:51 GMT-04:00 Mukesh Yadav :

> Hi all,
>
> After debugging I found before returning error "org.apache.axis2.AxisFault:
> Missing wsse:Security header in request at org.apache.rampart.handler.Ram
> partReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:195)"
>
> I get
>
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> http://www.w3.org/2005/08/addressing;>
> http://www.w3.org/2005/08/addressing/soap/fault
> urn:uuid:f84ea9d1-6671-45b4-9263-
> 8fbb288968e1
> 
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> axis2ns19:MustUnderstand
> *Must Understand check failed for header
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> 
> : Security*
> 
> 
> 
> 
>
>
> While googling I found this answer [1] but this one is for CXF
>
> [1] http://stackoverflow.com/questions/9364428/soapfaultexception-
> mustunderstand-headers-oasis-200401-wss-wssecurity-secext-1
>
> On Tue, May 2, 2017 at 8:45 PM, Jorge  wrote:
>
>> 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().setProp
>> erty(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 :
>> > 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 
>> 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 
>> 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 > >
>> >>> 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
>> 
>>  
>> 
>> 
>> 
>>  On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav 
>>  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
>> 

Re: [Dev] Error while running sample STS client

2017-05-04 Thread Mukesh Yadav
Hi all,

After debugging I found before returning error "org.apache.axis2.AxisFault:
Missing wsse:Security header in request at org.apache.rampart.handler.
RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:195)"

I get


http://schemas.xmlsoap.org/soap/envelope/;>
http://www.w3.org/2005/08/addressing;>
http://www.w3.org/2005/08/addressing/soap/fault
urn:uuid:f84ea9d1-6671-45b4-9263-8fbb288968e1


http://schemas.xmlsoap.org/soap/envelope/;>
axis2ns19:MustUnderstand
*Must Understand check failed for header
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd

: Security*






While googling I found this answer [1] but this one is for CXF

[1]
http://stackoverflow.com/questions/9364428/soapfaultexception-mustunderstand-headers-oasis-200401-wss-wssecurity-secext-1

On Tue, May 2, 2017 at 8:45 PM, Jorge  wrote:

> 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 :
> > 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 
> 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 
> 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 
> >>> 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
> 
>  
> 
> 
> 
>  On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav 
>  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
> >>
> >> 
> >>
> >>
> >>
> >> On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav 
> >> 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
> 

Re: [Dev] Error while running sample STS client

2017-05-02 Thread Jorge
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 :
> 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  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  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 
>>> 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

 



 On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav 
 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 
> 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
>>
>> 
>>
>>
>>
>> On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav 
>> 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(

Re: [Dev] Error while running sample STS client

2017-05-02 Thread Mukesh Yadav
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  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  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 
>> 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
>>>
>>> 
>>>
>>>
>>>
>>> On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav 
>>> 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 
 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
>
> 
>
>
>
> On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav 
> 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
>>
>> 

Re: [Dev] Error while running sample STS client

2017-05-01 Thread Omindu Rathnaweera
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  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 
> 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
>>
>> 
>>
>>
>>
>> On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav  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 
>>> 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

 



 On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav 
 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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running sample STS client

2017-05-01 Thread Mukesh Yadav
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 
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
>
> 
>
>
>
> On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav  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 
>> 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
>>>
>>> 
>>>
>>>
>>>
>>> On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav  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


Re: [Dev] Error while running sample STS client

2017-04-29 Thread Kasun Bandara
[+] 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





On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav  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 
> 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
>>
>> 
>>
>>
>>
>> On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav  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.handleResponse(
>>> 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
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running sample STS client

2017-04-29 Thread Mukesh Yadav
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 
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
>
> 
>
>
>
> On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav  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.setFaultCodeAndThrowAxisFault(
>> 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.handleResponse(
>> 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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running sample STS client

2017-04-28 Thread Kasun Bandara
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





On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav  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.setFaultCodeAndThrowAxisFault(
> 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.handleResponse(
> OutInAxisOperation.java:359)
>
> at org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:445)
>
> at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:225)
>
> at org.apache.axis2.client.OperationClient.execute(Operat
> ionClient.java:149)
>
> at org.apache.axis2.client.ServiceClient.sendReceive(Serv
> iceClient.java:554)
>
> at org.apache.axis2.client.ServiceClient.sendReceive(Serv
> iceClient.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(Rampart
> Receiver.java:93)
>
> ... 12 more
> --
> Regards
> Mukesh Yadav
> mukeshyadav.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while running sample STS client

2017-04-28 Thread Mukesh Yadav
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.setFaultCodeAndThrowAxisFault(
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.handleResponse(
OutInAxisOperation.java:359)

at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:445)

at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:225)

at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)

at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)

at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.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(RampartReceiver.java:93
)

... 12 more
-- 
Regards
Mukesh Yadav
mukeshyadav.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev