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 November 28th, 2004, 05:55 PM
blueWarrior blueWarrior is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 blueWarrior User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
dynamic page (server-client)

hi guys, wonder if some of you have already gone through something like this.

I'm trying to develop a client-server application for wap, I have a php page that sends it's data to a remote socket server(upon submit), the server is getting the message alright but the problem occurs when I try to give as a reply a supposed to be a dynamic page

here is the code smippet in the server to which the page sends data into:

StringBuffer sb = new StringBuffer();



sb.append("<?php header(\"Content-Type: text/vnd.wap.wml\"); ?>");
sb.append("echo '<?xml version=\"1.0\"?>';");
sb.append("ob_start();");
sb.append("?>");

sb.append("<!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.3//EN' 'http://www.wapforum.org/DTD/wml13.dtd'>");



sb.append("<wml>");
sb.append("<card id='main' title='my game'>");
sb.append("<p align='center'>");
sb.append("<br/>");
sb.append("<big>");
sb.append("sample reply");
sb.append("</big>");
sb.append("</p>");
sb.append("</card>");
sb.append("</wml>");

this.socketChannel.write( charsetEncoder.encode(CharBuffer.wrap(sb.toString() + "\n" ) ) );


-----------------
expecting to display this dynamic page but I keep getting an error that says:

"The WAP site you have requested () could not be retrieved, due to some network error." - but the message has actually been sent, recieved by the server and been replied to..


Guys, do you have any idea about this? Or any suggestion, I would really appreciate it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > dynamic page (server-client)


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