BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-12-2005, 02:47 PM   #1
Adikari
Knows Where the Search Button Is
 
Join Date: May 2005
Model: 7100T
Posts: 20
Default Is BES needed for programmatic HTTP connection

Please Login to Remove!

Hi:

IS BES needed to open HTTP connection programmatically from a J2ME mobile application? Please clarify.

Thanks,
Adikari
Offline  
Old 05-12-2005, 03:18 PM   #2
Rambler
Talking BlackBerry Encyclopedia
 
Rambler's Avatar
 
Join Date: Apr 2005
Model: 7750
Carrier: AT&T
Posts: 214
Default

Nope, if it is available, a device will utilize its own TCP stack (BB OS v3.8+) to access the internet. Some device configuration may be necessary, and you may need to specify arguments to the connection string stating whether it should use deviceside TCP or not, but MDS is not required.
Offline  
Old 05-12-2005, 03:30 PM   #3
DoomBringer
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2005
Model: 7280
Carrier: cingular, no wait, AT&T
Posts: 300
Default

You can also use the carrier specific WAP gateway. You append the WAP gateway values to the connection URL string. It is a PITA...
Offline  
Old 05-13-2005, 01:28 AM   #4
Adikari
Knows Where the Search Button Is
 
Join Date: May 2005
Model: 7100T
Posts: 20
Default

Quote:
Originally Posted by Rambler
Nope, if it is available, a device will utilize its own TCP stack (BB OS v3.8+) to access the internet. Some device configuration may be necessary, and you may need to specify arguments to the connection string stating whether it should use deviceside TCP or not, but MDS is not required.
Hi:

Thanks for your response. I am slightly confused.Could you please clarify on this.

Did you mean the device will use its own TCP / HTTP stack if MDS is unavailable? I would think that the device will not require TCP / HTTP stack if internet connectivity is off-loaded to MDS. Could you please throw some more light on this?

Thanks,
Adikari
Offline  
Old 05-13-2005, 07:01 AM   #5
sircharleswl
Knows Where the Search Button Is
 
Join Date: Apr 2005
Location: Columbus, OH
Model: 7100G
Posts: 44
Default

I had lots of problems (and still am having lots of issues) doing HTTP programming on the BB. What I have found is that you need to have a APN server under settings > options > tcp. This address depends on the carrier for example on a cingular I have to have it set to APN: wap.cingular USER: [email address] PASSWORD: CINGULAR1. On a T-mobile the APN is wap.voicestream.com no username/password.

It seems like every other attempt to connect (on the apps I write and other apps I have downloaded that us http) fail somehow.

The devices I am using are enabled with the blackberry data plans (MDS). So you should not need to use BES but maybe the settings would be different and it would be more reliable then 50% of the time. If anyone has any suggestions on how to fix my problems let me know. I alway get tunnel errors, malformed address errors, and dns errors.

The code I have had the best luck with so far is the http demo included with the JDE...but for all I know this could be the cause of my connection issues.
Offline  
Old 05-13-2005, 04:41 PM   #6
DoomBringer
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2005
Model: 7280
Carrier: cingular, no wait, AT&T
Posts: 300
Default

In general, the best, most reliable results come from using a BES MDS setup. After that, you can use the builtin TCP stack, or use the WAP Gateway.
Offline  
Old 05-14-2005, 07:06 PM   #7
Adikari
Knows Where the Search Button Is
 
Join Date: May 2005
Model: 7100T
Posts: 20
Default Problem running JDE sample HTTPDemo.java

Quote:
Originally Posted by sircharleswl
I had lots of problems (and still am having lots of issues) doing HTTP programming on the BB. What I have found is that you need to have a APN server under settings > options > tcp. This address depends on the carrier for example on a cingular I have to have it set to APN: wap.cingular USER: [email address] PASSWORD: CINGULAR1. On a T-mobile the APN is wap.voicestream.com no username/password.
Hi:

I am able to run the HTTPDemo included with the JDE 4.0 download with MDS turned on. I would like to run the HTTDemo without MDS. In that regard I would like to know the following:

How to set the APN configuration in the simulator?

Is it possible to simulate a particular wireless ervice provider connectivity (such as NexTel, T-Mobile etc.) in the simulator?

I am not getting the TCP option under the options setting for the 7780 simulator as mentioned in the FAQ on the page:
http://www.blackberryforums.com/showthread.php?t=2185

Can some one let me know how to do this.

TIA,
Adikari

Last edited by Adikari; 05-15-2005 at 10:37 AM..
Offline  
Old 05-27-2005, 09:58 AM   #8
harish_elasappa
New Member
 
Join Date: May 2005
Model: 7100
Posts: 2
Lightbulb

Hi any one out there to to tell how to code for http conection i need to connect to my server from blackberry
Offline  
Old 05-28-2005, 04:41 AM   #9
Mark Rejhon
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Default

You can't use APN inside a simulator since APN requires a carrier and the simulator does not use a real carrier -- You must test with a real BlackBerry.

Applications that work with MDS, usually do not require modification to run over the TCP/IP stack, provided end users follow the instruction in my Internet HOWTO. You will require beta testers to verify this.
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source
Offline  
Closed 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


MOSFET - IRFZ44N 55V - Transistor  for Arduino Pi  TTL picture

MOSFET - IRFZ44N 55V - Transistor for Arduino Pi TTL

$54.79



MOSFET - IRF540N 100V 33A - Transistor for Arduino Pi TT picture

MOSFET - IRF540N 100V 33A - Transistor for Arduino Pi TT

$49.72



2SA733-Q Original New NEC TO-92 Transistor picture

2SA733-Q Original New NEC TO-92 Transistor

$10.95



PNP NPN Power Transistor Assortment Kit 840pcs 24 Types Electronic Component picture

PNP NPN Power Transistor Assortment Kit 840pcs 24 Types Electronic Component

$24.21



2SA809 Original New Transistor A809 picture

2SA809 Original New Transistor A809

$10.95



2SC2240 / TRANSISTOR / TO92 / 4 PIECES (qzty) picture

2SC2240 / TRANSISTOR / TO92 / 4 PIECES (qzty)

$7.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.