Workflow and ServiceDesk Community

 View Only
  • 1.  ASDK - Create software package, command line, upload via web service?

    Posted May 28, 2015 11:39 PM

    I'm looking for some documentation, or a step by step, on the ASDK web service calls to create a software package and associated command line, and ideally even upload the files into the newly created package, and set the package server replication state to all package servers. (NS 7.6)

    Can all this be accomplished via the ASDK? What parts would still require manual effort?

    Any pointers are apprciated.



  • 2.  RE: ASDK - Create software package, command line, upload via web service?

    Posted May 29, 2015 04:38 AM

    Yes this is possible.  The ASDK help file contains the information you need and is accessible via your SMP's start menu.  Examples are also available in its file system. 

     

    The following method will be of benefit to you; however, you will most likely wish to use others too. 

    SoftwareComponentManagementLib..::.ImportSoftwareRelease Method



  • 3.  RE: ASDK - Create software package, command line, upload via web service?

    Posted May 29, 2015 05:47 PM

    I'm mode a little bit of headway using the help file you mentioned. I am now able to create the software resource and a command line that is associated with it. I'm hitting a wall attempting to create a software package and associating that to the software resource. All the examples in the help file are type 2 (LOCAL), but I need to create on of type 5. (SOFTWARE LIBRARY).

    Any examples for creating a software package that points to the software library?



  • 4.  RE: ASDK - Create software package, command line, upload via web service?

    Posted May 31, 2015 05:26 AM

    Do the example in the file system not contain a library example either?



  • 5.  RE: ASDK - Create software package, command line, upload via web service?

    Posted May 31, 2015 10:44 AM

    All the examples that I see in the Samples folder use Type 2, (Local).

    Just so you can see where I'm going with this. I'm actually translating the examples into bash scripts, so I can do this all from a Mac.



  • 6.  RE: ASDK - Create software package, command line, upload via web service?

    Posted May 31, 2015 12:05 PM

    Cool idea.  So, 5 will either be just 5, or 5 plus the unc to the libraries root directory.  You should be able to easily test this using the dos example format. 



  • 7.  RE: ASDK - Create software package, command line, upload via web service?

    Posted Aug 04, 2015 08:30 AM

    Hello gilburns,

    Was it possible to create a software package that points to the software library? If yes, could you please explain how to realize that?



  • 8.  RE: ASDK - Create software package, command line, upload via web service?

    Posted Aug 04, 2015 09:35 AM

    Still trying to make it work. It really needs to be documented better by Symantec. For me, the project got put on the backburner, but I still want to figure it all out.



  • 9.  RE: ASDK - Create software package, command line, upload via web service?

    Posted Aug 05, 2015 06:12 AM

    We are using something like this in our powershell script
     

    $SMFSPMS = New-WebServiceProxy -Uri "http://localhost/Altiris/ASDK.SMF/SoftwarePackageManagementService.asmx" -UseDefaultCredential
    $Package = $SMFSPMS.CreatePackage("PackageName", " ", $SoftwareReleaseGuid, 5, $PackageSource, "", "", $false)