Click here to Skip to main content
11,705,451 members (47,114 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
friends,
i want to know how to integrate any api in asp.net.
i m doing project on online mobile recharge site.in this 2 api will be included
one is of service provider and other for payment gateway.
Posted 24-Dec-12 22:43pm
maan_k446
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

how to integrate any api in asp.net.
Just add the reference to the 3rd party API service or assembly to your web project and you should be good to use them. 'Add Reference' for assembly and 'Add Web Reference' for a webservice.
  Permalink  
Comments
ProgramFOX at 27-Dec-12 7:55am
   
Comment from the OP, posted as a non-answer:
if it is web service then we have 2 add a reference of it.if api is working on post and get method then we hav 2 use httprequest and httpresponse
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

In addition to Solution 1, conventions are that you add the library or the assembly of third-party API to your bin folder; which is equivalent to Adding reference using the Add Reference tab and searching for the assembly. Once that has been done, you can then use the using keyword, to include the library in your source file.

using NamespaceofPackage;

Then you can use the library in your web application.
  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 286
1 OriginalGriff 269
2 ppolymorphe 78
3 Inimicos 60
4 ProgramFOX 50
0 OriginalGriff 9,053
1 Sergey Alexandrovich Kryukov 8,347
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626


Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 8 Mar 2015
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