简体   繁体   中英

WCF Web json Services from database ? error in Reading value

I am developing a Restful Web Services using .net(WCF) .
I followed this link,

But here at the Starting part in WCF test Client at GetData() when I Enter the Value 13 or 3 its taking and I pressed invoke

But at the URL I am getting No Data..
Actual result:

在此处输入图片说明

Till Service1.svc its Fine But the Value at Get Data should be like below
Expected Result:

在此处输入图片说明

But Its not working

I don't what is the problem, Here I am Using VS-2012 Premium.

In example there is "getData/{value}" not "GetData/{value}", not sure but it can be case sensitive. You also can change UriTemplate to "getData/?value={value}", and call it "getData/?value=13"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM