
September 5th, 2007, 03:43 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 1
Time spent in forums: 43 m 34 sec
Reputation Power: 0
|
|
|
WML - Problem while downloading jar file from WML site
Hello friends,
I'm new for WML programming.
I created one WML site from which user can download one application.
Here is code for my site.
Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="Card1" title="Demo Site. ">
<p>
Welcome to Demo site.
<anchor>Download application
<go href="http://localhost/wml_Site/Demo_app.jar"/>
</anchor>
</p>
</card>
</wml>
I made following settings in my IIS.
Code:
Here is instructions on adding common WAP MIME types:
1) Go to Start, Programs, Administrative Tools, Internet Services Manager.
2) Right-click the machine name, and select Properties.
3) Click Computer MIME Map, then click Edit to list the existing MIME types. Add the following MIME types by clicking New Type and typing the following information:
-For file extension .wml, type "text/vnd.wap.wml" (without the quotes).
-For file extension .wmlc, type "application/vnd.wap.wmlc" (without the quotes).
i'm testing this site on one WAP simulator. I'm typing in simulator's address bar as "http://localhost/wml_site/temp.wml"
IT opens site on simulator device but when i select "Download" option, it gives error as resource not found.
What's wrong?
Please help me in this.
Thanks
|