vendredi 2 janvier 2015

Does AmfRemotingProvider work? Cannot configure provider: "No url configured"

We are evaluating ExtJS as a front-end to replace a Flex UI. We use AMF for data communication which supposedly is supported in Sencha Complete.

Has anyone got this working? I can't even configure the endpoint. Here is what I'm doing:



Code:



Ext.direct.Manager.addProvider({
"url":"/Portal/messagebroker/amf", // URL for the HTTPEndpoint
"type":"amfremoting",
"binary":true,
"endpoint": "my-amf", // the name of the HTTPEndpoint channel as defined in the server's services-config.xml
"actions":{
"localeService":[{ // name of the destination as defined in remoting-config.xml on the server
"name":"findAll", // method name of the method to call
"len":0 // number of parameters
}]
}
});

When executed I get this in the console:

Code:



[E] Ext.direct.AmfRemotingProvider.connect(): Error initializing RemotingProvider, no url configured.Util.js?_dc=1420219965333:704 logError.js?_dc=1420219965333:186

You can see I'm setting the url in the call to addProvider.

A complete working example would be a great help. I've looked at all the docs on this subject (and the source) and I feel like I'm doing everything correctly.


Any ideas? Thanks in advance.






Does AmfRemotingProvider work? Cannot configure provider: "No url configured"

Aucun commentaire:

Enregistrer un commentaire