Use the SDL LiveContent Architect API to download the output of a Publication

How do you use the SDL LiveContent Architect API to download the output of a Publication? 

For example, I want to publish a CHM file of a Publication and then download the output.

I can't seem to find any class or method that will do this. 

Thanks,

Pat

Parents
  • Hi,

    You can't. It is not implemented in web services API.

    Suppose you have a publication:

    • identifier: GUID-75CD4383-F94E-49AA-8182-9776535F8522
    • version: 1
    • format: PDF (A5 Booklet)

    You can query the MetaDataAssist2.0 > GetLOVValues [deprecated], the list you are looking for is normally called DOUTPUTFORMATNAME.

    You can query the metadata of this object with PublicationOutput2.5 > GetMetaData, and you'd get back something like:

    <ishobjects>
       <ishobject
          ishref="GUID-75CD4383-F94E-49AA-8182-9776535F8522"
          ishtype="ISHPublication" ishlogicalref="7025"
          ishversionref="7028" ishlngref="7029"/>
    </ishobjects>
    

    Grab the ishlngref attribute's value and use PublicationOutput2.5 > GetDataObjectInfoByIshLngRef to get information on that. You get back something like:

    <ishdataobjects>
       <ishdataobject ishlngref="7029" ishdataref="7030"
          ed="GUID-450AE758-34F0-4F6A-8A34-23FDCADF931C"
          edt="EDTPDF" size="3195659"
          mimetype="application/pdf" fileextension="pdf"/>
    </ishdataobjects>
    

    I guess the ed attribute is the same as psEdGUID in PublicationOutput2.5 > GetDataObjectByIshLngRef, which could be used to fetch the blob. Except this function call is billed as "internal" and it clearly says that it is " not implemented in the InfoShare webservices".

    Sorry.

    HTH

    Joakim

Reply
  • Hi,

    You can't. It is not implemented in web services API.

    Suppose you have a publication:

    • identifier: GUID-75CD4383-F94E-49AA-8182-9776535F8522
    • version: 1
    • format: PDF (A5 Booklet)

    You can query the MetaDataAssist2.0 > GetLOVValues [deprecated], the list you are looking for is normally called DOUTPUTFORMATNAME.

    You can query the metadata of this object with PublicationOutput2.5 > GetMetaData, and you'd get back something like:

    <ishobjects>
       <ishobject
          ishref="GUID-75CD4383-F94E-49AA-8182-9776535F8522"
          ishtype="ISHPublication" ishlogicalref="7025"
          ishversionref="7028" ishlngref="7029"/>
    </ishobjects>
    

    Grab the ishlngref attribute's value and use PublicationOutput2.5 > GetDataObjectInfoByIshLngRef to get information on that. You get back something like:

    <ishdataobjects>
       <ishdataobject ishlngref="7029" ishdataref="7030"
          ed="GUID-450AE758-34F0-4F6A-8A34-23FDCADF931C"
          edt="EDTPDF" size="3195659"
          mimetype="application/pdf" fileextension="pdf"/>
    </ishdataobjects>
    

    I guess the ed attribute is the same as psEdGUID in PublicationOutput2.5 > GetDataObjectByIshLngRef, which could be used to fetch the blob. Except this function call is billed as "internal" and it clearly says that it is " not implemented in the InfoShare webservices".

    Sorry.

    HTH

    Joakim

Children