Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsMobile ProgrammingMobile Programming
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.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

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:
  #1  
Old April 28th, 2008, 06:38 PM
chiefiee chiefiee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 5 chiefiee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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)
Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">

<wml>

	<card id="Home" title="Fusion Mobile">  
        <img align="left" src="images/logo.png" alt="FusionMobile" /> 
        <p>
        	
            <table columns="2">                     
               	<tr>
                  <td> <img src="images/Games.png" alt="games" /> </td>
                  <td> <anchor> <go href="Games.wml#games"/>games </anchor> </td>                  
                </tr>
                <tr>
                  <td> <img src="images/Ringtones.png" alt="Ringtones" /> </td>
                  <td>Ringtones</td>                  
                </tr>
                <tr>
                  <td> <img src="images/Wallpaper.png" alt="Wallpaper" /> </td>
                  <td>Wallpaper</td>                  
                </tr>               
          	</table>         
    	</p>
  	</card>	
    
</wml>

Reply With Quote
  #2  
Old April 28th, 2008, 08:47 PM
chiefiee chiefiee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 5 chiefiee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #3  
Old April 30th, 2008, 01:26 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Retired
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 9,139 jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)  Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 6 Days 43 m 26 sec
Reputation Power: 2491
Send a message via AIM to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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.
__________________

Cheers,
Jamie

>_ skiFFie ? | Twitter

__________________

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.

__________________

Reply With Quote
  #4  
Old April 30th, 2008, 06:49 AM
chiefiee chiefiee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 5 chiefiee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

index.wml
Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">

<wml>

	<card id="Home" title="Test">  
        <img align="left" src="images/logo.png" alt="Test" /> <br/>
        <p>
        	<br/><img src="images/Games.png" alt="games" /> <a href="Games.wml#games">Games</a>  <br/>            
            
            <img src="images/Ringtones.png" alt="Ringtones" />  Ringtones  <br/>                            
            <img src="images/Wallpaper.png" alt="Wallpaper" /> Wallpaper <br/>                 
    	</p>
  	</card>	
    
</wml>

Reply With Quote
  #5  
Old April 30th, 2008, 09:42 AM
chiefiee chiefiee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 5 chiefiee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 17 sec
Reputation Power: 0
I changed it to xhtml mp. let me know if this looks correct now for all phones to see

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>xHTML MP test</title>
  </head>

  <body>
	<p><img src="images/logo.png" alt="logo" /></p>
    <p><img src="images/Games.png" alt="Games" /><a href="Games.xhtml">Games</a></p>
    <p><img src="images/Ringtones.png" alt="Ringtones" />Ringtones</p>
    <p><img src="images/Wallpaper.png" alt="Games" />Wallpaper</p>
  </body>
</html>  

Reply With Quote
  #6  
Old May 1st, 2008, 03:52 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Retired
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 9,139 jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)  Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 6 Days 43 m 26 sec
Reputation Power: 2491
Send a message via AIM to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
You should have the following in the <head> of your document..
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Change the content to whatever you are sending the content as..

There are validators on the web that you can test pages offline as well as online(i.e. direct input) - try some of them out.

See the WAP FAQs for more details on this..

Good luck. Making progress

You may want to investigate png support for your targeted devices

Last edited by jabba_29 : May 1st, 2008 at 03:56 AM.

Reply With Quote
  #7  
Old May 2nd, 2008, 02:16 PM
chiefiee chiefiee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 5 chiefiee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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>

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingMobile Programming > WML - Emulators work, actual phones cant access index.wml


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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap