Class XmlService_JAXWS


  • public class XmlService_JAXWS
    extends java.lang.Object

    XMLService 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 Detail

      • XmlService_JAXWS

        public XmlService_JAXWS()
    • Method Detail

      • exportXml

        public Attachment exportXml​(long nodeID,
                                    ExportOptions options)
        Export xml
        Parameters:
        nodeID - ID of node to export
        options - Options used to control export
        outStream - 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 export
        options - 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 nodes
        options - Options used to control import
        fileAtts - 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 export
        options - 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