Now we are starting to develop Blackberry part of our tutorial.
We will use following development IDE & tools during our tutorial.
- Eclipse 3.4.1 with Blackberry Plugin (Download)
- BlackBerry Email and MDS Services Simulator Package v4.1.4 (Download)
- Sun Java (TM) Wireless Toolkit 2.5.2_01 for CLDC (Download)
Check your webservice is correct or not using browser. Type the webservice url to address field. Webservice url seems like that : http://<hostname>/<nsf db file path>/<web service name>?wsdl
My webservice url is http://gmlfbulut.bestcoder.net/searchpeople.nsf/SearchPeople?wsdl
- Open the Sun Java Wireless Toolkit application.
- Select Stub Generator and click to Launch button.
- Type necessary information to Dialog
- WSDL Filename or URL : Your WSDL URL –> http://<hostname>/<nsf db file path>/<web service name>?wsdl
- Output Path : Location for generated files. Select a directory. For example : C:\SearchPeople
- Output Package : Type the package name for your java files. For example : com.blackberry.searchpeople
- CLDC Version : Select CLDC 1.1 option. I don’t know exactly what is it 🙂
- Select OK button to finish process.
If you got an error, please check this list to solve problem :
- Check the domino server is running 🙂 just kidding …
- Check HTTP Task on your server is running
- Type on console “show tasks”. On the list “HTTP Server” “Listen for connect requests on TCP Port : 80”
- Check server configuration (I mentioned about in Part I)
- Check Webservice Consumer codes
If everything is OK, Stub Generator shows a dialogbox like this. “Stub Generation Complete”
After that close Stub Generator application. Goto C:\SearchPeople directory. Look at files. You will see 8 files. We need java files to begin our blackberry application development.
Now open your Eclipse for Blackberry application.
Now we will create new Blackberry Project. Click to File –> New –> Project
Expand Blackberry category, select Blackberry Project and click to Next button.
Type a name for our project. I choose “SearchPeople” for my project’s name. And click to Finish button.
Our project looks like this from Package Explorer.
Now we need to add our java files to project.
Create a Package under src folder with the name “com.blackberry.searchpeople”
- Right mouse click on the src folder.
- Click to New –> Package
- Name : com.blackberry.searchpeople
- Click to Finish button.
Now add java source files to this package
- Right mouse click on the package “com.blackberry.searchpeople”
- Click to Import
- Select General –> FileSystem category
- From Directory : C:\SearchPeople\com\blackberry\searchpeople
- Select *.Java files and click to Finish button.
Now our application looks like this.
Hi Ferhat,
I am following your articles and it is very helpful. Looking forward to the next set of articles on Blackberry development.
Whether you will discuss about the PUSH and synchronizing technique on Blackberry development.
I think, i will publish next part of this tutorial today or tomorrow. I didn’t used PUSH technology i mean i didn’t development on this technology yet but i can …
I don’t understand what is “synchronizing technique” ? Could you please explain ?
Hi,
thanks for your tutorial .
I am trying to generate a wsdl from a secure site ( https ) and getting error of certification .
I check in the certification in the WTK and it exsits .
any idea ?
Thanks
Anthony
I didn’t try to generate stub files using https. I don’t know why but i will try it. I will write the results in a short time …
Thanks
Ferhat
Hi Ferhat Bulut,
Did you get a chance to publish the 3rd part for blackberry development for domino? i loved your post.
Thanks,
rharan.
Hi.Ferhat Bulut.Thanks for your tutorial.