PDA

View Full Version : [4.2.0] Soap Proxy - name undefined



Juel
4 Apr 2013, 2:16 AM
Hi,

I am trying to use Ext.data.soap.Proxy in Ext 4.2.0, however, I always run into the same error message:

Cannot call method 'substring' of undefined in ext-all-debug 5043 where "name" is undefined.
I developed my application similar to this example (just downloaded the zip, and added the extjs folder containing 4.2.0), which gives me exactly the same error.

https://github.com/kazmiekr/ExtJS-SOAP-Sample

The store itself is defined as follows (taken from the example above):



Ext.define('SampleApp.store.People', {
extend:'Ext.data.Store',
model:'SampleApp.model.Person',
autoLoad:true,
proxy: {
type: 'soap',
url: '/cfusion/samples/People.cfc',
api: {
create: 'createPerson',
read: 'getPeople',
update: 'updatePerson',
destroy: 'deletePerson'
},
operationParam: 'operation',
targetNamespace: 'http://samples/xsd',
reader: {
type: 'soap',
record: 'ns|return',
namespace: 'ns'
}
}
});


Thanks, Juel

evant
4 Apr 2013, 2:43 AM
Not a bug, this works in the examples, moving to help.

Juel
4 Apr 2013, 3:22 AM
For me it doesn't work in the examples as well.
I downloaded the Open Source version of 4.2.0, extracted the zip, opened examples/grid/soap-grid.html
I get the same error using latest chrome or firefox versions.

However, the soap-grid example on the sencha-website seems not to have this problem.

evant
4 Apr 2013, 3:24 AM
The soap proxy is part of the enterprise build, which is part of Sencha Complete: https://www.sencha.com/store/sencha-complete