This might seem odd, but I've got the following situation, and Google isn't being helpful...
I have an application that calls an API via HTTP, either as a GET or POST with a number of input items. I need to change the backend provider (which uses a different format) for the API but can't modify the application itself right now.
I'm thinking that an intermediate layer that takes the original API call format, reformats the request to the new backend, sends the request to the new backend, gets the data back, and then reformats the output into the order expected by the application would work.
What I'm not sure of is what to actually use here. I was originally thinking an ISAPI (current solution is IIS-based) or Apache module would be suitable, as it's all web-based, but perhaps there is a better solution? Can I even do processing like this in a module (receive request, process request, send additional request, reformat returned data, return data to original client requestor)?
I have an application that calls an API via HTTP, either as a GET or POST with a number of input items. I need to change the backend provider (which uses a different format) for the API but can't modify the application itself right now.
I'm thinking that an intermediate layer that takes the original API call format, reformats the request to the new backend, sends the request to the new backend, gets the data back, and then reformats the output into the order expected by the application would work.
What I'm not sure of is what to actually use here. I was originally thinking an ISAPI (current solution is IIS-based) or Apache module would be suitable, as it's all web-based, but perhaps there is a better solution? Can I even do processing like this in a module (receive request, process request, send additional request, reformat returned data, return data to original client requestor)?