06-28-2012 06:43 AM
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,
Sleepwalker
06-29-2012 04:23 AM
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.