Getting topic content using vb.net and DocumentObj25.CheckOut

Hi,

I am trying to remove a reference from a topic programmatically. I am using the DocumentObj class and Checkout. The topic is returned as base 64 encoded (CDATA) as it should according to the documentation.

I try to decode it using Encoding.Unicode.Getstring and convert.FromBase64String, see below. I get an "XML" string but it is filled with vbCrLf and vbTab, making it not XML.

Is there a better way for me to do this?

Dim lsstring As String = documentClient.CheckOut("GUID-123...........", "1", "en-US", "", "", pbData)

Dim lsDecodedString As String = System.Text.Encoding.Unicode.GetString(Convert.FromBase64String(lsCDataString))

Parents Reply Children
  • I'm not sure about this but probably not.

    Exploring the ISHRemote is relatively easy. Open PowerShell Ise, and then on the right the Command add-on. Then select the module and start typing. Especially for ISHRemote, there is almost a 100% mapping between the api name and the cmdlet's noun. e.g. DocumentObj method's functionality would be offered by Verb-ISHDocumentObj* cmdlets. Then do show details and check the parameters you are looking for.

     

    One hidden feature of ISHRemote is that it offers an authenticate proxy of the actual wcf proxy.