Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all.
i have taken any json web service link in internet and add web reference ,enter that json web service link and enter but its not coming...
if any body knows pls let me know HOW TO CONSUME JSON WEBSERVICES IN C#


Even if you post multiple questions for this Problem, Solution will remain the same as I given for your earlier below Question.

how to use below web service and consume in c#[^]

As you mentioned in your earlier question and in Comments section of this question, you are trying to consume below Service Url.


Actully you are trying to consume REST based service and not the Web Service.

You may refer my solution provided for your earlier question to solve your problem.
Share this answer
Espen Harlinn 17-Jul-11 16:47pm    
My 5
komalilella 18-Jul-11 0:25am    
ha i solved problem for my previous question..

You can do this like this

for eg i have a webservice name Test.jsonWS,and i want to access its class Print() method named Start()

and accessing web service located on web like this

Test.WebService_Test_Process objUP = new Test.WebService_Test_Process();

where Test is the name of web service
Share this answer
komalilella 16-Jul-11 8:13am    
sorry salman...i didn't get it..
iam new this concept...
pls let me know step by step..
komalilella 16-Jul-11 8:15am    
actually...this is my problem...
i have webservice link like:
how to consume this webservice in c#...
i tried like this: rightclick on project and select Add webreference then Add web refrence window open.. and i copied the above link and enter,error came like that..

Internet Explorer cannot download citiesJSON from and Internet Explorer was not able to open this internetsite.the Requested site is either unavailable or cannot be found.pls try again later.....

If any body knows for the above problem pls let me know..its very urgent for me and do the need full... .
thatraja 16-Jul-11 8:45am    
Fixed code format & other things

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900