04-15-2011 07:07 AM
Could anybody tell me how to use RESTFul WebService with JSON method in Blackberry widget application to send and recieve object.I have an application where I need to send some form data(search criteria) as an object from my BB mobile which is recieved at the server end using RESTFul method ,compare the criteria from database and send result back as an JSON object that is displayed on my result screen of mobile.I am using XMLHttp Request method to connect to server.Here at forum I found an Sample code as "Lab Mobile engineer" that is similar to my requirement but it uses SOAP Web Service.
Thanks in Advance.
04-15-2011 07:27 AM
Have you had a chance to check out the below thread that? We've sticky'd it at the top of the forum..
I think it will answer a lot of your questions
04-15-2011 07:35 AM
Yes I followed that but this example is using SOAP Web service but I wanna to use RESTful Web SErvice and also compare and fetch data from server database which need to be send using JSON Object to my mobile.
Thanks for reply
04-15-2011 08:55 AM
The example does show soap, but by using some of the settings on the ASP.NET web service it is actually being called restuflly.
Essentially the steps are the same:
1) Create a Restful webservice that returns its data as JSON
2) Call the web service URL via AJAX
4) Run your logic locally
04-18-2011 03:04 AM
and how to send multiple data or object from the mobile app(client side ) to RESTFul web method?with URL or have any other mean?Could you please send me a sample code if u have?
As a newbie i need ltl assistance, thanx.
04-18-2011 07:27 AM
You have various options.. you can expand the call out into multiple parameters in a GET call to the service, or you can post down list data as part of a POST call. You can even assemble JSON text and send it down as part of a POST. It all comes down to how you want your RESTful service to work.
04-29-2011 02:00 AM
Thanks again for reply but i am still stuck over there.
Is it possible to send JSON Object using XMLHttpRequest POST method,At server end I am using RESTFul webservice with RESTEasy framework and default jettinson mapped technique.If it is possible please reply with sample code..
Actually when I try to do run my code using above stated method the simulator displays nothing,although @ browser it diplays the JSON String well.