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 1108221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:02:57+00:00 2026-05-17T02:02:57+00:00

I have an old school ASP (note: not ASP.NET) web site that has a

  • 0

I have an old school ASP (note: not ASP.NET) web site that has a file called “listener.asp”. This file is the interface to the “web service api”. This file is on a machine that I cannot access for a while due to maintenance and implementation. However, I have been given a bunch of xml files. These xml files end with “*Request.xml” and “*Response.xsd”.

My question is, can I implement my code to interact with through these .xml and .xsd files without needed to hit listener.asp? I know that I will not get any real data. But I thought there may be a way to build my app until the machine is available. Is there any way to do this?

I guess I’m assuming there is a reason for these .xml and .xsd files. I think that reason is to “define” the request and response objects. But I would like to figure out a way to code and test without having to rely on that machine. Is this possible with what I’ve been given?

Thank you

  • 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-17T02:02:58+00:00Added an answer on May 17, 2026 at 2:02 am

    The best way would be to define an abstract class that provides access to your “web service api”. Then create two derived classes, one that works with the real web service and one that retrieves fake responses from the files.

    abstract class LegacyWebService
    {
        public abstract int Foo();
    }
    
    class RealLegacyWebService : LegacyWebService
    {
        public override int Foo()
        {
            return (int)XDocument.Load("http://www.example.com/foo").Root;
        }
    }
    
    class FakeLegacyWebService : LegacyWebService
    {
        public override int Foo()
        {
            return (int)XDocument.Load(@"C:\Users\Me\Desktop\foo.xml").Root;
        }
    }
    

    You should also be able to create C# classes from your xsd files and use XML serialization to convert the XML responses from the web service or the file to C# objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our system most of the code is in an asp.net (2.0) web site,
I have a old school c program that now and then need to tell
I have some old school looking code that is as follows: IList<KeyValuePair<string, ValuePair>> ServicePairs
We have old .net 1.1 project that is using a third party component. Aparently
I have an old .dot file with a few dozen styles in it. I
I have a old website that generate its own RSS everytime a new post
I have several old 3.5in floppy disks that I would like to backup. My
I have some old rrdtool databases, for which the exact creation recipe has long
I Have an old vbs script file being kicked off by an AutoSys job.
We have some old C code here that's built with nmake. Is there an

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.