Solved

Redirection of web service request for data

Posted on 2014-12-31
4
152 Views
Last Modified: 2015-01-04
I have a commercial program that used to fetch data from the Internet on request.  Unfortunately, the service that it accessed is no longer available, and the program isn't updated to use a different service, even though the data itself is available from a number of sources on the Internet.

I have in mind to write a Windows service that would receive the data request (I can either patch the program to send the request to 127.0.0.1 or force DNS to return this address), would then fetch the data from a different server, manipulate it if necessary, and then return it to the original requestor.  I'll need something that listens on a TCP port, but beyond that I've little idea of the best approach.

I'm thinking of this very generally, but in case it helps, the program is the Quicken money management program (UK version which has been dropped), and the data concerned is stock prices.

Does anyone have any suggestions?  Thanks.
0
Comment
Question by:Tony Pitt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 39

Expert Comment

by:Aaron Tomosky
ID: 40526315
If you can figure out the DNS entry, you can add it to your hosts file to redirect it.
0
 
LVL 4

Author Comment

by:Tony Pitt
ID: 40526463
Thanks, Aaron.  I can do that bit without problem.  What I'm completely stuck on is what I need to write and run on my local computer to receive the request, to get the data from somewhere else, and then to return it to Quicken.  I need a program, probably a service, listening on the appropriate TCP port, but beyond that I have no idea.

/T
0
 
LVL 39

Accepted Solution

by:
Aaron Tomosky earned 500 total points
ID: 40526718
Start be downloading fiddler and looking at the request and response. If you can send this request to another url and get the same response, then you can get by with just a reverse proxy. If you need to mess with it, you need something written in whatever language you are familiar with (.net, ruby, php, Python, etc...) that will get the content, mess with it, and return it.
0
 
LVL 4

Author Comment

by:Tony Pitt
ID: 40530434
Thanks, Aaron Tomosky.  I wasn't aware of fiddler, but have now used it to get me started.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question