Last post Sep 28, 2015 08:28 AM by sujilkumar
Sep 28, 2015 07:53 AM|sujilkumar|LINK
I would like to create one web service with format shown in below but i dont have any idea about how to create or how it will be use in asmx file
if any one have idea about please let me know.
the out put XML format should be like this instead of normal web service xml out put.
Thanks & Regards
Sep 28, 2015 08:13 AM|PatriceSc|LINK
And do you want the client side to be able to request JSON or XML or do you want to just force XML? Try perhaps
https://msdn.microsoft.com/en-us/library/system.web.script.services.scriptmethodattribute.responseformat(v=vs.110).aspx You could also "Web api" rather than an ASMX service.
(you don't want a SOAP service that would return a string that would happen to be XML markup? What you shown is the response you want to see when inspecting the response payload?)
Sep 28, 2015 08:28 AM|sujilkumar|LINK
Thank you PatriceSc for your reply,
its should be xml response for client consume ,all the groups and items dynamic from SQL db,
i will try the code which you mentioned in reply.
I am not much aware of WEB API thats