09-22-2012 05:58 AM
Hi
i am not able to call web service in sencha , response coming null. But when i call by this method it display response
var options = {
url: 'http://184.106.159.143:8080/FirstGroupRailApps/ser vices/RailAppsCAWS/getDestinationStationDashboard' ...
method: "GET",
params: {
param1:"AAP",
},
callback: function(options, success, response){
if (success) {
alert("Hi");
console.log(options);
console.log(response);
console.log(response.responseXML);
/*var store = new Ext.data.XmlStore({
storeId: 'getDestinationStationDashboardResponse',
autoLoad: true,
autoDestroy: true,
data: response.responseXML,
//record: 'root',
//idPath: 'ID',
//fields: ...,
//sortInfo: {
// field: 'ID',
// direction: 'DESC'
//}
});*/
} else {
alert("Bye");
for (var prop in response) {
air.trace(prop + " = " + response[prop]);
}
}
}
};
Ext.Ajax.request( options );
10-01-2012 11:01 AM
Hi Ravi,
There have been several answers to this question that you've been asking, and I've noticed a couple duplicate posts. Could you please confirm if this has been solved in this post - http://supportforums.blackberry.com/t5/Web-and-Web
The_Anomoly posted a pretty extensive example that was custom made for you. I assumed it was resolved?
10-01-2012 11:12 AM
no sir i am not able to do that using ajax or jquey..the example is running but i want to call same web service using ajax or jquery
10-01-2012 11:13 AM
What is the reason you need to use jquery to do it, when there's an example that is working already?
10-01-2012 11:17 AM
Actually i am working with backbone , BACKBONE prefer ajax or jquery for calling web service..
10-01-2012 11:18 AM
So the example The_Anomoly posted does work for you, you just prefer to do it with jQuery?
10-01-2012 11:20 AM
here someone help me he got response but i am not able to get that response..![]()
10-01-2012 11:22 AM
yes that work ..but same thing or web service i want to call with jquery...
10-01-2012 11:22 AM
If it were me, I would just use the provided example that is working and not be too concerned that it wasn't done with jQuery.
I think we need to consolidate this issue into just one forum post/thread. It's very hard to know if you're still needing help when we have so many open threads dealing with the same question.
10-01-2012 11:29 AM
Sorry sir...!!
can you please help me to call this web service using jquery or ajax so that my problem is solved
supportforums.blackberry.com/t5/Web-and-WebWorks-D
here someone help me he got response but i am not able to get that response..