Commerce Server 2007 Staging System Webcast

  [This is for Friday May 18th 7AM-8:30AM Pacific Daylight Time PDT]   Learn how to develop programmatically against the Commerce Server 2007 Staging System. You will learn: Overview Concepts Security Authentication Replication Tools API Set Hands on Code Create Projects Manage Projects Manage Routes Manage Service Error Handling Join us via Livemeeting (info below)!  …

1

Get a projects Endpoints

C# Code: CReplicationServer cssSvr = new CReplicationServerClass();cssSvr.Initialize(Environment.MachineName);CReplicationProject csPrj = (CReplicationProject)cssSvr.OpenProject(“Test”, CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);object dummy = new object();dummy = 0;while ((int)dummy != -1){  object dummy2 = new object();  dummy2=0;  string endpoint = (string)csPrj.EnumDestination(ref dummy);  Console.WriteLine(endpoint);} VBScript Code: Option Explicit On Error Resume Nextdim ReplServerset ReplServer = CreateObject(“CssApi.ReplicationServer”)ReplServer.Initialize(“”)dim Projectdim Iteratordim ReplProjectdim endpointdim ReplErrorIterator = 0’Clear any error textErr.Clear’Get the…

1

Get a list of CSS Projects

C# Code: CReplicationServer cssSvr = new CReplicationServerClass();cssSvr.Initialize(Environment.MachineName);object dummy = new object();dummy = 0;while ((int)dummy != -1){    CReplicationProject obj = (CReplicationProject)cssSvr.EnumProjects(ref dummy);    Console.WriteLine(obj.get_Name().ToString());} VBScript Code: Option Explicit On Error Resume Nextconst CSS_ERROR_NO_PROJECTS = 15100const CSS_ERROR_NO_MORE_ITEMS = -2147422485dim ReplServerset ReplServer = CreateObject(“CssApi.ReplicationServer”)ReplServer.Initialize(“”)dim Projectdim Iteratordim ReplProjectIterator = 0Wscript.Echo “The projects are:”do while True’Clear any error textErr.Clear’Get the next…

1