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
PerlOutputFilterHandler Apache2::AMFWebService
Allow from all
</Location>

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:

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

XMLhttp://www.apachemobilefilter.org/WS/ws.ws?type=xml&amf=BlackBerry8320/4.2.2%20Profile/MIDP-2.0%20Configuration/CLDC-1.1%20VendorID/100


 

Commenti (0)
Commenta
I tuoi dettagli:
Commento:
[b] [i] [u] [url] [quote] [code] [img]   
Security
Inserisci il codice anti-spam che vedi nell'immagine.
 

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.