Click here to Skip to main content
11,721,289 members (82,102 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hello everyone, I am currently designing a web application with asp.net 3.5, but the webservice is designed in java and produces JSON.
I want to get and post data to the database through the webservice.

All the articles i found so far use soap but can anyone please tell me how to invoke/consume Java restful web service in ASP.net 3.5 using C#

And i also would like to know if is possible to bind any control in my webform to a method in the webserver

Please help i need to meet a deadline and im really struglling to get this right


Thanks in advance for your time
Posted 1-Jul-10 1:28am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Restful web service is easy you can do it by any programming language also Javascript. try

0) use HTTP classes to send request to webservice with specified parameters
1) get results from response
2) use a lib or API for JSON in .Net, for you can parse results
3) use parsed data

try to read Accessing Services Using Browsers you can do something like it with C#. & JSON.Net (maybe you can found JSON Request for .Net)
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 515
1 OriginalGriff 279
2 Mika Wendelius 170
3 F-ES Sitecore 150
4 cyycoish 70
0 Sergey Alexandrovich Kryukov 2,209
1 OriginalGriff 969
2 F-ES Sitecore 660
3 Maciej Los 609
4 Richard MacCutchan 560


Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 1 Jul 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100