Display data from data base using stored procedure in wcf?

Posted by Mandlaa under WCF on 10/1/2014 | Points: 10 | Views : 670 | Status : [Member] | Replies : 2
I did the wcf to display data from database using stored procedure,

I am getting data also

I am getting output like this,

OUTPUT

http://postimg.org/image/dyvck5ojn/

The above output getting schema definition,I don't want that schema definition.

I want to the below output,

<?xml version="1.0" encoding="UTF-8"?>

How can i get the above out put

Getting data from database i am using below code

 

anyone pls give me solution for this one




Responses

Posted by: Naveenhcl on: 10/1/2014 [Member] Starter | Points: 25

Up
0
Down
Hi,

I think you want to convert your database data into XML Format right.?

Just refer below link may be this link will helpful to you, to resolve your issue.

http://msdn.microsoft.com/en-us/library/360dye2a.aspx

Mandlaa, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mandlaa on: 10/1/2014 [Member] Starter | Points: 25

Up
0
Down
In my interface method i am putting

[WebGet(ResponseFormat = WebMessageFormat.Xml]
above code automatically that data display time xml,no need to convert again

Mandlaa, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response