Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 5
Registered: ‎08-15-2008
My Device: Not Specified
Accepted Solution

Help with WAP2 connection through carrier WAP2 gateway?

I know WAP1 connection can be opened by appending wap gateway parameters like following:

 

(HttpConnection)Connector.open(“http://wap.google.com;
  WAPGatewayIP=127.0.0.1;WAPGatewayAPN=carrier.com.gprs”);

 

How to open a WAP2 connection through WAP2 gateway?

As I know, WAP1 gateway use WTP over UDP, but WAP2 gateway use WP-TCP instead. They are quite different protocol with different port. Also there is a separate service record for WAP2 like "T-mobile WAP2.0 transport" besides WAP1 service record.

 

Your help is greatly appreciated.

 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Help with WAP2 connection through carrier WAP2 gateway?

[ Edited ]

Removed

Message Edited by MSohm on 01-15-2009 09:20 AM
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 5
Registered: ‎08-15-2008
My Device: Not Specified

Re: Help with WAP2 connection through carrier WAP2 gateway?

Mark, thank you for the quick answerSmiley Happy BTW, does RIM have a plan to support this in near future, like later version of OS4.5 or OS 4.6? Our target carrier has a WAP2 gateway, and it could be much better if our service can go through that gateway instead of a WAP1 gateway.
BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Help with WAP2 connection through carrier WAP2 gateway?

I have an update to this post.  It is not possible to use Connector.open with WAP gateway parameters to connect to a WAP 2.0 Gateway, however it can be done.  First you'll need to find the WAP Gateway 2.0 service record (search for the WPTCP Cid) and retrieve its Uid.  You can then use this Uid to make the connection over the WAP 2.0 Gateway by adding ";ConnectionUID=" + uid to the end of the URL used in the Connector.open call.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 72
Registered: ‎08-28-2008
My Device: Not Specified

Re: Help with WAP2 connection through carrier WAP2 gateway?

Hi,


Could you please explain the use of ";ConnectionUID=" + uid to the end of URL.

 

 

Thanks in advance

Regards,
Vijay Saini.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish
BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Help with WAP2 connection through carrier WAP2 gateway?

This parameter points to the UID of a service record of a service book.  The connection can then be made over the specified route, which in this case is a WAP 2.0 connection.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 14
Registered: ‎08-18-2008
My Device: Not Specified

Re: Help with WAP2 connection through carrier WAP2 gateway?

Will the ConnectionUID parameter work with 4.0+? Is there some restriction on OS version for the usage of this parameter?
BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Help with WAP2 connection through carrier WAP2 gateway?

Support for WAP 2.0 Gateways was added in BlackBerry handheld software version 4.1.0.  So this is not supported on 4.0.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 2
Registered: ‎11-03-2008
My Device: Not Specified

Re: Help with WAP2 connection through carrier WAP2 gateway?

I am having trouble connecting through WAP2 gateway using a socket connection

on some devices. Making a http connection on the same device works fine over

WAP2. Is this expected?

 

-Rosco

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Help with WAP2 connection through carrier WAP2 gateway?

This can vary by carrier.  Please verify that your carrier allows socket connections over their WAP 2.0 gateway.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker