473,394 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

A simple exchange of 5 words server to mobile

153 100+
The following code makes a connection to my server as i see it in the access file.

Expand|Select|Wrap|Line Numbers
  1. String url = "*************************************************;deviceside=true;apn=wap.o2.co.uk;tunnelauthusername=o2wap;tunnelauthpassword=password";
  2.             HttpConnection connection = (HttpConnection) Connector.open(url, Connector.READ_WRITE, true);
  3.  
  4.             output = new PrintStream(connection.openOutputStream() );
  5.       output.println( "GET /SampleASP/MobileSearchResults.aspx?amount=1&0=5000354900716 HTTP/1.1" );
  6.       output.flush();
  7.         in = connection.openInputStream();
  8.        int ch;
  9.        while( ( ch = in.read() ) != -1 )
  10.       {
  11.          sb.append(in.read());
  12.        }
  13.        Dialog.alert(sb.toString());
  14.        Log.info("ERROT" + sb.toString());
  15.        in.close();
  16.        output.close();
  17.        connection.close();
  18.  
I know it's kind of working as I said about the access file and the device has had apn trouble for a few hours and i have gotten over that obstatcle now. I currently don't get an alert or a a log of the response from the server.

I have simply constructed a aspx page which Response.writes one sentence on the page for my j2me app to import.

Am I missing something?
Aug 3 '09 #1
1 2154
RedSon
5,000 Expert 4TB
Moved from mobile.
Aug 4 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jorge_Beteta | last post by:
Hello, I work for an attorney staff, so basically the whole day they are sending themselves a lot and a lot of papers (Word docs or Excell sheets). We are going to propose them the use of a...
5
by: hishamfangs | last post by:
Hi guys! I'm facing a problem and I can't quite figure it out! I have created a table on SQL Server 2000 to store call records. We get about 250,000 calls a day, and the most frequently used...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
10
by: Harsh_forC | last post by:
hello folks, here i m inserting d very simple code tat im trying to execute.. but still gettin d same error msg,.." Not enuf memory" #include<stdlib.h> #include<stdio.h> void main(void) {
8
by: Michel Posseth [MCP] | last post by:
Hi does someone has experience with this ?? i have made a lot of apps in the past that were capable of sending e-mails the server i then talked to was a Linux SMTP server and it worked great ...
0
by: Wolfgang Hercker | last post by:
I want to setup a simple web server (not a huge Apache or similar elephant) for which I can setup WAP/WML web pages for mobile phones. In other words it should be possible to add more MIME types...
1
by: Gerhard | last post by:
How can I create a new contact in exchange server from a vb.net web application?
3
by: tclancey | last post by:
Hi. I need to write an app that will poll a mailbox on an exchange server, check for certain words in the mail and repond in several different ways. I'm fine with checking text, creating...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.