I have searched this but really I couldn’t find the exact answer for .asmx solution. How can I create a .Net web service that is formatted as seen below? Also It will be connected with a database.
<Books>
<Book BookID="1" BookName="BookName1" Page="100"/>
<Book BookID="2" BookName="BookName1" Page="200"/>
<Book BookID="3" BookName="BookName1" Page="300"/>
</Books>
You can use
WCFwithBasicHttpBindingfor simulating.asmxweb services.you can use :
and you can have a look to this link:
http://blogs.msdn.com/b/mpowell/archive/2004/05/12/130637.aspx