Problems with WMLScript

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
eltiel
-


Joined: 20 Jun 2006
Posts: 4

PostPosted: Tue Jun 20, 2006 4:17 pm    Post subject: Problems with WMLScript Reply with quote

I recently used Abyss for some WML development and encountered problems when trying to run WMLScript (.wmls) files.

I'm pretty sure my MIME types are configured properly as .wml files are running fine but I can't run .wmls files.

In any case, this is my MIME setting for .wmls files:

text/vnd.wap.wmlscript wmls


Any idea what's wrong?

Update: To be exact, Openwave Simulator gives me an "Unsupported Content Type" error message.
Back to top View user's profile Send private message
eltiel
-


Joined: 20 Jun 2006
Posts: 4

PostPosted: Wed Jun 21, 2006 7:46 am    Post subject: Reply with quote

Can anyone be kind enough to check it out? I would greatly appreciate it because if I can't get Abyss to work I'd have to switch to IIS, something which I'd rather not.
Back to top View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Wed Jun 21, 2006 10:05 am    Post subject: Re: Problems with WMLScript Reply with quote

eltiel wrote:
I'm pretty sure my MIME types are configured properly as .wml files are running fine but I can't run .wmls files.

In any case, this is my MIME setting for .wmls files:

text/vnd.wap.wmlscript wmls

Any idea what's wrong?


Have you added the MIME type, as it is already defined?
(not sure if it would be a problem if there was two mime types defined)

eltiel wrote:
Update: To be exact, Openwave Simulator gives me an "Unsupported Content Type" error message.


I take it you know that wmlscript is a client side language

Quote:
Before the WMLScript file reaches the wireless device, it passes through a WAP gateway that compiles the WMLScript code. The byte code resulted is then transferred to the wireless device where it is executed.

source:http://www.developershome.com/wap/wmlscript/wmlscript_tutorial.asp?page=wmlscriptCompiler

eltiel wrote:
Can anyone be kind enough to check it out? I would greatly appreciate it because if I can't get Abyss to work I'd have to switch to IIS, something which I'd rather not.


I suppose this is something only aprelium would know about...
_________________
Anthony R

Roganty
| Links-Links.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jun 21, 2006 10:55 am    Post subject: Re: Problems with WMLScript Reply with quote

eltiel,

Changing the web server will not help as .wmls files are a client side technology, i.e. the files are requested by the client (the browser) and processed by it and not by the web server.

So check your log file first and verify that the .wmls file is actually requested by the client.

Try using the tool WebBug for example to request the .wmls file URL and to check that the MIME Type is correctly included in the response http://www.cyberspyder.com/webbug.html .

What are the results of both tests?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
eltiel
-


Joined: 20 Jun 2006
Posts: 4

PostPosted: Wed Jun 21, 2006 3:25 pm    Post subject: Reply with quote

Quote:
Have you added the MIME type, as it is already defined?
(not sure if it would be a problem if there was two mime types defined)


Yeah I'm sure I added the correct MIME types because I triple-checked it. When at first it didn't work I removed all WAP-related types and re-entered them but it still didn't work.

Quote:
I take it you know that wmlscript is a client side language


Actually I'm entirely new to this WML thing, which is why I encountered problems so early in the beginning. And I just found out that wmlscript is a client side language.

Quote:
Try using the tool WebBug for example to request the .wmls file URL and to check that the MIME Type is correctly included in the response http://www.cyberspyder.com/webbug.html .


I'm pretty sure that the wmlscript was requested because I could clearly see it from my Firefox (just believe me on this). But in any case I tested the WebBug tool and it returned this:

------------
HTTP/1.1 200 OK
Content-Type: text/vnd.wap.wmlscript
....
------------

Is there anything wrong with it? I just can't see the problem no matter how many times I check.
Back to top View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Wed Jun 21, 2006 10:37 pm    Post subject: Reply with quote

Have you tried browsing the page using a normal wap phone?

from the faq on the openwave simulator
Quote:
Q: Do I need a WAP gateway?
A: No. The default configuration for the Phone Simulator V7 is in "http-direct" mode where it will run on an HTTP stack, using a local DNS lookup If you wish, you can connect the Phone Simulator to a WAP gateway by running on the WSP stack, connecting to the Openwave Developer Mobile Access Gateway (devgate2).

Source: http://developer.openwave.com/dvl/support/faqs/faq_sdk70.htm#8

Quote:
Before the WMLScript file reaches the wireless device, it passes through a WAP gateway that compiles the WMLScript code. The byte code resulted is then transferred to the wireless device where it is executed.

Source: http://www.developershome.com/wap/wmlscript/wmlscript_tutorial.asp?page=wmlscriptCompiler

*I have highlighted some of the text to show the difference between the two and why it might not work
_________________
Anthony R

Roganty
| Links-Links.co.uk
Back to top View user's profile Send private message Visit poster's website
eltiel
-


Joined: 20 Jun 2006
Posts: 4

PostPosted: Thu Jun 22, 2006 1:30 am    Post subject: Reply with quote

I'm a little confused here.. I managed to make it work but with the strangest method.

I used Openwave Simular version 4.11. Ancient, but working. No additional configurations were done, I just installed it and it ran fine.

And as far as I can see, the default setting for v4.11 was HTTP-Direct too.

Any known reason for such behaviour?
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group