Class XmlService_JAXWS
- java.lang.Object
-
- com.opentext.livelink.service.core.XmlService_JAXWS
-
public class XmlService_JAXWS extends java.lang.ObjectXMLService provides a web service interface to Import and Export Content Server contents as XML. The XML can be imported or exported as an Attachment or a Stream.
- Version:
- 2013-08-26
-
-
Constructor Summary
Constructors Constructor Description XmlService_JAXWS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentexportXml(long nodeID, ExportOptions options)Export xmljava.lang.StringexportXmlContext(long nodeID, ExportOptions options)Store the meta-data for exporting in a method context on the server.longimportXml(long nodeID, ImportOptions options, Attachment attach)Import xmljava.lang.StringimportXmlContext(long nodeID, ImportOptions options)Store the meta-data for importing in a method context on the server.
-
-
-
Method Detail
-
exportXml
public Attachment exportXml(long nodeID, ExportOptions options)
Export xml- Parameters:
nodeID- ID of node to exportoptions- Options used to control exportoutStream- The output stream to write the contents to- Returns:
- Information about the file downloaded. Throws fault exception with fault codes: Core.ExportOptionsParameterCannotBeUndefined, Core.InvalidExportOptions, Core.ExportFailed, Core.UnableToOpenExportFile
-
exportXmlContext
public java.lang.String exportXmlContext(long nodeID, ExportOptions options)Store the meta-data for exporting in a method context on the server. It will actually be exported when ContentService.DownloadContent() is called.- Parameters:
nodeID- ID of node to exportoptions- Options used to control export- Returns:
- ContextID to be used by the ContentService to fetch the contents. Throws fault exception with fault codes: Core.InvalidExportOptions, Core.ErrorSavingMethodContext
-
importXml
public long importXml(long nodeID, ImportOptions options, Attachment attach)Import xml- Parameters:
nodeID- ID of parent node to created nodesoptions- Options used to control importfileAtts- Description of the file uploaded as the XML import content.inStream- Contents- Returns:
- ObjectID of the first object imported, otherwise -1. Throws fault exception with fault codes: Core.ImportOptionsParameterCannotBeUndefined, Core.FileInformationMissing, Core.InvalidImportOptions, Core.UnableToReadXMLImportFile, Core.ImportFailed
-
importXmlContext
public java.lang.String importXmlContext(long nodeID, ImportOptions options)Store the meta-data for importing in a method context on the server. It will actually be imported when ContentService.DownloadContent() is called.- Parameters:
nodeID- ID of node to exportoptions- Options used to control import- Returns:
- ContextID to be used by the ContentService to upload the contents. Throws fault exception with fault codes: Core.InvalidImportOptions, Core.ErrorSavingMethodContext
-
-