PDA

View Full Version : how to call soap based web service in sencha..?



naveen1989
23 Sep 2012, 6:04 AM
hi

can you please tell me how to call soap based web service in sencha..?

mitchellsimoens
25 Sep 2012, 8:43 AM
You are limited to doing Ajax requests and parsing the response yourself. Be aware of cross domain issue if you are sending against another domain

naveen1989
25 Sep 2012, 2:46 PM
i am getting response null

using this method
var options = {
url: 'http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS/getDestinationStationDashboard',
method: "POST",
params: {
param1:"AAP",

},
callback: function(options, success, response){
if (success) {
alert("Hi");
console.log(response);
console.log(response.responseXML);
var store = new Ext.data.XmlStore({
storeId: 'getDestinationStationDashboardResponse',//what is storeID?
autoLoad: true,
autoDestroy: true,
data: response.responseXML,
//record: 'root',
//idPath: 'ID',//ID path
//fields: ...,
//sortInfo: {
// field: 'ID',
// direction: 'DESC'
//}
});
} else {
alert("Bye");
for (var prop in response) {
air.trace(prop + " = " + response[prop]);
}
}
}
};
Ext.Ajax.request( options );