Re: [Dev] Pass user details into the out sequence.

2017-11-22 Thread Saneth Dharmakeerthi
Hi Senuwan,

 If you set a value to a property in default context (Synapse), It
should be accessible throughout in and out sequence[1][2][3]. The behavior
might different if you set this value inside a Clone or Iterator?



[1]https://docs.wso2.com/display/EI610/Property+Mediator
[2]http://soatutorials.blogspot.com/2014/03/wso2-esb-
properties-tutorial.html
[3] http://blog.facilelogin.com/2011/02/wso2-esb-property-
mediator-different.html

Thanks and Best Regards,

Saneth Dharmakeerthi
*Associate Technical Lead*
WSO2, Inc.
Mobile: +94772325511 <+94%2077%20232%205511>



On Wed, Nov 22, 2017 at 11:13 AM, Senuwan Withana  wrote:

> Hi Guys,
>
> Thanks for the replies .
>
> I was able to take the user role from class mediator in the in sequence
> But I could not able to pass that value into the out sequence.
>
> Thanks,
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> On Wed, Nov 22, 2017 at 10:51 AM, Himasha Guruge 
> wrote:
>
>> Hi Senuwan,
>>
>> What is your requirement here? Could you post your complete synapse
>> configuration?
>>
>> Thanks,
>> Himasha
>>
>> On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana 
>> wrote:
>>
>>> Hi Team,
>>>
>>>
>>> I have created the below class mediator to call my JWTRoleReder, in
>>> Sequence .
>>>
>>> 
>>>   
>>>
>>>
>>>
>>> However I could not able to pass above details into the outSequence .
>>> Kindly suggest solutions?
>>>
>>> Thanks.
>>> *Senuwan Withana*
>>> Software Engineer - Support Team | WSO2
>>>
>>> Email : senu...@wso2.com
>>> Mobile: 94773212853
>>> Web: http://www.wso2.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> Senior Software Engineer
>> WS*O2* *Inc.*
>> Mobile: +94 777459299 <+94%2077%20745%209299>
>> himas...@wso2.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


Re: [Dev] Pass user details into the out sequence.

2017-11-22 Thread Himasha Guruge
Hi Senuwan,

What is your requirement here? Could you post your complete synapse
configuration?

Thanks,
Himasha

On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana  wrote:

> Hi Team,
>
>
> I have created the below class mediator to call my JWTRoleReder, in
> Sequence .
>
> 
>   
>
>
>
> However I could not able to pass above details into the outSequence .
> Kindly suggest solutions?
>
> Thanks.
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
Senior Software Engineer
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass user details into the out sequence.

2017-11-22 Thread Buddhimala Ranasinghe
Hi Senuwan,

In order to pass the value of a property from insequence to outsequence,
you can try with the property scope as "default/synapse".

So that you can modify your insequence and outsequence as follows.



  
   
   
   





So that you can use "get-property('transport','myPropertyInTransport')" to
retrieve the value in outsequence.

Please refer https://stackoverflow.com/a/13378163 for further convenience.

Regards,
Buddhimala


On Wed, Nov 22, 2017 at 10:42 AM, Rukshan Premathunga 
wrote:

> Hi Senuwan,
>
> You can add required property to message context inside the class
> mediator. So that you can read them back in out-sequence.
>
> Thanks and Regards
>
> On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana 
> wrote:
>
>> Hi Team,
>>
>>
>> I have created the below class mediator to call my JWTRoleReder, in
>> Sequence .
>>
>> 
>>   
>>
>>
>>
>> However I could not able to pass above details into the outSequence .
>> Kindly suggest solutions?
>>
>> Thanks.
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074 <+94%2071%20182%202074>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Buddhimala Ranasinghe*
Software Engineer-Support Team | WSO2
Emil: buddhim...@wso2.com
Mobile:+94771563138
Web:http://wso2.com
[image: https://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass user details into the out sequence.

2017-11-22 Thread Thivya Mahenthirarasa
Hi Senuwan,

You can achieve by using simply adding a property mediator. If it is
synapse property definitely you could able to access in out sequence too.




Thanks,
Thivya

On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana  wrote:

> Hi Team,
>
>
> I have created the below class mediator to call my JWTRoleReder, in
> Sequence .
>
> 
>   
>
>
>
> However I could not able to pass above details into the outSequence .
> Kindly suggest solutions?
>
> Thanks.
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Thivya Mahenthirarasa*

*Software Engineer -Support Team | WSO2*


*Email: thi...@wso2.com *

*Mobile: +94766461966 *
*Web: http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass user details into the out sequence.

2017-11-22 Thread Senuwan Withana
Thanks guys,

I was able to send user details into the out sequence successfully.

Regards,

*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com



On Wed, Nov 22, 2017 at 11:21 AM, Buddhimala Ranasinghe  wrote:

> Hi Senuwan,
>
> In order to pass the value of a property from insequence to outsequence,
> you can try with the property scope as "default/synapse".
>
> So that you can modify your insequence and outsequence as follows.
>
> 
> 
>   
>
>  name="Role"
>  scope="transport"/>
>  name="myPropertyInDefault"
>  scope="default"/>
> 
> 
>   name="myPropertyInTransport"
>  scope="transport"/>
> 
>
> So that you can use "get-property('transport','myPropertyInTransport')"
> to retrieve the value in outsequence.
>
> Please refer https://stackoverflow.com/a/13378163 for further convenience.
>
> Regards,
> Buddhimala
>
>
> On Wed, Nov 22, 2017 at 10:42 AM, Rukshan Premathunga 
> wrote:
>
>> Hi Senuwan,
>>
>> You can add required property to message context inside the class
>> mediator. So that you can read them back in out-sequence.
>>
>> Thanks and Regards
>>
>> On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana 
>> wrote:
>>
>>> Hi Team,
>>>
>>>
>>> I have created the below class mediator to call my JWTRoleReder, in
>>> Sequence .
>>>
>>> 
>>>   
>>>
>>>
>>>
>>> However I could not able to pass above details into the outSequence .
>>> Kindly suggest solutions?
>>>
>>> Thanks.
>>> *Senuwan Withana*
>>> Software Engineer - Support Team | WSO2
>>>
>>> Email : senu...@wso2.com
>>> Mobile: 94773212853
>>> Web: http://www.wso2.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>> +94711822074 <+94%2071%20182%202074>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Buddhimala Ranasinghe*
> Software Engineer-Support Team | WSO2
> Emil: buddhim...@wso2.com
> Mobile:+94771563138 <+94%2077%20156%203138>
> Web:http://wso2.com
> [image: https://wso2.com/signature] 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass user details into the out sequence.

2017-11-22 Thread Senuwan Withana
Thank you Saneth,

Regards.

*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com



On Wed, Nov 22, 2017 at 2:28 PM, Saneth Dharmakeerthi 
wrote:

> Hi Senuwan,
>
>  If you set a value to a property in default context (Synapse), It
> should be accessible throughout in and out sequence[1][2][3]. The behavior
> might different if you set this value inside a Clone or Iterator?
>
>
>
> [1]https://docs.wso2.com/display/EI610/Property+Mediator
> [2]http://soatutorials.blogspot.com/2014/03/wso2-esb-propert
> ies-tutorial.html
> [3] http://blog.facilelogin.com/2011/02/wso2-esb-property-me
> diator-different.html
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> *Associate Technical Lead*
> WSO2, Inc.
> Mobile: +94772325511 <+94%2077%20232%205511>
>
> 
>
> On Wed, Nov 22, 2017 at 11:13 AM, Senuwan Withana 
> wrote:
>
>> Hi Guys,
>>
>> Thanks for the replies .
>>
>> I was able to take the user role from class mediator in the in sequence
>> But I could not able to pass that value into the out sequence.
>>
>> Thanks,
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> On Wed, Nov 22, 2017 at 10:51 AM, Himasha Guruge 
>> wrote:
>>
>>> Hi Senuwan,
>>>
>>> What is your requirement here? Could you post your complete synapse
>>> configuration?
>>>
>>> Thanks,
>>> Himasha
>>>
>>> On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana 
>>> wrote:
>>>
 Hi Team,


 I have created the below class mediator to call my JWTRoleReder, in
 Sequence .

 
   



 However I could not able to pass above details into the outSequence .
 Kindly suggest solutions?

 Thanks.
 *Senuwan Withana*
 Software Engineer - Support Team | WSO2

 Email : senu...@wso2.com
 Mobile: 94773212853
 Web: http://www.wso2.com



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Himasha Guruge
>>> Senior Software Engineer
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299 <+94%2077%20745%209299>
>>> himas...@wso2.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


Re: [Dev] Pass user details into the out sequence.

2017-11-21 Thread Senuwan Withana
Hi Guys,

Thanks for the replies .

I was able to take the user role from class mediator in the in sequence But
I could not able to pass that value into the out sequence.

Thanks,
*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com



On Wed, Nov 22, 2017 at 10:51 AM, Himasha Guruge  wrote:

> Hi Senuwan,
>
> What is your requirement here? Could you post your complete synapse
> configuration?
>
> Thanks,
> Himasha
>
> On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana 
> wrote:
>
>> Hi Team,
>>
>>
>> I have created the below class mediator to call my JWTRoleReder, in
>> Sequence .
>>
>> 
>>   
>>
>>
>>
>> However I could not able to pass above details into the outSequence .
>> Kindly suggest solutions?
>>
>> Thanks.
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> Senior Software Engineer
> WS*O2* *Inc.*
> Mobile: +94 777459299 <+94%2077%20745%209299>
> himas...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass user details into the out sequence.

2017-11-21 Thread Rukshan Premathunga
Hi Senuwan,

You can add required property to message context inside the class mediator.
So that you can read them back in out-sequence.

Thanks and Regards

On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana  wrote:

> Hi Team,
>
>
> I have created the below class mediator to call my JWTRoleReder, in
> Sequence .
>
> 
>   
>
>
>
> However I could not able to pass above details into the outSequence .
> Kindly suggest solutions?
>
> Thanks.
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
+94711822074
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pass user details into the out sequence.

2017-11-21 Thread Senuwan Withana
Hi Team,


I have created the below class mediator to call my JWTRoleReder, inSequence
 .


  
   


However I could not able to pass above details into the outSequence .
Kindly suggest solutions?

Thanks.
*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev