MaximusW
18 Aug 2011, 6:42 AM
I'm calling a web service using the following Ext.Ajax.request:
Ext.Ajax.request({
params: {CustomerNumber:customerNumber, SurveyID:surveyId},
url: 'http://mywebservicesite.com/survey.asmx/surveyInfo',
success: function(response) {
console.log(response.responseText);
},
error: function(msg) {
console.log("Error: " + msg);
}
})
The success outputs the following:
<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://mywebservicesite.com/survey.asmx">490</int>
So my question is how do I grab the value "490" from the response.responseText.
Ext.Ajax.request({
params: {CustomerNumber:customerNumber, SurveyID:surveyId},
url: 'http://mywebservicesite.com/survey.asmx/surveyInfo',
success: function(response) {
console.log(response.responseText);
},
error: function(msg) {
console.log("Error: " + msg);
}
})
The success outputs the following:
<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://mywebservicesite.com/survey.asmx">490</int>
So my question is how do I grab the value "490" from the response.responseText.