Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-11-03 Thread aditya shivankar
Hi Thanks . That Works.. Thanks to all ( Himasha Guruge, Sudharma Subasinghe, Manorama Perera,Vinod Kavinda... ) who worked on the issue. With Regards, Aditya On 10/30/17, Himasha Guruge wrote: > Hi Aditya, > > The list parameters available for different transformations are available > in

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-29 Thread Himasha Guruge
Hi Aditya, The list parameters available for different transformations are available in [1]. For your current requirement, could you try adding below property in EI/conf/synapse.properties and restart the server? *synapse.commons.json.output.xmloutMultiplePI=true* I have tried it out with the pr

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-29 Thread aditya shivankar
Hi Sudharma, Thanks for you reply. As per previous mail suggestion, I downloaded wso2ei-6.1.1-update7, and ran the same application on it. But I did not get the expected result. Request I fired through postman. { "id" : "3", "parts" : ["Screen"], "test" : [], "numberTest" : 40 } Response recei

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-29 Thread aditya shivankar
Hi Sudharma, I tried adding below line in synapse.properties file present at C:\wso2ei-6.1.1-update7\conf this location and restarted the server. synapse.json.to.xml.processing.instruction.enable=true. Still it did not work. Do let me know , if I did anything wrong. With Regards, Aditya On Su

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-29 Thread Sudharma Subasinghe
These fixes are available with the latest release Enterprise Integrator 6.1.1-update7. which is available for download from here . Thanks Sudharma On Sun, Oct 29, 2017 at 12:58 PM, aditya shivankar < shivankar.adit...@gmail.com> wrot

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-29 Thread aditya shivankar
Hi Sudharma, Thanks for the reply. Request you to please provide a link to download the version of wso2 esb(WSO2 EI) , in which these defects are fixed. So that I do not end up , in downloading wrong versions. Thanks With Regards, Aditya On Fri, Oct 27, 2017 at 4:49 PM, Sudharma Subasinghe wrot

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-27 Thread Sudharma Subasinghe
Hi Aditya, This has been fixed with[1] and you can try with latest WSO2 Enterprise Integrator(WSO2 EI), integrator profile. There you can avoid above both issues by enabling *synapse.json.to.xml.processing.instruction.enable *in synapse.properties file. Please refer[2] for more info about using E

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-26 Thread aditya shivankar
Hi, Few more similar things, I found regarding this same flow . If the request consists of an empty. It gets disappeared in response completely. For E.g. Request : { "id" : "3", "parts" : ["Screen"], "test" : [], "numberTest" : 40 } Actual Response : { "id": "3", "parts": "Sc

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread aditya shivankar
Hi, As mentioned earlier "Below is the sample service I have created to Highlight the issues I am facing in my project(where the request and response are very big and these issues are repeating at many places)." Actually , I cannot recreate the message using payloadFactory as you did because,

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Vinod Kavinda
HI, You can fix the second issue by enabling the property " synapse.commons.json.output.disableAutoPrimitive.regex". Refer doc [1] for more information. [1] - https://docs.wso2.com/display/EI611/JSON+Support#JSONSupport-XMLtoJSONtransformationparameters /Vinod On Wed, Oct 25, 2017 at 2:28 PM, ad

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread aditya shivankar
Hi, Thanks Manorama , the 2nd issue is relsoved with this. Could you please help me with 1st issue as well ? Or Provide some configuration like above , which will preserve the array, even if there is only one element in array. With Regards Aditya On Wed, Oct 25, 2017 at 12:32 PM, Manorama Pere

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Sudharma Subasinghe
Hi Aditya, You can have [] with one json element using PayloadFactory mediator. I tried below instead of enrich mediator and it worked for both single element and multiple elements. {"id" : $1, "parts" : $2, "make" : "Tamsung"}

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Manorama Perera
Hi Aditya, In order to preserve the double quotations around the numbers, you can configure the below property in /repository/conf/synapse.properties synapse.commons.json.output.autoPrimitive=false Thanks, Manorama On Wed, Oct 25, 2017 at 11:31 AM, aditya shivankar < shivankar.adit...@gmail.com

[Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-24 Thread aditya shivankar
Below is the sample service I have created to Highlight the issues I am facing in my project(where the request and response are very big and these issues are repeating at many places). Request : { "id" : "3", "parts" : ["Screen"] } Actual Response : { "id": 3, "parts": "Screen", "make