02-22-2010 11:07 AM
02-23-2010 10:02 AM
…
Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
ParentReference companyHomeParent = new ParentReference(storeRef, null, path, Constants.ASSOC_CONTAINS, Constants.createQNameString(InvoiceModel.NAMESPACE_INVOICE_CONTENT_MODEL, contentName + timeStamp));
// Create an array of NamedValue objects with the props we want to set
NamedValue nameValue = Utils.createNamedValue(Constants.PROP_NAME, contentName + " (" + timeStamp + ")");
NamedValue status = Utils.createNamedValue(Constants.createQNameString(InvoiceModel.NAMESPACE_INVOICE_CONTENT_MODEL, InvoiceModel.PROP_STATUS_STRING), "offen");
NamedValue kostenstelle = Utils.createNamedValue(Constants.createQNameString(InvoiceModel.NAMESPACE_INVOICE_CONTENT_MODEL, InvoiceModel.PROP_KOSTENSTELLE_STRING), "Softwareentwicklung");
NamedValue rechnungsNr = Utils.createNamedValue(Constants.createQNameString(InvoiceModel.NAMESPACE_INVOICE_CONTENT_MODEL, InvoiceModel.PROP_RE_NR_STRING), "127676DE2010");
NamedValue[] contentProps = new NamedValue[] {nameValue, status, kostenstelle, rechnungsNr};
…
faultDetail:
{http://www.alfresco.org/ws/service/repository/1.0}RepositoryFault:<ns1:errorCode>0</ns1:errorCode><ns1:message>java.lang.IllegalArgumentException: Class {invoice.model}{http://www.alfresco.org/model/content/1.0}content has not been defined in the data dictionary</ns1:message>
{http://xml.apache.org/axis/}exceptionName:org.alfresco.repo.webservice.repository.RepositoryFault
{http://xml.apache.org/axis/}stackTrace:
at org.alfresco.repo.webservice.repository.RepositoryWebService.update(RepositoryWebService.java:341)
…
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.