Helpful Information
 
 
Category: Mobile Programming
Where is WMLScript compiled?

Books I have been reading, as well as sites I have been visiting tell me that the .wmls file containing the WMLScript file get compiled before they are transmitted...and other such vague things. I need to know WHERE EXACTLY does the wmls file get compiled. Some say it is at the WAP gateway. In that case is a WAP Gateway a MUST in every setup...or is it only for HTTP-WAP conversion?!?!

Must I answer my own question?? Well...please correct me if I am wrong...but...the WMLS file is compiled into binary code by the WAP gateway, and it is this binary code(.wmlsc) file that is passed on to the client. The Gateway is MUST in every setup!!!!! ;-)

Are there no standalone utilities for this ? It is going to make local testing a little more difficult if I have to set up a "real" wap server :-(

Hey Peter,
I suppose you are referring to the WAP gateway doing the compiling of the WMLScript?!?! Well..for local testing, the emulator takes care of it. That is, it will do the compiling...in place of the gateway.

You can also compile your .wmls/.wml to .wmlsc/wmlc and distribute the compiled version. Advantages are: 1.) Faster. It's smaller leaving your server. It doesn't get compiled by the gateway, just passed on to the phone. 2.) More control for testing. If the gateways compile your source it's possable to have problems because different gateways will compile that source differently. Dissadvantage: When the next rev comes, you might have to recompile everything. -SF










privacy (GDPR)