Any Sencha touch2 examples about REST proxy? - rest

Can anybody please provide some examples about REST proxy in sencha touch 2~~ ?
I need to study it but didnot find any example about it

According to TDeBailleul's comment, this is a good place for you to start. I think that it's detailed enough:
http://docs.sencha.com/touch/2-0/#!/api/Ext.data.proxy.Rest
About REST vs JSONP. Essentially, REST is a specific type of Ajax.
JSONP is actually Cross-domain AJAX. They are not the same in essence.

Here's one for ExtJS - the data package is very similar between touch and extjs.
http://try.sencha.com/extjs/4.0.7/examples/restful/restful/

Related

How do I build EmberJS app with REST-like back-end?

I've not looked into BackboneJS or EmberJS in detail, but as I understand, it is possible to have BackboneJS seamlessly work with a REST back-end. Whereas EmberJS doesn't seem to have anything I can use out of the box.
Can anyone offer any advice how to achieve this with EmberJS?
If you just need a simple REST adapter without much complexity, then
https://github.com/cerebris/ember-rest
is great for the job.
I've written an article about Ember.js on InfoQ, that goes through the basics. The article used Ember 0.9.5, so not everything will be working with the newest Ember 1.0-pre release.
It goes through the basic structure of an Ember-app as well as the very basics with Ember Data.
http://www.infoq.com/articles/emberjs
I think you're looking for something like Ember-rails
https://github.com/emberjs/ember-rails

Problems understanding the URL implementation of a REST Proxy in ExtJS 4

I am a newbie with ExtJS 4. I am having problems understanding the implmentation for the "/" syntax for the URL in a Rest Proxy.
For example when using a REST type Proxy the URL config in many examples is just "/users".
I'm confused by this and can't seem to understand it's implmentation. I'm expecting to see an actual executable ".php" or such URL which I have used successfully in an Ajax Proxy. In other examples I see "app.php/users". I understand the php file which I expect but the "/users" part I don't understand. I've spent a few hours trying to find the answer for this but nothing I found has defined it for me.
I'm sure the explanation is very simple.
Thank You in Advance.
For the full explanation you should study up on REST.
Something like /users is standard usage for a REST HTTP request, it is not just ExtJS implementation. Specifically to answer your question, the reason no file extension is included is to denote that this is a logical url, i.e. there is not a physical users.xml file necessarily, instead it is dynamically generated using RESTful webservices.
In other words, you would need to set-up a RESTful webservice architecture to use this ExtJS proxy configuration.
The link above and this tutorial on implementing RESTful webservices with Java helped me alot.
EDIT:
I found a better tutorial (I think) here, also showing implementations in something other than Java.

Kynetx and SOAP

I have been searching the web and Kynetx.com for any documetation or examples of how to use SOAP with KRL but have come up with nothing. Sadly the web services I am working with has a lot of SOAP rather then REST. If there is any links of documentation or examples of doing SOAP with KRL I would be really pleased if you would pass that on to me, i'm not even sure where to start, thanks.
There is no SOAP support in KRL. The best way to get these APIs into KRL is to create a REST-SOAP shim that translates between the two.

Client Program for RestFul WebService?

HI, i Have developed a restful webservice sample application, i want to create a client for the webservice, can anyone tell me how to do this? i was used Rest WebService explorer, but i want to know how to create a client and call the methods ?
Please help ?
Since REST is talking HTTP and is language-agnostic, you can use most any language/tooling available. Of course the simplest test bed available to you is the browser itself.
Have a look at these tools:
http://code.google.com/p/rest-client/
https://github.com/cloudhead/http-console
https://tcpmon.dev.java.net/ (proxying is helpful for debugging)
You can also use Resty, which should make accessing your webservices very easy.
https://github.com/beders/Resty
(see Readme for examples)

How to set a RESTful call?

I want to ask a question about the RESTful. I want to click a URL and make a RESTful call. However, I don't know what kind of information do I need to send with the URL, cookies?http header? Can anyone help me? Thank you.
If you use jQuery, you can use proper RESTful HTTP requests (PUT/DELETE as well as GET/POST). Have a look at jQuery.ajax() for details.
I'd also suggest you get a bit more familiar with the principles behind REST. The O'Reilly Restful Web Services book is quite a good one for that, although some of the framework specific details are a little out of date.
It's not really possible to make Restfull api calls with a browser. Especially not with links.
With links, you only can make GET requests. To make POST requests, you would have to use a form.
PUT and DELETE aren't even possible at all.
If you are using windows, you can look at HTTP Fiddler 2, which can build arbitrary requests.
Further more, it depends on the API itself what you should send. We cannot help you unless you give some more details about what kind of request you want to make.