if i use RequestFactory am i tied to the API, meaning, will i be able to use other clients?

68 views
Skip to first unread message

Elhanan

unread,
Jul 19, 2011, 6:02:59 AM7/19/11
to google-we...@googlegroups.com
i'm not sure i asked this before but

can i combine calls from Adobe flex/air, desktop clients and so on, to my requestFactory endpoints?

the reason i ask this is to my unerstanding using requestFactory RequestContext and company, doesn't just send the object in JSON, but sends only the deltas, in half a structure, that the server side an analyze and understands.
meaning if i would like to use a json client library in adboe, or .net desktop client, just sending a json object would not be enough, or am i wrong?

Thomas Broyer

unread,
Jul 19, 2011, 6:13:31 AM7/19/11
to google-we...@googlegroups.com
You're right. RequestFactory is a protocol whose wire-format is based on JSON, just like XML-RPC or SOAP are protocols whose wire-format is based upon XML. That does not mean however that it cannot be used from non-GWT/non-Java clients.
BTW, using gwt-exporter you could probably build a JS library exposing your proxies etc. to JS code, and it could probably be used from Flex (as AS3 is an ECMAScript superset); and RequestFactory might work in .NET using J#. It at least deserves a try IMO, unless you want to provide an "open API", which would rule out RequestFactory (and GWT-RPC)

Elhanan Maayan

unread,
Jul 19, 2011, 6:18:58 AM7/19/11
to google-we...@googlegroups.com
what do you mean by open api?

btw on a similar note, what's exactly Titanium Appcelerator , seems like a every CTO's wet web dream.


On Tue, Jul 19, 2011 at 1:13 PM, Thomas Broyer <t.br...@gmail.com> wrote:
You're right. RequestFactory is a protocol whose wire-format is based on JSON, just like XML-RPC or SOAP are protocols whose wire-format is based upon XML. That does not mean however that it cannot be used from non-GWT/non-Java clients.
BTW, using gwt-exporter you could probably build a JS library exposing your proxies etc. to JS code, and it could probably be used from Flex (as AS3 is an ECMAScript superset); and RequestFactory might work in .NET using J#. It at least deserves a try IMO, unless you want to provide an "open API", which would rule out RequestFactory (and GWT-RPC)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TTggSfIN8hsJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

kim young ill

unread,
Jul 19, 2011, 7:50:20 AM7/19/11
to google-we...@googlegroups.com
is there any example how can i call RF from non-gwt or non js client ?
eg. can i call it directly from hand-written js ?

thanx

Thomas Broyer

unread,
Jul 19, 2011, 10:01:20 AM7/19/11
to google-we...@googlegroups.com


On Tuesday, July 19, 2011 12:18:58 PM UTC+2, Elhanan wrote:
what do you mean by open api?

A "web API" (similar to Twitter's API, GData API, etc.) that's clearly and entirely specified so you can build upon it in whichever language/environment you want (you "just" have to implement the specs).
RequestFactory is not formally specified, so you always run the risk that it changes in a future release of GWT (it's unlikely, but still)

btw on a similar note, what's exactly Titanium Appcelerator , seems like a every CTO's wet web dream.

An open source alternative to Adobe AIR.

Elhanan Maayan

unread,
Jul 19, 2011, 3:26:16 PM7/19/11
to google-we...@googlegroups.com
are there ANY open api's in gwt?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

Thomas Broyer

unread,
Jul 19, 2011, 6:09:24 PM7/19/11
to google-we...@googlegroups.com


On Tuesday, July 19, 2011 9:26:16 PM UTC+2, Elhanan wrote:
are there ANY open api's in gwt?

Well, GWT is either client-side, or GWT-specific (GWT-RPC, RequestFactory).

But GWT can easily consume JSON-P (using either JsonpRequestBuilder or RequestFactory), and can do anything JS can do (XMLHttpRequest/RequestBuilder, JsonUtils/AutoBeans/XMLParser)
Reply all
Reply to author
Forward
0 new messages