BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
pushpa Offline
New Member
 
Posts: 2
Join Date: Jul 2006
Model: 7100T
Default HttpConnection Using BlackBerry - 07-26-2006, 02:17 AM

i have install JDE4.1 . i have a problem in creating an HttpConnection in an sample project DatacaptureProject.
I have an web application running on websphere (port 9080).

HttpConnection conn = null;
OutputStream out = null;
int responseCode;

try {

conn = (HttpConnection) Connector.open(url);
conn.setRequestMethod(HttpConnection.POST);
conn.setRequestProperty("User-Agent", "BlackBerry/3.2.1");
String lang = conn.getRequestProperty("Content-Language");
out = conn.openOutputStream();
out.write(dataToSend.getBytes());
out.flush();
responseCode = conn.getResponseCode();


} catch (IOException e) {
System.out.println("Exception");
}

It doesnot throw any excetion nor it transfer data to the application

Can anyone help me out

Thanx in advance
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Loganathan Offline
Knows Where the Search Button Is
 
Posts: 20
Join Date: Mar 2006
Model: 7100r
Default 07-31-2006, 07:33 AM

Did u run MDS server?. if u r checking from emulator, u have to run MDS server. after starting MDS server, u can connect server. i hope it will work...
   
Closed Thread


Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1