[Dev] Json Array transformation using payloadfactory or enrich mediator. Please guide.

2018-01-07 Thread aditya shivankar
Respected Sir, I have response from one external service something like below, indicating children name and education. Each time i call this service with different input, it returns me few children( number of children returned could be different each time depending on my request data ). Service

Re: [Dev] Json Array transformation using payloadfactory or enrich mediator. Please guide.

2018-01-07 Thread Eranda Rajapakshe
Hi Aditya, You can use XSLT mediator to achieve this, following is a sample configuration I created. > http://ws.apache.org/ns/synapse"; >name="sample" >startOnLoad="true" >statistics="disable" >trace="disable" >transports="http,https"> > > >

Re: [Dev] Json Array transformation using payloadfactory or enrich mediator. Please guide.

2018-01-08 Thread Vinod Kavinda
Hi Aditya, You need to add the local entry declaration in the registry inside your API config. Without that, synapse does not know the location of your xsl. Refer [1] for more details. [1] - https://docs.wso2.com/display/EI611/Working+with+Local+Registry+Entries Regards, Vinod On Mon, Jan 8, 2

Re: [Dev] Json Array transformation using payloadfactory or enrich mediator. Please guide.

2018-01-09 Thread Vinod Kavinda
Hi, Select the "Source URL Entry" for the "Local entry Type" field's value. Thanks, Vinod On Tue, Jan 9, 2018 at 7:04 PM, aditya shivankar < shivankar.adit...@gmail.com> wrote: > Respected Sir, > > I think the screenshots in the mail are not appearing . Please check > attachment ( Local entry of

Re: [Dev] Json Array transformation using payloadfactory or enrich mediator. Please guide.

2018-01-09 Thread aditya shivankar
Respected Sir, Thanks for the reply. If I select "Source URL Entry", then against Source Url field there is browse button, which browses my local machine files. Should I selecting the transform.xslt using it from my local file system. (i.e. source url is path of xslt on my local machine like "file

Re: [Dev] Json Array transformation using payloadfactory or enrich mediator. Please guide.

2018-01-11 Thread aditya shivankar
Respected Sir, Due to some missing configurations which I am not able to point out,I am not able to use xslt for now. Is there any other way to achieve this? Using PayloadFactory etc.. { "Children": [ { "Name": { "Type": "System.String", "Value": "Gayle" }, "Education":{ "Type": "System.String",