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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 13th, 2004, 07:02 PM
Maxtr0sity Maxtr0sity is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 Maxtr0sity User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
WAP Error

I'm using a program called SwitchOff which lets me shutdown my computer through WAP. I have a Sony Ericsson T610 which has WAP 2.0, the shutdown requires 1.1. SwitchOff uses a port, and I got all that figured out. Ericsson just gives me an error, but when I try an emulator, the emulator gives me a real error:

Bad WML syntax. 'Fatal Error. Ln 1, Col 1 The main XML document cannot be empty'.

What does that mean?

Reply With Quote
  #2  
Old September 13th, 2004, 07:25 PM
Maxtr0sity Maxtr0sity is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 Maxtr0sity User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
index.wml:
Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="Main" title="Switch Off">
<p align="center"><b>==Switch Off==</b><br/>
    <a href="action.wml?action=Shutdown&<!-- #AUTH# -->">ShutDown</a><br/>
    <a href="action.wml?action=Restart&<!-- #AUTH# -->">Reboot</a><br/>
    <a href="action.wml?action=Logoff&<!-- #AUTH# -->">Log Off</a><br/>
    <a href="action.wml?action=Lock&<!-- #AUTH# -->">Lock</a><br/>
    <a href="action.wml?action=Hangup&<!-- #AUTH# -->">Hangup</a><br/>
    <a href="action.wml?action=Standby&<!-- #AUTH# -->">Standby</a><br/>
    <a href="action.wml?action=Hibernate&<!-- #AUTH# -->">Hibernate</a><br/>
    <a href="action.wml?action=Quit&<!-- #AUTH# -->">Quit</a><br/>
</p>
</card>
</wml>

login.wml
Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="Login" title="Login">
<p align="left">
    <b>User</b><input name="FUser" value=""/><br/>
    <b>Password</b><input name="FPassword" value="" type ="password"/><br/>
<do type="accept" label="Ok">
    <go href="<!-- #URL# -->" method="get">
        <postfield name="User" value="$(FUser)"/>
        <postfield name="Password" value="$(FPassword)"/>
    </go>
</do>
</p>
</card>
</wml>

action.wml
Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="Main" title="Switch Off">
<p align="center"><b>==Switch Off==</b><br/>
<!-- #Message# --><br/>
    <anchor title="Home">Home<go href="/?<!-- #AUTH# -->" method="get"></go></anchor><br/>
</p>
</card>
</wml>

Reply With Quote
  #3  
Old September 15th, 2004, 01:59 PM
Maxtr0sity Maxtr0sity is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 Maxtr0sity User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Please?

Reply With Quote
  #4  
Old September 15th, 2004, 02:29 PM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
it means the document is empty.

consult the user guide for the application.....
__________________
Andy Moore << oh no it's got a blog.....
Word Press WAP Plugin with Ad Mob Advertising revenue
PHP developer
deploying ringtones, mp3 downloads and realtones
I'm a geek who's obsessed with stats and gadgets

Reply With Quote
  #5  
Old September 25th, 2004, 08:04 AM
Maxtr0sity Maxtr0sity is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 Maxtr0sity User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No User Guide came with it, can you be more specific as in where it's empty?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > WAP Error


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