Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6536975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:33:42+00:00 2026-05-25T10:33:42+00:00

I am working on creating a Web site like www.hipmunk.com in ASP.NET web forms.

  • 0

I am working on creating a Web site like http://www.hipmunk.com in ASP.NET web forms.
I need to pull the data from multiple API’s and compare the rates and show the different rate options to the users.
What is the best way to achive this?
I am browsing around and see “Windows Workflow Foundation” may be an option.

Anyone got suggestions for me? I am just looking for architectural suggestions.

Thanks

EDIT: Multiple API: – Each OTA’s have different type of API’s but so far I have seen everyone supports the XML/JSON format

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:33:42+00:00Added an answer on May 25, 2026 at 10:33 am

    I’m assuming that you are trying to capture the same data from each of the services, but they may each have a different calling pattern, and they will definitely represent their results differently. One way to handle the differences in each of the services is to encapsulate them using the Strategy Pattern. You would have a standard results object, but based on the list of requested services, you would use a different strategy to fill each one.

    public interface IResultsStrategy {
        RateResults GetRateResults(SiteInfo site);
    }
    
    public class SpecificSiteStrategy {
        public RateResults GetRateResults(SiteInfo site) {
            //access the service through WCF, or whatever makes the most sense
            //create a new RateResults object, and fill it with the appropriate data
        }
    }
    
    public class AnotherSiteStrategy {
        public RateResults GetRateResults(SiteInfo site) {
            //access the service through a web request, or whatever makes the most sense
            //create a new RateResults object, and fill it with the appropriate data
        }
    }
    
    public class RateFetcher {
        public IEnumerable<RateResults> GetRates() {
            var rateResults = new List<RateResults();
            foreach(SiteInfo site in SitesToFetch) {
                IResultsStrategy strategy = GetStrategy(site);
                rateResults.Add(strategy.GetRateResults(site));
            }
            return rateResults;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on creating a call back function for an ASP.NET cache item removal
Working inside the context of an ASP.NET application I am creating a page that
I'm working on creating a domain layer in Zend Framework that is separate from
I am working on something that uses Zen Cart. Changing the site from Zen
I am able to publish website by creating virtual directory under Default Web Site
I'm in the process of creating a forms authentication based site, and having never
I'm currently working on creating a new C# project that needs to interact with
I am working on creating a daemon in Ruby using the daemons gem. I
I am working on creating a tag cloud in Silverlight 2 and trying to
I am working on creating an immutable class. I have marked all the properties

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.