-
Notifications
You must be signed in to change notification settings - Fork 0
AMFWebService
Overview
This module is for third party software the output could be json or xml
Prerequisite
Pre-requisit
AMFDetectRightFilter, AMFDetectRightFilter with memcached, AMFWURFLFilter or AMFWURFLFilter with memcached must be configured and loaded. And the parmeter RestMode must be true.
Configuration
On httpd.conf:
SetHandler modperl PerlResponseHandler Apache2::AMFWebService* Allow from all
Syntax to access to the webservice
To have the wurfl capabilities as xml of some device you need to do this get:
GET http://:/WS/?&amf=
To have the wurfl capabilities as json of some device you need to do this get:
GET http://:/WS/?type=json&amf=
To have some capability you can add the capabilityListExample:
GET http://:/WS/?type=json&amf=&capabilityList=
Cache-Control
If you use proxy to access to the AMFwebservice, is suggested to use AMFWSCacheControl. With this paramerer all proxy cache in middle don’t send many request to webservice. The syntax is:
PerlSetEnv AMFWSCacheControl max-age=2592000
Tutorial