Hi Laurent,

Below is a sample of my request to Nuxeo Server.

The metadata 'actualite:lien' is an complex with two string
parameters (label and url).

methode : Document.Create
array (
  'http' => 
  array (
    'method' => 'POST',
    'header' => 'Authorization: Basic
cGpfebmlj211evz5f1rplcnR5MTI=
Content-Type: application/json+nxrequest;',
    'content' =>
'{"params":{"type":"Actualite","name":"test","properties
":"actualite:lien=[{label:title1,url:description1}]"},"input
":"
doc:\\/services-academiques-domain\\/division-5236\\/Actuali
te "}',
    'max_redirects' => '0',
    'ignore_errors' => true,
  ),
)

array (
  0 => 'HTTP/1.1 500 Internal Server Error',
  1 => 'Server: Apache-Coyote/1.1',
  2 => 'Set-Cookie:
JSESSIONID=E6B1C3445D2F75BDCB82BB6E16D1F74D.nuxeo;
Path=/nuxeo',
  3 => 'Content-Type: application/json+nxentity',
  4 => 'Date: Tue, 27 Mar 2012 12:34:29 GMT',
  5 => 'Connection: close',
)
Data : array (
  'entity-type' => 'exception',
  'type' => 'org.nuxeo.ecm.automation.OperationException',
  'status' => '500',
  'message' => 'Failed to execute operation:
Document.Create',
  'stack' => 'org.nuxeo.ecm.automation.OperationException:
Only scalar or scalar list types can be set using update
operation
   .........


---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to