cancel
Showing results for 
Search instead for 
Did you mean: 

Sample code with writeWithAttachment() ?

rcarhuatocto
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

rcarhuatocto
Champ in-the-making
Champ in-the-making
It seems that writeWithAttachment() and the transform() are not implemented.

http://wiki.alfresco.com/wiki/Content_Web_Service

I'm using SDK 3.2.

Any ideas?