WSRequest class is used to send web services request to WSGateway class. This class i sa wrapper around REST based requests. It contains methods that is need by the target service and some utility methods.
WSRequest class is used to create the following requests:
<li>Search Request (Keyword and Dicplay Categories Search)</li> <li>Product Details Request</li> <li>Compare Products Request</li> <li>Category Family Request</li> <li>Ajax Request for Lazy Details</li>
WSRequest also provide information about the target service , the service endpoints, method used and the list of paramters required by the request.
This class throws WSException when created WSrequest is not validate.
Located in /models/WSRequest.php (line 30)
This method is used to append paramters passed from outside WSRequest from any source to destination parameters array.
This method will create request to fetch all categories , there parent and child categories tree.
This method will return WSException::$REQUEST_VALIDATION_ERROR if the created WSRequest is not valdated properly.
This method will create product comparison request. This method will return WSException::$REQUEST_VALIDATION_ERROR if the created WSRequest is not valdated properly.
This method will create product details sheet request. This method will return WSException::$REQUEST_VALIDATION_ERROR if the created WSRequest is not valdated properly.
Enter description here...
This method will create keyword search and dicplay category search request depending onthe paramters pass to it. This method will return WSException::$REQUEST_VALIDATION_ERROR if the created WSRequest is not valdated properly.
This methid is used to set every ajax call to web service. Parameters are passed to make it flexible of every ajax call.
Return App ID
Return the target service endpoint.
Get default parameters array of WSRequest object
Use to prepare paramter string from paramters array.
Return string containing the parameters passed to the Web Service.
Return request url
Return URI for webservice.
Documentation generated on Wed, 13 Feb 2008 01:57:46 +0500 by phpDocumentor 1.4.0a2