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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 19th, 2006, 04:16 AM
Themhz Themhz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 Themhz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 45 sec
Reputation Power: 0
WML headers

Hi I build a wap site, and it is supposed to be WML 1.1 compatible.
So the first question is how can I validate my code that it is WML 1.1 and not another version of WML.
The Second question is .What are those headers that appear in my code when I view source in an emulator.
And why should I user the
<?xml version="1.0" encoding="iso-8859-7"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">

???
I will show you a sample.

Code:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 18 Apr 2006 13:44:34 GMT
Cache-Control: no-cache
X-Powered-By: ASP.NET
Pragma: no-cache
Cache-Control: no-cache,must-revalidate
Connection: Keep-Alive
Content-Length: 1327
Content-Type: text/vnd.wap.wml
Expires: Tue, 18 Apr 2006 13:44:34 GMT
Cache-control: private
--[ HEADER END ]------

xml Code:
Original - xml Code
  1. <?xml version="1.0" encoding="iso-8859-7"?>
  2. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"  "http://www.wapforum.org/DTD/wml_1.1.xml">
  3. <wml title="TIM Weather" >
  4. <card title="TIM Plus - Weather">
  5.  
  6. <p align="left"><img src="Images/imaginelogo_w98.gif" alt="BlaBla"/><br/><img src="Images/ BlaBla _w98.gif" alt="weather logo"/></p>
  7. <p>
  8.  <anchor>Name1<go href='Greece.asp' /></anchor>&nbsp;<img src="Images/word_free.gif" alt="free"/>
  9. <br/>
  10. <anchor> Name1<go href=asdsadsad_city.asp?areas_maps=-&areas_id=141'/></anchor>&nbsp;<img src="Images/word_hot.gif" alt="hot"/>
  11. <br/>
  12. <anchor> Name1<go href="asdsadsadad.asp"/></anchor>
  13. <br/>
  14. <anchor> Name2<go href="asdsadsadsa.asp"/></anchor>
  15. <br/>
  16. <anchor> Name3<go href="city_asdasdsa.asp"/></anchor>
  17. <br/>
  18. <anchor> Name4<go href="asdasdsad.asp"/></anchor>
  19. <br/>
  20. <anchor> Name5<go href="asdsadsa.asp"/></anchor>
  21. <br/>
  22. <anchor Name6<go href="asdsadsa_areas.asp"/></anchor>
  23. <br/>
  24. <anchor> Name7<go href="http://45.1.1.43:8888/asdfds.aspx"/></anchor>
  25. <br/>
  26. <anchor> Name8<go href="asdsadsa.asp"/></anchor>
  27. <br/>
  28. <anchor> Name9<go href="asdsadsad.asp"/></anchor>
  29. <br/>
  30. <anchor> Name10<go href="contact.asp"/></anchor>
  31. <br/><br/>
  32. <anchor> Name11<go href="http://mysite.com/news"/></anchor>
  33. <br/>
  34. <anchor>HOME<go href="http://wap"/></anchor>
  35. </p>
  36. </card>
  37. </wml>


Thanx

Last edited by jabba_29 : April 19th, 2006 at 05:02 AM. Reason: tidied up a bit ;)

Reply With Quote
  #2  
Old April 19th, 2006, 05: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,613 jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th 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 3 Days 5 h 32 m 57 sec
Reputation Power: 1550
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
Hi,
Quote:
So the first question is how can I validate my code that it is WML 1.1 and not another version of WML.
You can use online validators: here is one, and here is another. Actually w3schools has some pretty good information on this, including http://www.w3schools.com/wap/wml_reference.asp.
Code:
HTTP/1.1 200 OK // It was a request and it was OK
Server: Microsoft-IIS/5.0 // your hosts server
Date: Tue, 18 Apr 2006 13:44:34 GMT // date
Cache-Control: no-cache // the page won't cache
X-Powered-By: ASP.NET // software you are using 
Pragma: no-cache // the page won't cache
Cache-Control: no-cache,must-revalidate // the page won't cache
Connection: Keep-Alive // server setting
Content-Length: 1327 // size of the fiel
Content-Type: text/vnd.wap.wml // sending as wap content type
Expires: Tue, 18 Apr 2006 13:44:34 GMT // expires
Cache-control: private // again caching thing, more suitable for IE, but OK
There was a question posted in the PHP forums the other day and someone gave quite a good explaination about what everything meant, can't find it off-hand.


As to your last question: because you just should
But in all seriousness, it enables the browser / device to understand what it is downloading and can interprete it accordingly.

Check the resources link in my signature, there are some pretty useful links in it.

Hope that helps.
__________________
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
  #3  
Old April 19th, 2006, 06:34 AM
Themhz Themhz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 Themhz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 45 sec
Reputation Power: 0
thanx

ok thanks .
One last thing .. when i validate my WML code i validate only the content between the <wml>...</wml> tags
not the header info and the <XML> that tells the browser that the content is about wml correct??

Reply With Quote
  #4  
Old April 19th, 2006, 09:51 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,613 jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th 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 3 Days 5 h 32 m 57 sec
Reputation Power: 1550
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
Your page should be
PHP Code:
<?xml .....
</
wml>
The xml declaration is an important part of the process.

Last edited by jabba_29 : June 18th, 2006 at 06:27 AM. Reason: typo

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > WML headers


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 2 hosted by Hostway