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

New Contributor
Posts: 3
Registered: ‎06-28-2012
My Device: Developer BB 9800 v6.0.0246
My Carrier: Vodafone

BB Secure Webservices

Hello everybody,


I am developing a Java application on a BB 9800 v6.0.0.246 that consumes JSR-172 webservices at the moment, with stubs generated from Java ME SDK wscompile.


Http webservices are working fine but should now be changed to secure these webservices with https.

As the auto-generation of stubs will not work for https webservices, I am looking for the best method to implement secure webservices at the moment.


I read through the forums and found several methods that might work:


1.) Use Ksoap to consume https webservices

2.) Use Ksoap2 for Android to consume https webservices

3.) Access the webservices only through a BB Enterprise Server as proxy and let it encrypt the connection

4.) Start with a https connection factory and consume the webservices from scratch


Most of the information I found is already a few years old. Can anybody point me in the right direction, what is the most efficient way to get working https webservices with Java on a BB ?


Thanks for any help and info!


Kind regards,







Posts: 133
Registered: ‎04-30-2010
My Device: Curve 8520
My Carrier: T-Mobile

Re: BB Secure Webservices

You need to be able to connect to the wsdl for your web services via a none secure http address to generate your stubs.  But once you have done that, from my experience, you will be able to access the web services themselves via https using JSR-172.