|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > dynamic page (server-client) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|