Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Web API from an ASP.NET page
Message
 
 
À
20/04/2017 19:17:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
01650481
Message ID:
01650507
Vues:
42
>>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
>
>No, it is much easier with .Net (and other languages). One easy way is to use Postman. You can test your API in Postman and then simply get code for your language (C#, jquery ajax, ...).

Thank you, Cetin. I will check out how to use Postman.
"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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform