Methods for implementing web services and devices thereof
First Claim
1. A method for implementing a web service, the method comprising:
- determining by a web content proxy server when a JavaScript file is associated with a received web service request based on a match of the JavaScript file with a portion of a uniform resource locator (URL) associated with the web service request;
emulating by the web content proxy server a JavaScript environment when the determining indicates the JavaScript file is associated with the received web service request;
creating by the web content proxy server a JavaScript object including one or more parameters of the received web service request;
executing by the web content proxy server the JavaScript file associated with the received web service request in the emulated JavaScript environment by passing the created JavaScript object including the one or more parameters of the received web service request to a function in the JavaScript file;
constructing by the web content proxy server a web service response based on the JavaScript object as populated based on the executing; and
providing by the web content proxy server the constructed web service response to a source of the received web service request.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, non-transitory computer readable medium, and apparatus that determines when a JavaScript file is associated with a received web service request. A JavaScript environment is emulated when the determining indicates the JavaScript file is associated with the received web service request. A JavaScript object including one or more parameters of the received web service request is created. The JavaScript file associated with the received web service request is executed in the emulated JavaScript environment using the JavaScript object. A web service response is constructed based on the JavaScript object as populated based on the executing. The constructed web service response is provided to a source of the received web service request.
-
Citations
21 Claims
-
1. A method for implementing a web service, the method comprising:
-
determining by a web content proxy server when a JavaScript file is associated with a received web service request based on a match of the JavaScript file with a portion of a uniform resource locator (URL) associated with the web service request; emulating by the web content proxy server a JavaScript environment when the determining indicates the JavaScript file is associated with the received web service request; creating by the web content proxy server a JavaScript object including one or more parameters of the received web service request; executing by the web content proxy server the JavaScript file associated with the received web service request in the emulated JavaScript environment by passing the created JavaScript object including the one or more parameters of the received web service request to a function in the JavaScript file; constructing by the web content proxy server a web service response based on the JavaScript object as populated based on the executing; and providing by the web content proxy server the constructed web service response to a source of the received web service request. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory computer readable medium having stored thereon instructions for implementing a web service comprising machine executable code which when executed by at least one processor, causes the processor to perform steps comprising:
-
determining when a JavaScript file is associated with a received web service request based on a match of the JavaScript file with a portion of a uniform resource locator (URL) associated with the web service request; emulating a JavaScript environment when the determining indicates the JavaScript file is associated with the received web service request; creating a JavaScript object including one or more parameters of the received web service request; executing the JavaScript file associated with the received web service request in the emulated JavaScript environment by passing the JavaScript object including the one or more parameters of the received web service request to a function in the JavaScript file; constructing a web service response based on the JavaScript object as populated based on the executing; and providing the constructed web service response to a source of the received web service request. - View Dependent Claims (9, 10, 11, 12, 20, 21)
-
-
13. A web content proxy server apparatus, comprising:
-
one or more processors; and a memory coupled to the one or more processors which are configured to execute programmed instructions comprising and stored in the memory to; determine when a JavaScript file is associated with a received web service request based on a match of the JavaScript file with a portion of a uniform resource locator (URL) associated with the web service request; emulate a JavaScript environment when the determining indicates the JavaScript file is associated with the received web service request; create a JavaScript object including one or more parameters of the received web service request; execute the JavaScript file associated with the received web service request in the emulated JavaScript environment by passing the JavaScript object including the one or more parameters of the received web service request to a function in the JavaScript file; construct a web service response based on the JavaScript object as populated based on the executing; and provide the constructed web service response to a source of the received web service request. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
Specification