Thank you for visiting the BlackBerry Support Community Forums.
- Kevin Michaluk, Founder, CrackBerry.com
05-05-2013 04:07 AM
I'm newbie on workingwith webworks. I have to get data from web service. How can I connect on this service and parse it. There is a tutoriel that can help me to start with it.
Can any one advice me how can I start to work with webworks on blackberry 10
Thanks for any help
Solved! Go to Solution.
05-05-2013 11:00 AM
In general you need to use an AJAX call to the server
It really depends on what the server returns as to how easy the information is to digest
JQuery provides a simple interface and returns easy to use information
If you're dealing with XML things can get complicated depending on namespace
If you look at the raw XML and it goes something like fred:name you will have issues that require a SAX implementation - JSON is dead easy if you get that though (nothing too confusing there)
If using an external data source go for JSON if you have the choice
As far as examples go - just look up JQuery Ajax [JSON / XML] and you'll get where you're going rapidly
SAX is a LOT harder owing to the namespace - the most common is Dublin and even XML without namespace is not simple to handle so avoid it if you can
05-10-2013 03:15 PM