ASP.NET
  Home arrow ASP.NET arrow Page 2 - Using XML Web Services in Traditional ASP
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Using XML Web Services in Traditional ASP
By: Luke Niland
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2007-08-07

    Table of Contents:
  • Using XML Web Services in Traditional ASP
  • Looking at the XML
  • Formatting the Data Using XSL
  • Putting it all Together

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using XML Web Services in Traditional ASP - Looking at the XML


    (Page 2 of 4 )

    Once you have your key, you should be able to get Flickr to give you an XML file back of data for which you ask. You can just browse to this data in your web browser and it will display the XML on the page.

    In this example I am going to ask for all the photos in one of my sets. The URL you need to connect to is this one:

    http://www.flickr.com/services/rest/?
    method=flickr.photosets.getPhotos&api_key=[your_api_key]&photoset_id=
    [your_set_id]

    Where

    method = This indicates the data you are after. In our case we want all the photos in a specific set, but there are many methods you can call; they are all well documented with examples and error codes at http://www.flickr.com/services/api/.

    api_key = The API key which Flickr provided to you.

    photoset_id = The ID number of the photoset you want to work with. To get the ID of the set, edit or organize the set from your Flickr home page, in the URL you should see a long number, this is the set ID.

    Open up your browser, put in this URL and you should get something like the results below.

    <rsp stat="ok">

    <photoset id="72157600062159087" primary="454359661" owner="7389734@N03" ownername="beakersoft" page="1" per_page="500" pages="1" total="43">

    <photo id="454359661" secret="4684abec3c" server="211" farm="1" title="Liberation" isprimary="1"/>

    <photo id="454359589" secret="83272f352e" server="246" farm="1" title="Lancaster bomber" isprimary="0"/>

    <photo id="454346424" secret="33687a2ee7" server="168" farm="1" title="Daniels hanmer" isprimary="0"/>

    <photo id="465125882" secret="066c38a39d" server="207" farm="1"

    title="The Bridge Burnley" isprimary="0"/>

    </photoset>

    </rsp>

    This XML file is showing me details of all the photos in the set. We can then use this data in our application.

    More ASP.NET Articles
    More By Luke Niland


       · if server.CreateObject("microsoft.xmlhttp") is used in asp, pages can seem to hang...
     

    ASP.NET ARTICLES

    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT