PDA

View Full Version : Not able to call soap based web service in sencha



naveen1989
22 Sep 2012, 2:39 AM
Hi
can you please tell me how to call soap based web service , actually i am getting null response while using this code,


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 );
I implement the same web service but in different way i getting the response,
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196

c (http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196)an you please help me..

mitchellsimoens
24 Sep 2012, 4:36 AM
When you post code, you should be using BBCode CODE tags so that we can read the code.

Any errors when you try this? Like cross domain issues?

naveen1989
24 Sep 2012, 8:11 AM
Hi i am getting null response . But when i call same web service different way i got the response .But in need to call this web service using jquery or ajax. This is my code.

Ext.Ajax.request({
url: 'http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS/getVersion',
params: {
param1:"AAP"
},
success: function(response,options){
var text = response.responseText;
console.log("on success Command"+text);
},
failure:function(msg){
console.log("Failur"+msg);
}
});


}
});


I called same web service different way and getting response .
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911089#M29175