Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Restful Server -> Dataobject

Go to End



Community Member, 33 Posts

30 June 2010 at 11:31am

I have a requirement where client sites need to report certain activities back to our crm (which is also built on silverstripe). I'm using RestfulServer and RestfulService to manage this communication.

Example, certain activities on the site generate billable services. These are sent to the crm system so we can invoice later and keep a record of these billable activities. The client site also needs access to their pending and overdue invoices. While I have this working to some extent it would be a lot simpler if at the client end I could 'convert' the xml response into a DataObject set before running any further actions on it. Both ends of the system have the same dataobject classes where they overlap.

Before I get started on coding it myself, I was wondering if there is an existing solution for converting the xml output of RestfulServer back to a DataObject (or DataObject set) at the other end. I can think of so many useful applications for a feature like this, surely someone has thought of it already.

Thanks in advance.