07-21-2009 06:01 AM
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)\r\n at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Objec…
RepositoryWebService.CML cml = new RepositoryWebService.CML();
cml.addAspect = new RepositoryWebService.CMLAddAspect[Categories.Count];
…
foreach (Category category in Categories) {
RepositoryWebService.CMLAddAspect aspect = new RepositoryWebService.CMLAddAspect();
RepositoryWebService.NamedValue[] aspectProps = new RepositoryWebService.NamedValue[category.Count];
foreach (CategoryAttribute attribute in category)
{
aspectProps[attribtCount] = CreateProperty(attribute.InternalKey, attribute.Value.ToString());
attribtCount++;
}
aspect.aspect = category.InternalName; // like "{http:/…/…}name"
aspect.property = aspectProps;
aspect.where = null;
aspect.where_id = RepositoryID; // the ID of the document, having the category <<<< correct?
cml.addAspect[aspectCount] = aspect;
aspectCount++;
Repository.update(cml); <<<<<<< this throws the exception, of course.
}
07-22-2009 04:42 AM
07-23-2009 06:03 AM
07-23-2009 06:06 AM
07-24-2009 04:21 AM
CMLAddAspect aspect = new RepositoryWebService.CMLAddAspect();
aspect.aspect = "{http://mydomain.com/model/content/1.0}myAspect";
aspect.property = properties; // my changed set of properties
aspect.where = predicate; // points to the document, the aspect is attached to
aspect.where_id = "1";
cml.addAspect = new RepositoryWebService.CMLAddAspect[] { aspect };
Repository.update(cml);
07-24-2009 04:34 AM
07-24-2009 05:41 AM
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.