New Posts New Posts RSS Feed: Entities from webservices
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Entities from webservices

 Post Reply Post Reply
Author
danjal View Drop Down
Groupie
Groupie


Joined: 20-Sep-2010
Posts: 43
Post Options Post Options   Quote danjal Quote  Post ReplyReply Direct Link To This Post Topic: Entities from webservices
    Posted: 27-May-2013 at 4:03am

We are thinking about writing a webservice in C++ on our Linux embedded system.

Is it possible in DevForce, to read data from this webservice into DevForce as entities, change these entities in our Silverlight application and return them back to the webservice for saving to the database? Is there any documentation on how to do that?

We have also been looking at BreezeJS. Is it better suited for this case?

Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 27-May-2013 at 9:43am
DevForce provides POCO "entities" for data not backed by a database. See http://drc.ideablade.com/xwiki/bin/view/Documentation/poco for more information.

Breeze can provide a JavaScript client richer access to just about any backend for which you have metadata. See http://www.breezejs.com/ for more information.
Back to Top
danjal View Drop Down
Groupie
Groupie


Joined: 20-Sep-2010
Posts: 43
Post Options Post Options   Quote danjal Quote  Post ReplyReply Direct Link To This Post Posted: 27-May-2013 at 10:01am

Thank you.

So I guess in our case, we would setup a server, running the DevForce Entity Server with some implementations of PocoServiceProvider and PocoSaveAdapter. And then these would “talk” to the webservices on our Linux embedded system.

It is not possible for the DevForce client to “talk” directly to the webservices on the Linux machine - it has to go through a DevForce Entity Server.

Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 28-May-2013 at 10:03am
That's right. With DevForce POCO support, it's your Entity Server which will talk to the web services. If your Silverlight application is already using DevForce, you can use the same Entity Server.
Back to Top
danjal View Drop Down
Groupie
Groupie


Joined: 20-Sep-2010
Posts: 43
Post Options Post Options   Quote danjal Quote  Post ReplyReply Direct Link To This Post Posted: 28-May-2013 at 10:08am
Thank you,
 
I did some tests and it works fine.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down