WML - Emulators work, actual phones cant access index.wml
Discuss Emulators work, actual phones cant access index.wml in the Mobile Programming forum on Dev Shed. Emulators work, actual phones cant access index.wml Mobile Programming forum discussing development for mobile technologies from basic mark-up languages
such as WML and XHTML MP to server generated code and applications. Widsets, SMS, gateway and server
set up are also covered here.
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.
Posts: 5
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 0
WML - Emulators work, actual phones cant access index.wml
Hi guys, I'm new to wml and have been on this site all week learning and now I'm trying to create a sample wap portal to send games to a phone but having issues. our server is linux and running Apache and php5. I had my friend who knows linux put all the MIME types for .jar and .jad and .wml in where it should go. (I don't know linux). I think he said he made a separate mime file for them so that's the onlything different.
anyways, the OpenWave Simulator can load the portal and actually simulates downloading the game just fine. I also tried wapsilon emulator and it can see the portal and navigate up until the download because I'm spitting out the link in a .php file and wapsilon apparently doesn't like php.
my issue is when testing on actual phones they can't even access the portal. I have no clue why. the Sanya Katana and 7400 say no result or no page displayed. the Trio says "WML content contains invalid syntax". another says "error, bad gateway. the proxy server received an invalid response from an upstream server".
I ran my index.wml through a Validator at http://www.w3schools.com/wap/wml_validate.asp and it says it's fine.
Here is the code for it just in case I'm missing something.
index.wml (I only have Games as a link for testing)
Posts: 5
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 0
i changed my index.wml and copy and pasted a tutorial "hello world" to make sure it wasn't my code... the actual phone could view wap.yahoo.com but not my basic hello world... so that tells me it has to do with the server. any ideas what to look for? the phones that can't acces it at all are Sanya Katana, 7400 i think, Trio but yet my friend with a blackberry can view it.
is there some file you have to have that detects what phone it is and does something so they can see your portal and download your game?
OpenWave is telling me
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.Bc
Posts: 9,139
Time spent in forums: 4 Months 6 Days 43 m 26 sec
Reputation Power: 2491
Can you show your current code?
The first snippet you have shown is invalid wml for the header you are using...
Is your server actually serving .wml as wml?
You may want to consider using XHTML MP if your targeted device is a blackberry or
other modern devices.
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.
__________________
Posts: 5
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 0
Here's my stripped down index.wml
my target audience is all phones basically. sanya katana, treo, etc. from what I read my buddy set up the server so the default is index.wml and he put the mime types that I found for .wml, .jad, .jar. maybe I'm missing one? can you tell me what my header should be for any random phone to view this basic index.wml?
I'll read up on xhtml mp and see if I can try that. should I switch to using wml 2.0 at least?
Posts: 5
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 0
ok, thanks for the heads up on the png. i changed them to .jpg and seem to work now. I'm a little confused as to when you put that meta tag in your <head>. If I just want to test sending them a .jar when they click a link below, when do I put the
<meta http-equiv="Content-Type" content="application/java-archive"> in? I can't put this meta in my Games.xhtml below because it won't load at all. can you look at code below and see what i need change to send a .jar when they click? thank you!
Code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>
</head>
<body>
<p>Click game below to test download<br/><br/></p>
<p><a href="games/0001.jar"><img src="images/games/0001.jpg" alt="0001" /></a></p>
<p><a href="games/0002.jar"><img src="images/games/0002.jpg" alt="0002" /></a></p> <br/>
<p><a href="index.xhtml"><img src="images/Home.jpg" alt="Home" /></a></p>
</body>
</html>