SpringCMServiceSoap / FolderArchive
ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
integer li_rc
oleobject loo_Xml
string ls_SoapRequestBody
string ls_Endpoint
string ls_SoapAction
string ls_ContentType
oleobject loo_Http
oleobject loo_Resp
oleobject loo_ResponseXml
integer li_StatusCode
string ls_FolderArchiveResult
loo_Xml = create oleobject
li_rc = loo_Xml.ConnectToNewObject("Chilkat_9_5_0.Xml")
if li_rc < 0 then
destroy loo_Xml
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Xml.Tag = "soapenv:Envelope"
loo_Xml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/")
loo_Xml.AddAttribute("xmlns:spr","http://www.springcm.com/atlas/webservices/v201308/scm/")
loo_Xml.UpdateChildContent("soapenv:Header","")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:token","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Id","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Name","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:ObjectType","Document")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:ParentFolderId","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:CreatedBy","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:CreatedDate","dateTime")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:UpdatedBy","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:UpdatedDate","dateTime")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Security","list of enumerated string values")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Description","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Metadata|spr:SCMMetadata|spr:GroupName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Metadata|spr:SCMMetadata|spr:FieldName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Metadata|spr:SCMMetadata|spr:Value","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Metadata|spr:SCMMetadata|spr:HighValue","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Metadata|spr:SCMMetadata|spr:ExcludeFromSearch","true")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Metadata|spr:SCMMetadata|spr:SetName","string")
loo_Xml.UpdateChildContentInt("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Metadata|spr:SCMMetadata|spr:SetNumber",1042)
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:Metadata|spr:SCMMetadata|spr:DataType","String")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:baseFolder|spr:LimitAttributeGroups|spr:string","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Id","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Name","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:ObjectType","Document")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:ParentFolderId","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:CreatedBy","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:CreatedDate","dateTime")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:UpdatedBy","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:UpdatedDate","dateTime")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Security","list of enumerated string values")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Description","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Metadata|spr:SCMMetadata|spr:GroupName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Metadata|spr:SCMMetadata|spr:FieldName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Metadata|spr:SCMMetadata|spr:Value","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Metadata|spr:SCMMetadata|spr:HighValue","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Metadata|spr:SCMMetadata|spr:ExcludeFromSearch","true")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Metadata|spr:SCMMetadata|spr:SetName","string")
loo_Xml.UpdateChildContentInt("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Metadata|spr:SCMMetadata|spr:SetNumber",1042)
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Metadata|spr:SCMMetadata|spr:DataType","String")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:CheckedOutUserId","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:CheckedOutUserName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:ExpirationDate","dateTime")
loo_Xml.UpdateChildContentInt("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:FileSize",123456)
loo_Xml.UpdateChildContentInt("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:PDFFileSize",123456)
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:PDFConversion","true")
loo_Xml.UpdateChildContentInt("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:PDFPageCount",1042)
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:IsFormDocument","true")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:CustomFormFields|spr:SCMFormField|spr:Key","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:CustomFormFields|spr:SCMFormField|spr:Value","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:CustomFormFields|spr:SCMFormField|spr:SetName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:CustomFormFields|spr:SCMFormField|spr:SetNumber","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:MIMEType","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMDocuments|spr:SCMDocument|spr:Version","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Id","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Name","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:ObjectType","Document")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:ParentFolderId","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:CreatedBy","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:CreatedDate","dateTime")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:UpdatedBy","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:UpdatedDate","dateTime")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Security","list of enumerated string values")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Description","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Metadata|spr:SCMMetadata|spr:GroupName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Metadata|spr:SCMMetadata|spr:FieldName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Metadata|spr:SCMMetadata|spr:Value","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Metadata|spr:SCMMetadata|spr:HighValue","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Metadata|spr:SCMMetadata|spr:ExcludeFromSearch","true")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Metadata|spr:SCMMetadata|spr:SetName","string")
loo_Xml.UpdateChildContentInt("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Metadata|spr:SCMMetadata|spr:SetNumber",1042)
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:Metadata|spr:SCMMetadata|spr:DataType","String")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:nodes|spr:SCMFolders|spr:SCMFolder|spr:LimitAttributeGroups|spr:string","string")
loo_Xml.UpdateChildContentInt("soapenv:Body|spr:FolderArchive|spr:nodes|spr:TotalRowCount",1042)
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Id","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Name","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:ObjectType","Document")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:ParentFolderId","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:CreatedBy","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:CreatedDate","dateTime")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:UpdatedBy","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:UpdatedDate","dateTime")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Security","list of enumerated string values")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Description","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Metadata|spr:SCMMetadata|spr:GroupName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Metadata|spr:SCMMetadata|spr:FieldName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Metadata|spr:SCMMetadata|spr:Value","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Metadata|spr:SCMMetadata|spr:HighValue","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Metadata|spr:SCMMetadata|spr:ExcludeFromSearch","true")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Metadata|spr:SCMMetadata|spr:SetName","string")
loo_Xml.UpdateChildContentInt("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Metadata|spr:SCMMetadata|spr:SetNumber",1042)
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:Metadata|spr:SCMMetadata|spr:DataType","String")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:scmDestinationFolder|spr:LimitAttributeGroups|spr:string","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:destinationName","string")
loo_Xml.UpdateChildContent("soapenv:Body|spr:FolderArchive|spr:requestUid","string")
// In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
loo_Xml.EmitXmlDecl = 0
ls_SoapRequestBody = loo_Xml.GetXml()
ls_Endpoint = "https://soapna11.springcm.com/atlas/webservices/v201308/springcmservice.asmx"
ls_SoapAction = "http://www.springcm.com/atlas/webservices/v201308/scm/FolderArchive"
// For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
ls_ContentType = "text/xml"
loo_Http = create oleobject
li_rc = loo_Http.ConnectToNewObject("Chilkat_9_5_0.Http")
loo_Http.ClearHeaders()
loo_Http.SetRequestHeader("Content-Type",ls_ContentType)
loo_Http.SetRequestHeader("SOAPAction",ls_SoapAction)
loo_Resp = loo_Http.PostXml(ls_Endpoint,ls_SoapRequestBody,"utf-8")
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
Write-Debug "Failed to send SOAP request."
destroy loo_Xml
destroy loo_Http
return
end if
// Get the XML response body.
loo_ResponseXml = create oleobject
li_rc = loo_ResponseXml.ConnectToNewObject("Chilkat_9_5_0.Xml")
loo_Resp.GetBodyXml(loo_ResponseXml)
li_StatusCode = loo_Resp.StatusCode
Write-Debug "response status code: " + string(li_StatusCode)
destroy loo_Resp
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if li_StatusCode <> 200 then
Write-Debug loo_ResponseXml.GetXml()
destroy loo_Xml
destroy loo_Http
destroy loo_ResponseXml
return
end if
Write-Debug loo_ResponseXml.GetXml()
// Parse the successful SOAP response XML.
// This is a sample of the response XML, but the namespace prefixes will be different.
// We can parse the result using "*" for the namespace prefixes (see below).
ls_FolderArchiveResult = loo_ResponseXml.GetChildContent("*:Body|*:FolderArchiveResponse|*:FolderArchiveResult")
destroy loo_Xml
destroy loo_Http
destroy loo_ResponseXml