View Full Version : Ext.AJAX is not working in 4.1

7 May 2012, 2:59 AM
Hi All,

I have a method to call a server code using AJAX.request method and it is working in Ext JS 4.0.7. When I change my application into Ext JS 4.1. This AJAX.request method is not working.

It raises http error '415' (Unsupported media type)

callService: function(){
var xmlString = '<?xml version...>.....';
Ext.Ajax.timeout = 90000;
Ext.Ajax.method = 'POST';
url: serverurl,
cors: true,
method: 'POST',
aync: true,
xmlData: xmlString,
headers: {
'Content-Type': 'text/xml'
scope: this,
success: function(response){
console.log("Got Success response");
failure: function(response){
console.log("Got Error response");

There is no script errors.
xmlString is sample code, remaining are same as my code

2 Sep 2012, 10:33 PM
I'm facing the same problem.. any solution for this?

2 Sep 2012, 11:19 PM
xmlData is depreciated, use rawData as per docs... xmlData will be completely removed in 5.0

type xmlData into 4.1 doc search and make sure 'depreciated' is ticked in 'show' menu on right hand side of docs.