View Full Version : XML Parameter for Rest Proxy

13 Mar 2012, 11:11 PM
Hi All,

I am using Rest Proxy in store object. As per my requirement, I need to pass xml string as a parameter to the store request, when it is loading. I could not find way to pass xml as a parameter. I have tried with Ajax Proxy as well.

Ext.define('extpoc.store.StudentsList', {
extend: 'Ext.data.Store',

proxy: {
type: 'rest',
url: 'http://serverurl/StudentRestService/getStudentData',
actionMethods: {
read: "POST"
headers: {
"Content-Type" : "text/xml",
"Accept" : "text/xml"
params: {
xmlData: '<xmlString for Parameter>'
reader: {
type: 'xml',
root: 'data',
record: 'record'

Please advise,

14 Mar 2012, 1:12 AM
Let try with extraParams instead of params.

extraParams: {
xmlData: '<xmlString for Parameter>'

14 Mar 2012, 2:28 AM
But, I need XML string as http request body. Could you please let me know how to include XML String as Request body using AJAX / Rest Proxies.

As of now, it is being sent as parameter.