SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old December 16th, 2004, 01:04 PM
Graphite Graphite is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 Graphite User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old December 16th, 2004, 01:43 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,667 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 4 Days 5 h 1 m 49 sec
Reputation Power: 1618
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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.

Reply With Quote
  #3  
Old December 17th, 2004, 08:36 AM
Graphite Graphite is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 Graphite User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old December 19th, 2004, 07:59 AM
dazzler dazzler is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 dazzler User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #5  
Old December 20th, 2004, 03:18 AM
flyinghigh flyinghigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 47 flyinghigh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 12 sec
Reputation Power: 4
Quote:
Originally Posted by Graphite
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?
WAP 2.0 devices still support WML.

Reply With Quote
  #6  
Old December 20th, 2004, 09:01 AM
Graphite Graphite is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 Graphite User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:
Originally Posted by dazzler
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.

.....

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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > wml works on emu, but not on phone


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway