Processing hybrid data using a single web client
View Patent ↗According to an aspect, techniques for processing hybrid data include receiving a web request and translating the web request into a translated native request. The translated native request and a native request are sent to a server via a single web client. A response is received from the server via the single web client. It is determined whether the response corresponds to the translated native request or to the native request.
1. A method, comprising:
receiving a web request;
translating the web request into a translated native request;
sending, via a single web client, the translated native request and a native request to a server;
receiving, via the single web client, a response from the server; and
determining whether the response corresponds to the translated native request or to the native request.
2. The method of claim 1 , wherein the web request is received from a web business logic that is functionally independent of a native business logic.
3. The method of claim 2 , wherein the web business logic or the native business logic can be modified without modifying both the web business logic and the native business logic.
4. The method of claim 1 , further comprising sending the translated native web request to the single web client using a native communication module.
5. The method of claim 1 , further comprising modifying a state of the web client based on the translated native request or the native request.
6. The method of claim 5 , further comprising further modifying the state of the web client based on the response from the server.
7. The method of claim 1 , further comprising receiving a response to a native request from the server at the web client and forwarding the response to a native business logic.