Miscellaneous

  Home arrow Miscellaneous arrow Page 2 - Create Your Own Custom API
MISCELLANEOUS

Create Your Own Custom API
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 28
    2005-02-02

    Table of Contents:
  • Create Your Own Custom API
  • Developing the basic API layout
  • The Client
  • The Server
  • The Server Class
  • The "Test" Step

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Create Your Own Custom API - Developing the basic API layout


    (Page 2 of 6 )

    First off, we need to draw up a simple plan that will outline a basic XML request. This doesn't have to be set in stone but you need to have something to start out with so the client can send a request and the server can reply to that request. Our basic XML message is going to be as follows (keepin' it simple):

    <?xml version="1.0"?>
    <myXML>
    <function>order</function>
    <values>
    <orderID>12345</orderID>
    <reference>ref</reference>
    </values>
    </myXML>
      

    Very simple indeed. You may also consider writing a DTD to help sort things out.

    Well, there it is! We've set up our simple XML message - now we can lay out our API to match. *Note: When developing this stage of the "game", write out an XML message of what you would want a client or whoever would be using your web service and API to send as a request. This will give you an idea of how to build your server.

    Next step - build the Client to send this request

    More Miscellaneous Articles
    More By Codewalkers

    blog comments powered by Disqus

    MISCELLANEOUS ARTICLES

    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength
    - Install Slackware on Your Old PC


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap