Tuesday, November 27, 2012

Adding multple records through REST XML web services

Dear CakePHP experts,

I have an add() record function that is used as a REST web service via XML. The code is very simple. Something like below;

$this->Object->create();
$this->Object->save($this->request->data);

The limitation is that this function can only add one record at a time. What I want is to add multiple records at one time. The XML file can contain multiple records. So, I would like the function to be able to add multiple records via REST XML. May I know if CakePHP can be made to do this?

 I tried googling for a solution but could not find any. Can the experts here advise or provide some hints on how to start?

Thank you very much

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: