Re: [Dev] How to validate email adddress

2017-11-29 Thread Senuwan Withana
Hi Team,

Regular expression should be like below




Regards,

*Senuwan Withana*
Software Engineer - Support Team | WSO2

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



On Tue, Nov 28, 2017 at 2:18 PM, Dilusha Alphonso  wrote:

> Hi,
>
> Thank you for the response. I changed my configuration as mentioned above
> it's working.
>
> Thanks
> Dilusha
>
>
> On Mon, Nov 27, 2017 at 3:35 PM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> Also you need to use the template with + sign since its value can contain
>> @
>>
>> uri-template="/{*+*id}"
>>
>> Regards
>> Senduran
>>
>>
>>
>>
>> On Mon, Nov 27, 2017 at 3:24 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi Dilusha,
>>>
>>> Since you have defined is as path parameter in the template, you must
>>> use 'uri.var.id' instead of 'query.param.id' in the filter mediator
>>> like below.
>>>
>>> >> regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
>>>
>>> On Sat, Nov 25, 2017 at 11:37 AM, Dilusha Alphonso 
>>> wrote:
>>>
 Hi All,

 Requirement: I need to check a condition " Patient ID is the email
 address of given patient". When I give any string to the ID, it must be an
 email address. I have to validate ID whether it is in email format. For
 this, I used the filter mediator in ESB, But I noticed my request didn't go
 through that filter mediator.

 I attached my API configuration in ESB. Please, anyone, help me to
 validate the email address with ID.

 http://ws.apache.org/ns/synapse; name="Durdan"
 context="/test">

   
  
  >>> regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
 


   
  http://schemas.
 xmlsoap.org/soap/envelope/">
 
17
 
 
http://service.sample.durdans.com;>
   $1

 
  
   
   
  
   


>>> scope="transport"/>

   
  
   


>>> value="application/soap+xml" scope="axis2" type="STRING"/>
 
 

   >>> value="deef"/>

 
  
   
   
  
   

 

 Thanks
 Dilusha





 before loop back to out sequence whether the USER_NAME and PATIENT_ID
 are equal.

 --


 *Best Regards,Dilusha Alphonso*

 *Software Engineer - Support Team*


 *WSO2*
 *Mobile : *

 *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
 *

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


>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Senduran *
>> Senior Software Engineer,
>> WSO2, Inc.;  http://wso2.com/ 
>> Mobile: +94 77 952 6548 <+94%2077%20952%206548>
>>
>
>
>
> --
>
>
> *Best Regards,Dilusha Alphonso*
>
> *Software Engineer - Support Team*
>
>
> *WSO2*
> *Mobile : *
>
> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
> *
>
> ___
> 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] How to validate email adddress

2017-11-28 Thread Dilusha Alphonso
Hi,

Thank you for the response. I changed my configuration as mentioned above
it's working.

Thanks
Dilusha


On Mon, Nov 27, 2017 at 3:35 PM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Also you need to use the template with + sign since its value can contain
> @
>
> uri-template="/{*+*id}"
>
> Regards
> Senduran
>
>
>
>
> On Mon, Nov 27, 2017 at 3:24 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi Dilusha,
>>
>> Since you have defined is as path parameter in the template, you must use
>> 'uri.var.id' instead of 'query.param.id' in the filter mediator like
>> below.
>>
>> > regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
>>
>> On Sat, Nov 25, 2017 at 11:37 AM, Dilusha Alphonso 
>> wrote:
>>
>>> Hi All,
>>>
>>> Requirement: I need to check a condition " Patient ID is the email
>>> address of given patient". When I give any string to the ID, it must be an
>>> email address. I have to validate ID whether it is in email format. For
>>> this, I used the filter mediator in ESB, But I noticed my request didn't go
>>> through that filter mediator.
>>>
>>> I attached my API configuration in ESB. Please, anyone, help me to
>>> validate the email address with ID.
>>>
>>> http://ws.apache.org/ns/synapse; name="Durdan"
>>> context="/test">
>>>
>>>   
>>>  
>>>  >> regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
>>> 
>>>
>>>
>>>   
>>>  http://schemas.
>>> xmlsoap.org/soap/envelope/">
>>> 
>>>17
>>> 
>>> 
>>>http://service.sample.durdans.com;>
>>>   $1
>>>
>>> 
>>>  
>>>   
>>>   
>>>  
>>>   
>>>
>>>
>>>>> scope="transport"/>
>>>
>>>   
>>>  
>>>   
>>>
>>>
>>>>> scope="axis2" type="STRING"/>
>>> 
>>> 
>>>
>>>   >> value="deef"/>
>>>
>>> 
>>>  
>>>   
>>>   
>>>  
>>>   
>>>
>>> 
>>>
>>> Thanks
>>> Dilusha
>>>
>>>
>>>
>>>
>>>
>>> before loop back to out sequence whether the USER_NAME and PATIENT_ID
>>> are equal.
>>>
>>> --
>>>
>>>
>>> *Best Regards,Dilusha Alphonso*
>>>
>>> *Software Engineer - Support Team*
>>>
>>>
>>> *WSO2*
>>> *Mobile : *
>>>
>>> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> 
>> 
>>   
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Senduran *
> Senior Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548 <+94%2077%20952%206548>
>



-- 


*Best Regards,Dilusha Alphonso*

*Software Engineer - Support Team*


*WSO2*
*Mobile : *

*+94766837098[image: http://wso2.com/signature] *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to validate email adddress

2017-11-27 Thread Senduran Balasubramaniyam
Also you need to use the template with + sign since its value can contain @

uri-template="/{*+*id}"

Regards
Senduran




On Mon, Nov 27, 2017 at 3:24 PM, Abimaran Kugathasan 
wrote:

> Hi Dilusha,
>
> Since you have defined is as path parameter in the template, you must use '
> uri.var.id' instead of 'query.param.id' in the filter mediator like below.
>
> 
>
> On Sat, Nov 25, 2017 at 11:37 AM, Dilusha Alphonso 
> wrote:
>
>> Hi All,
>>
>> Requirement: I need to check a condition " Patient ID is the email
>> address of given patient". When I give any string to the ID, it must be an
>> email address. I have to validate ID whether it is in email format. For
>> this, I used the filter mediator in ESB, But I noticed my request didn't go
>> through that filter mediator.
>>
>> I attached my API configuration in ESB. Please, anyone, help me to
>> validate the email address with ID.
>>
>> http://ws.apache.org/ns/synapse; name="Durdan"
>> context="/test">
>>
>>   
>>  
>>  > regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
>> 
>>
>>
>>   
>>  http://schemas.
>> xmlsoap.org/soap/envelope/">
>> 
>>17
>> 
>> 
>>http://service.sample.durdans.com;>
>>   $1
>>
>> 
>>  
>>   
>>   
>>  
>>   
>>
>>
>>> scope="transport"/>
>>
>>   
>>  
>>   
>>
>>
>>> scope="axis2" type="STRING"/>
>> 
>> 
>>
>>   > value="deef"/>
>>
>> 
>>  
>>   
>>   
>>  
>>   
>>
>> 
>>
>> Thanks
>> Dilusha
>>
>>
>>
>>
>>
>> before loop back to out sequence whether the USER_NAME and PATIENT_ID are
>> equal.
>>
>> --
>>
>>
>> *Best Regards,Dilusha Alphonso*
>>
>> *Software Engineer - Support Team*
>>
>>
>> *WSO2*
>> *Mobile : *
>>
>> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to validate email adddress

2017-11-27 Thread Abimaran Kugathasan
Hi Dilusha,

Since you have defined is as path parameter in the template, you must use '
uri.var.id' instead of 'query.param.id' in the filter mediator like below.



On Sat, Nov 25, 2017 at 11:37 AM, Dilusha Alphonso  wrote:

> Hi All,
>
> Requirement: I need to check a condition " Patient ID is the email address
> of given patient". When I give any string to the ID, it must be an email
> address. I have to validate ID whether it is in email format. For this, I
> used the filter mediator in ESB, But I noticed my request didn't go through
> that filter mediator.
>
> I attached my API configuration in ESB. Please, anyone, help me to
> validate the email address with ID.
>
> http://ws.apache.org/ns/synapse; name="Durdan"
> context="/test">
>
>   
>  
>   regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
> 
>
>
>   
>  http://schemas.
> xmlsoap.org/soap/envelope/">
> 
>17
> 
> 
>http://service.
> sample.durdans.com">
>   $1
>
> 
>  
>   
>   
>  
>   
>
>
> scope="transport"/>
>
>   
>  
>   
>
>
> scope="axis2" type="STRING"/>
> 
> 
>
>   
>
> 
>  
>   
>   
>  
>   
>
> 
>
> Thanks
> Dilusha
>
>
>
>
>
> before loop back to out sequence whether the USER_NAME and PATIENT_ID are
> equal.
>
> --
>
>
> *Best Regards,Dilusha Alphonso*
>
> *Software Engineer - Support Team*
>
>
> *WSO2*
> *Mobile : *
>
> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


[Dev] How to validate email adddress

2017-11-24 Thread Dilusha Alphonso
Hi All,

Requirement: I need to check a condition " Patient ID is the email address
of given patient". When I give any string to the ID, it must be an email
address. I have to validate ID whether it is in email format. For this, I
used the filter mediator in ESB, But I noticed my request didn't go through
that filter mediator.

I attached my API configuration in ESB. Please, anyone, help me to validate
the email address with ID.

http://ws.apache.org/ns/synapse; name="Durdan" context="/test">
   
  
 
 


   
  
 http://schemas.xmlsoap.org/soap/envelope/;>

   17


   http://service.sample.durdans.com;>
  $1
   

 
  
  
 
  
   
   
   
   
  
 
  
   
   
   


   
  
   

 
  
  
 
  
   


Thanks
Dilusha





before loop back to out sequence whether the USER_NAME and PATIENT_ID are
equal.

-- 


*Best Regards,Dilusha Alphonso*

*Software Engineer - Support Team*


*WSO2*
*Mobile : *

*+94766837098[image: http://wso2.com/signature] *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev