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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to