[Dev] IDENTITY-6724 Tests and Documentation

2018-01-05 Thread Isuranga Perera
Hi, Please find unit tests [2] and documentation [3] related to JIRA [1] [1] https://wso2.org/jira/browse/IDENTITY-6724 [2] https://github.com/wso2/balana/pull/83 [3] https://docs.google.com/document/d/1s2OFakY6vkcEjyOctY_DTYa5GqAPVr7cHyq2uk2vlM4/edit?usp=sharing

Re: [Dev] [DSS] Issue on email pattern validation.

2018-01-05 Thread Sashika Wijesinghe
Hi Senuwan, I have tried with the regex pattern you provided and I'm getting the same validation error as above. However, if I execute the given regex pattern in Mysql it gives the correct result as below. The reason for this behaviour is due to the differences in the metacharacters used in MySQL

Re: [Dev] API to change role of ws-security policy

2018-01-05 Thread Danesh Kuruppu
Hi Godwin, Seems like your request url is wrong. I tested the same in EI-6.1.1 by adding resources.war from GREG 5.3.0 pack and It is working fine. Please execute the below curl and test. curl -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Media-Type: > Policy" -H "Content-Type: applicatio

[Dev] [DSS] Issue on email pattern validation.

2018-01-05 Thread Senuwan Withana
Hi Team, I found an issue when validating the email id using the WSO2 DSS. I have used below mentioned pattern. When I executed my API I got error like following: Nested Exception:- Pattern {^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$} is expected Field Name: CUSTOMER_EMAIL Field Value: senu...@ws

Re: [Dev] Dev studio expands

2018-01-05 Thread Kevin Ratnasekera
Hi Lahiru, As far as I can remember, you no longer need to have empty throttle mediator tag in OUT sequence, with same throttle id as in IN sequence. This empty throttle mediator tag served purpose of decrementing concurrency throttling counter ( number or parallel flows ) which was incremented IN

[Dev] Problem with extracting a value in a SOAP response through a shell script

2018-01-05 Thread Nipuni Bhagya
Hi all, I'm writing shell scripts for the IAM Quick Start Guide and currently, I'm working on the shell script which automates the configuration of SSO with SAML2. I have encountered a problem while trying to get the application Id of a service provider in order to perform an update operation. Th

Re: [Dev] java.net.BindException: Address already in use (Bind failed)

2018-01-05 Thread Hemika Kodikara
If you know which port is blocking your call, you can use the following command to find the process/app thats using that port. sudo lsof -i :80<--- For port 80 Then you can kill/close the process/app. Regards, Hemika Hemika Kodikara WSO2 Inc. lean . enterprise . middleware http://wso2.co

Re: [Dev] java.net.BindException: Address already in use (Bind failed)

2018-01-05 Thread Eranda Rajapakshe
Hi Francisco, Are you getting this error per each request? or is it only when applying a high load? Also is there any specific reason to use call mediator in Blocking mode, if not try it out in non-blocking mode (which is default and recommended unless there is a special reason to use blocking)

Re: [Dev] JSON to XML object array conversion

2018-01-05 Thread Sameera Gunarathne
Hi Amal, Thanks for the suggestion. this would more suite for the requirement I have. Regards, Sameera. On Fri, Jan 5, 2018 at 2:34 PM, Amal Gunatilake wrote: > Hi Sameera, > > You can use the XSLT mediator as well. > > > { >"phoneNumbers":[ > { > "number":"123", >

Re: [Dev] Issue in implementing Guaranteed Delivery EIP using RabbitMQ

2018-01-05 Thread Eranda Rajapakshe
Hi Piriya, It seems like the url you are trying to invoke is not correct, it should include the url-mapping part as well. cURL command like below should work, curl -X GET -H "Content-Type:application/json" ' http://192.168.8.100:8280/details/test' Thanks, On Mon, Jan 1, 2018 at 4:30 PM, Piriya

Re: [Dev] JSON to XML object array conversion

2018-01-05 Thread Amal Gunatilake
Hi Sameera, You can use the XSLT mediator as well. { "phoneNumbers":[ { "number":"123", "person":"tt" }, { "number":"555", "person":"aaa" } ] } convert the json payload into xml using the messageType property. ** You will get a

Re: [Dev] JSON to XML object array conversion

2018-01-05 Thread Sameera Gunarathne
Hi Vinod, Thanks for the suggestion, I haven't tried script mediator as I tried using payload factory using om element property. I will try script mediator for the array type payloads. Regards, Sameera, On Fri, Jan 5, 2018 at 2:21 PM, Vinod Kavinda wrote: > Hi Sameera, > Did you try the scrip

Re: [Dev] JSON to XML object array conversion

2018-01-05 Thread Vinod Kavinda
Hi Sameera, Did you try the script mediator? Please refer SO question[1], script mediator has been successfully used here for a similar case. [1] - https://stackoverflow.com/questions/44817012/how-to-transform-json-array-response-to-xml-array-in-esb-wso2-using-script-media Regards, Vinod On Fri,

[Dev] JSON to XML object array conversion

2018-01-05 Thread Sameera Gunarathne
Hi, I'm generating a soap message from a JSON payload and there I would get custom object arrays for the payload. An example message format would be like below. { "phoneNumbers":[ { "number":"", "person":"" } ] } respective soap message should be like this.