Re: [Dev] Writing xml response from data service into file in local server.

2018-02-26 Thread aditya shivankar
Hi Sir, I have created a data service, which transforms data from database to xml. I want to call this service using the local endpoint as in this screen shot below. [image: Inline image 1] once the xml from data service becomes the payload for proxy , Now i know how to write it in a file using

Re: [Dev] Writing xml response from data service into file in local server.

2018-02-26 Thread aditya shivankar
Hi, How Do I need to call dataservice from proxy service. If I need to call using wsdl ? how ? Or is there any other way to call internal data services which are on the same server as proxy service? internal call , should be good for performance? how? Please guide. With Regards, Aditya On Mon,

Re: [Dev] Writing xml response from data service into file in local server.

2018-02-26 Thread Chanika Geeganage
Hi Aditya, You have to call the dataservice from a synapse configuration (ie. proxy service/API). In there after you call the dataservice, you can write to a file using mediation logic such as using file connector [1], vfs transport [2] [1]

Re: [Dev] Writing xml response from data service into file in local server.

2018-02-26 Thread Himasha Guruge
Hi Aditya, Yes, you would have to use a mediation sequence and invoke the dataservice from there. Please refer [1] as a sample. [1] https://wso2.com/library/articles/2012/10/implementing-restful-services-wso2-esb/ Thanks, Himasha On Mon, Feb 26, 2018 at 2:42 PM, aditya shivankar <

[Dev] Writing xml response from data service into file in local server.

2018-02-26 Thread aditya shivankar
Hi sir, I have created a data service which reads the record in the table and converts it into xml which is exposed as soap web service. sample output I achieved is: http://www.w3.org/2003/05/soap-envelope;> http://www.my1stdataservice.com;> bk100 J K