org.alfresco.sample.webservice
Class ContentReadAndWrite
java.lang.Object
org.alfresco.sample.webservice.SamplesBase
org.alfresco.sample.webservice.ContentReadAndWrite
public class ContentReadAndWrite
- extends SamplesBase
Web service sample 3
This web service sample shows how new content can be added to the repository and how content
can be read and updated via the web service API.
- Author:
- Roy Wetherall
Method Summary |
static org.alfresco.webservice.types.Reference |
createNewContent(org.alfresco.webservice.content.ContentServiceSoapBindingStub contentService,
java.lang.String name,
java.lang.String contentString)
Helper method to create new content. |
static void |
main(java.lang.String[] args)
Main function |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentReadAndWrite
public ContentReadAndWrite()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Main function
- Throws:
java.lang.Exception
createNewContent
public static org.alfresco.webservice.types.Reference createNewContent(org.alfresco.webservice.content.ContentServiceSoapBindingStub contentService,
java.lang.String name,
java.lang.String contentString)
throws java.lang.Exception
- Helper method to create new content.
- Parameters:
contentService
- the content web servicecontent
- the content itself
- Returns:
- a reference to the created content node
- Throws:
java.lang.Exception
Copyright © 2008. All Rights Reserved.