Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Web API from an ASP.NET page
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web Services
Title:
Calling Web API from an ASP.NET page
Miscellaneous
Thread ID:
01650481
Message ID:
01650481
Views:
59
Hi,

I am attempting to learn how to use a Web API (created by another party) can be used in an ASP.NET application. I have used this Web API in a VFP application. In summary this is what I do in VFP application:
1. Create a JSON with IDs and value pairs (that need to be passed to the Web API)
2. Create a wwHTTP object, based on the West-Wind wwHTTP.PRG
3. Call httpget or httppost method of the wwHTTP object and pass the end point of the Web API
4. Check Response string returned by the httpget, which tell the app if successful or not

Would the steps in the ASP.NET application be the same? And if yes, how would I create a HTTP object (step 2 above) in the ASP.NET application? Does .NET have a namespace/class for that?

TIA for any input or suggestions
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform