locked
Problems using ASP.NET to generate WML RRS feed

  • Question

  • User1216706997 posted

    I'm having a real problem generating pure WML content using ASP.NET 1.1. The page works wonderfully in the OpenWave simulator, but put it onto a real device and it doesnt work. I've seen this on more then one device, so I can only assume that ASP is generating something that I don't want and is causing problems.

    My code is all embedded ASP and it only used to set the content type and in some cases the caching behavior. Here is my code for a super simple test page.

    <% Response.ContentType = ("text/vnd.wap.wml") %>
    <?xml version="1.0" ?>
    <WML>
    <CARD>
    User ID:
    </CARD>
    </WML>

    Like I said, super simple. However when I go to display it on my device ( a BlackBerry) I get this error:

    wml not well-formed or valid
    Line: 7
    Column:9
    The content of element "card" must match "(onevent*,timer?(doip)*)"

    WHAT THE HECK IS THIS? I'm not doing ANYTHING with a timer. There is ntohing like that in my code. What is ASP.NET doing and how can I stop it?

    Bill

    Thursday, January 5, 2006 11:48 PM

All replies

  • User1625204979 posted

    It might be that the browser of BlackBerry has different document formatting requirement for WML.  My guess is you can try putting some other valid content besides the plain text within the <card> element.

    e.g.
    <% Response.ContentType = ("text/vnd.wap.wml") %>
    <?xml version="1.0" ?>
    <WML>
    <CARD ID="card1" title="Test">
    <P mode="wrap">
    User ID:
    </P>
    </CARD>
    </WML>

    Wednesday, January 18, 2006 8:47 PM