Hi there!I'm developing samples on using Alfresco Webservice and I can not get successfully with: WebServiceFactory.getContentService().writeWithAttachment(ref, strProp, contentFormat)
I got the follow error:
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://www.alfresco.org/ws/service/content/1.0}ContentFault:<ns1:errorCode>0</ns1:errorCode><ns1:message>10300030 Expecting only one attachment</ns1:message>
{http://xml.apache.org/axis/}exceptionName:org.alfresco.repo.webservice.content.ContentFault
….
I'd really appreciate a lot if anybody could give me sample code.Thanks.