title: Generating objects in PHP using REST
body: <p>I am trying to make a decision whether I should use a REST service or a SOAP service for some web facing functions that I am producing. This decision is based on whether I can easily use the REST service in implementation. I would prefer to use REST, though I don't want to spend days coding the object model in PHP.</p>
  
  <p>The services are being developed in .NET but will be consumed mainly by PHP.</p>
  
  <p>Basically it has come down to one point: Ease of integration. Using SOAP in PHP I can use the NuSOAP library, which will generate the object model.</p>
  
  <p>However with REST I cannot seem to find a way to easily generate that model, if this is possible I would use REST services as they are easier to document and extend, and also have the JSON abilities as well.</p>
  
  <p>Can I generate an object model in PHP from an XML file/schema that I could then serialize with the REST service?</p>