top
logo
English (United Kingdom)Italian (Italy)


AMF WebService

AMFWebService

Configuration 1

The goal of this this configuration is to give another way to give capabilities as xml:

Open the file httpd.conf of your webserver. And configure this few parameter:

PerlSetEnv AMFMobileHome /server_root/MobileFilter

PerlSetEnv RestMode true

PerlModule Apache2::AMFWURFLFilter #or
Apache2::AMFWURFLFilterMemcached
PerlTransHandler +Apache2::AMFWURFLFilter #or Apache2::AMFWURFLFilterMemcached

<Location /WS/*>
SetHandler modperl

PerlResponseHandler Apache2::AMFWebService*
Allow from all
</Location>

*PerlOutputFilterHandler Apache2::AMFWebService (for v3.25 or earlier)

 

To have the wurfl capabilities of some device you need to do this get:
GET http://<host>:<port>/WS/?amf=<user_agent>

To have the wurfl capabilities as json of some device you need to do this get:
GET http://<host>:<port>/WS/?type=json&amf=<user_agent>

It's possible to test it:

JSONhttp://www.apachemobilefilter.org/WS/ws.ws?type=json&amf=BlackBerry8320%2F4.2.2+Profile%2FMIDP-2.0+Configuration%2FCLDC-1.1+VendorID%2F100

XML: http://www.apachemobilefilter.org/WS/ws.ws?type=xml&amf=BlackBerry8320%2F4.2.2+Profile%2FMIDP-2.0+Configuration%2FCLDC-1.1+VendorID%2F100

From AMF v3.30 or newer:

To have the several wurfl capabilities of some device you  can add capavilityList option:

GET http://<host>:<port>/WS/?amf=<user_agent>&capabilityList=<option1>,<option2>,....,<option n>

It's possible to test it:

JSONhttp://www.apachemobilefilter.org/WS/ws.ws?type=json&amf=BlackBerry8320%2F4.2.2+Profile%2FMIDP-2.0+Configuration%2FCLDC-1.1+VendorID%2F100&capabilityList=brand_name,model_name

XML: http://www.apachemobilefilter.org/WS/ws.ws?type=xml&amf=BlackBerry8320%2F4.2.2+Profile%2FMIDP-2.0+Configuration%2FCLDC-1.1+VendorID%2F100&capabilityList=brand_name,model_name


 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
Security
Please input the anti-spam code that you can read in the image.
 

bottom
top

Mobility Site

WMLProgramming

Mobile Monday


bottom

IF sas di Idel Fuschini & C. P.IVA: 09659851001
Powered by Joomla!. Designed by: Free Joomla Themes, hosting. Valid XHTML and CSS.