Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsMobile ProgrammingMobile Programming
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

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!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

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 19th, 2006, 05: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 06:02 AM. Reason: tidied up a bit ;)

Reply With Quote
  #2  
Old April 19th, 2006, 06: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: 2490
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
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 ? | 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
  #3  
Old April 19th, 2006, 07: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, 10:51 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: 2490
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
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 07:27 AM. Reason: typo

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingMobile 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 | 
  
 


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

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