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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #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
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,571 jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th 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 2 Days 9 h 29 m 36 sec
Reputation Power: 1494
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
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 | 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.

__________________

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
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,571 jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th 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 2 Days 9 h 29 m 36 sec
Reputation Power: 1494
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
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 ForumsProgramming Languages - MoreWAP 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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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