|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
wml works on emu, but not on phone
Hello All,
I am new to WAP programming. Please excuse me if I ask some "non-professional" questions. I have this basic basic hello wml page on my server (IIS 5 with all the MIME content enabled and ASP ISAPI configured). Source code for the wml is as follow: **************** Source Code Starts ************* <?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="WML Tutorial"> <p>Hello World</p> </card> <card id="card2" title="WML Tutorial"> <p>Welcome to the world of WML</p> </card> </wml> **************** Source Code Ends ************* This page is reside in http://www.maplelink.com/HelloWorld.wml This page works in all of my emulators (namely Nokia Mobile Browser, Sony Ericsson T610 Emulator, and the gelon.net). However, when i switch to my Sony Ericsson T616 (and tried T610), i only see a blank page. Nothing gets to display. But I'm 100% positive that my phone call access to other WAP pages. I'm not sure what is wrong with it. Would it be possible that my IIS is not setup correctly? My other thought is since the IIS is behind a firewall, so i suspect I have to open a port to allow the wml page to go through. The port 80 is already open. Does wml use another port number? Thank you very much for your help and I'm looking forward to hearing from you soon. Best Regards, Anson |
|
#2
|
||||
|
||||
|
I can access the wap page through firefox - nothing wrong with the code.
Are you sure your phone accepts wml, and not just mhtml / xhtml? Edited: Have you set the header correcty. FF just came up as normal html - you need to set the header to wml - but I dont know how to do this in IIS. Maybe mime types, sure someone here will know.
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ Last edited by jabba_29 : December 16th, 2004 at 01:45 PM. |
|
#3
|
|||
|
|||
|
I think sony ericsson T616/T610 is a WAP 2.0 enabled phone. How do i know that if it accepts wml page or not?
Also the T610 emulator (from Sony Ericsson web site) displays the page correctly without any problem. So I assumed it's not the problem of my phone. Anybody with a T616 or T610 phone, could you please try to access this page and see if it works? Many thanks. Anson |
|
#4
|
|||
|
|||
|
You have not set MIME Type correctly. It returns text/html.
I get it returned as "text/html" - which is why your phone won't show it..most emulators just take the Markup and ignore the header setting - which is why it work. Test using wget (under cygwin) for example. -- % wget http://www.maplelink.com/HelloWorld.wml --13:48:54-- http://www.maplelink.com/HelloWorld.wml => `HelloWorld.wml' Resolving www.maplelink.com... 69.196.82.129 Connecting to www.maplelink.com[69.196.82.129]:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 308 --.--K/s 13:48:57 (2.94 MB/s) - `HelloWorld.wml' saved [308] -- You need to ensure your Web Server is returning the MIME Type as text/vnd.wap.wml for your WML files. See this MS Article if using IIS.. http://support.microsoft.com/?kbid=555014 |
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
I have setup my IIS 5.0 according to the procedure in this web site.
http://www.windowsitpro.com/Web/Article/ArticleID/7856/7856.html But no luck. Still the same. I have already rebooted the IIS Server. What else should i do to enable the MIME? Quote:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > wml works on emu, but not on phone |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|