Ok so I have gotten to the point in my app where I now need to execute a script. The Script is stored in the Cirrus.SnippetArchive and I am able to work with the script data, etc but I am unable to execute based on the following article (and analysis of the included SDK Powershell example of script execution (NCM.ExecuteScript.ps1)).
How to create array of arguments for Unmanage/Remanage? (C#)
The command I am using to execute the script is:
result+=client.Invoke("Cirrus.SnippetArchive","Execute",PrepareArguments("N:"+oNode.ID,Scripts[sScriptName].Raw));
The Exception generated is:
Version:1.0 StartHTML:000000192 EndHTML:000001722 StartFragment:000001466 EndFragment:000001683 StartSelection:000001469 EndSelection:000001683 SourceURL:http://localhost/xxxx/Execute Exception Details: System.ServiceModel.FaultException`1[[CSClient.SWIS.InformationServiceFaultContract, XXXX, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]: Invoke failed, check fault information.
Version:1.0 StartHTML:000000192 EndHTML:000002146 StartFragment:000001530 EndFragment:000002068 StartSelection:000001530 EndSelection:000002068 SourceURL:http://localhost/ddos/Execute
Version:1.0 StartHTML:000000192 EndHTML:000002146 StartFragment:000001530 EndFragment:000002068 StartSelection:000001530 EndSelection:000002068 SourceURL:http://localhost/ddos/Execute
[FaultException`1: Invoke failed, check fault information.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14799942
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +622
CSClient.SWIS.InformationService.Invoke(String entity, String verb, ArrayOfXmlElement parameters) +0
CSClient.SWIS.InformationServiceClient.Invoke(String entity, String verb, ArrayOfXmlElement parameters) +49
XXXX.Data.ExecuteScripts(String sGroupName) +694
.
.
.
What am I missing? I have tried inserting a dummy username as a final parameter with no luck.