Re: All *please read*: Generated WML problem...


[ Follow Ups ] [ Post Followup ] [ Mobic discussion group ] [ FAQ ]

Posted by Martin Loman on December 13, 1999 at 15:46:43:

In Reply to: All *please read*: Generated WML problem... posted by Haakon on December 05, 1999 at 15:49:58:

Hi Haakon!

You must make sure that the returned content type is text/vnd.wap.wml and not text/html.
If your SQL-procedure returns text/html the file will show in your web browser (and not in Nokias toolkit) but if it is text/..wml then the webrowser will try to download the file (and Nokias toolkit will show it).
To set the content type add a line of code to your file.
In ASP it would be Response.ContentType("text/vnd.wap.wml")

Good luck
/Martin

: I have made a SQL procedure which generates some WML code on-the-fly. When I run it in my web-broswer in the address field it shows up just fine, but when I try to use the same
: link with the NOKIA WAP Toolkit, it fails with this message:
: loadNewContent: (http://blabla.com/generate_wml)
: Socket closed

: PLEASE give me some ideas to what can be the problem. Have I missed out on something - why can't it 'execute' my generate SQL script? Again everything works with Internet Explorer (and WinWAP), but not with the NOKIA or Ericson toolkit. I can however access ALL static (non-generated) wml pages I have made, and other sites with the toolkit. Thanks!!




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Mobic discussion group ] [ FAQ ]