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 < [email protected]> wrote: > 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: > > <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> > <soapenv:Body> > <Books xmlns="http://www.my1stdataservice.com"> > <Book> > <id>bk100</id> > <author>J K Rowling</author> > <title>Harry Potter</title> > <genre>Fictional</genre> > <price>2000</price> > <publish_date>2000-01-31+05:30</publish_date> > <description>Story of Mr Potter</description> > </Book> > <Book> > <id>bk200</id> > <author>Great Expectation</author> > <title>Charles Dickens</title> > <genre>Novel</genre> > <price>800</price> > <publish_date>1861-05-02+05:30</publish_date> > <description>Depicts the personal growth and personal > development of an orphan</description> > </Book> > </Books> > </soapenv:Body> > </soapenv:Envelope> > > > > but instead of exposing it as soap webservice , i need to write ouput xml > in a file. How do i do it in dataservice. > or If i need to call dataservice from proxy service in esb, how do i do > it. Please guide. > > With Regards, > Aditya > > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Himasha Guruge Senior Software Engineer WS*O2* *Inc.* Mobile: +94 777459299 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
