Results 1 to 4 of 4

Thread: API New Year

  1. #1

    Thread Starter
    Addicted Member billyblue's Avatar
    Join Date
    Dec 2008
    Location
    Belfast
    Posts
    203

    API New Year

    I'll get my coat :P

    I am new to the concept of an API if I am honest. I am looking for a bit of guidance of how best to incorporate it into ASP.NET.

    Starting with the basics. I have outlined below how I think it could work (excuse my ignorance if this is completely off track, I'm a beginner).

    I want to create an API that allows clients to communicate with our site.

    This is how we'd communicate.

    Client --[XML]--> MySite
    Client <--[XML]-- MySite

    These would be sent by https.

    Now at my end I was thinking of the following format.

    1. A page say 'catch.vb' that accepts the https message. This page would extract the required info from the XML document then act upon it. If validation was required it would happen here.

    Say the xml specified it wanted to performActionX. The required variables would then be passed on to 'performActionX.vb'.

    2. performActionX.vb would then do the business based on the variables it accepted from 'catch.vb'. The results would then be passed onto a third page 'throw.vb'.

    3. Throw.vb would insert the results into an xml document and send it to the client via https.

    How does this sound? Again I must reiterate I am a newbie here so be gentle. Also would appreciate any response in layman's terms

    Thanks for reading

    BB
    Last edited by billyblue; Jan 8th, 2009 at 11:44 AM.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: API New Year

    Quote Originally Posted by billyblue
    I am new to the concept of an API if I am honest.
    And what if you aren't honest?

    Quote Originally Posted by billyblue
    I am looking for a bit of guidance of how best to incorporate it into ASP.NET.
    Umm... you don't...

    Quote Originally Posted by billyblue
    Starting with the basics. I have outlined below how I think it could work (excuse my ignorance if this is completely off track, I'm a beginner).

    I want to create an API that allows clients to communicate with our site.

    This is how we'd communicate.

    Client --[XML]--> MySite
    Client <--[XML]-- MySite

    These would be sent by https.

    Now at my end I was thinking of the following format.

    1. A page say 'catch.vb' that accepts the https message. This page would extract the required info from the XML document then act upon it. If validation was required it would happen here.

    Say the xml specified it wanted to performActionX. The required variables would then be passed on to 'performActionX.vb'.

    2. performActionX.vb would then do the business based on the variables it accepted from 'catch.vb'. The results would then be passed onto a third page 'throw.vb'.

    3. Throw.vb would insert the results into an xml document and send it to the client via https.

    How does this sound? Again I must reiterate I am a newbie here so be gentle. Also would appreciate any response in layman's terms

    Thanks for reading

    BB
    AH, OK... API is NOT what you want. API is Windows based, not browser based. What you want to look for are Web Services... allows remote objects to be created and used over the web using XML, SOAP, and HTHP(S). APIs won't work in this case.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: API New Year

    Ah COM on, that was a pretty good pun.


    There's a list of ASP.NET tutorials at the top of this forum. One of them is a tutorial on web services. Creating web services is as easy as you think it is.

    Post back if you have any more questions, don't worry about being new. We all have to start somewhere.

  4. #4

    Thread Starter
    Addicted Member billyblue's Avatar
    Join Date
    Dec 2008
    Location
    Belfast
    Posts
    203

    Re: API New Year

    Thanks guys. I will have a look at those tutorials and probably get back to you. Thanks for reading.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width