/// <summary> /// Creates and intialize a proxy of the Percussion service used for manipulating /// the overall system (folders, list of relationships, etc). /// </summary> /// <param name="protocol">Communications protocol to use when connecting to /// the Percussion server. Should be either HTTP or HTTPS.</param> /// <param name="host">Host name or IP address of the Percussion server.</param> /// <param name="port">Port number to use when connecting to the Percussion server.</param> /// <param name="cookie">The cookie container for maintaining the session for all /// webservice requests.</param> /// <param name="authHeader">The authentication header for maintaining the Rhythmyx session /// for all webservice requests.</param> /// <returns>An initialized proxy for the Percussion system service.</returns> public static systemSOAP GetSystemService(string protocol, string host, string port, CookieContainer cookie, PSAuthenticationHeader authHeader) { systemSOAP systemSvc = new systemSOAP(); systemSvc.Url = RewriteServiceUrl(systemSvc.Url, protocol, host, port); systemSvc.CookieContainer = cookie; systemSvc.PSAuthenticationHeaderValue = authHeader; return(systemSvc); }
/// <summary> /// Creates and intialize a proxy of the Percussion service used for retriving /// slots and templates. /// </summary> /// <param name="protocol">Communications protocol to use when connecting to /// the Percussion server. Should be either HTTP or HTTPS.</param> /// <param name="host">Host name or IP address of the Percussion server.</param> /// <param name="port">Port number to use when connecting to the Percussion server.</param> /// <param name="cookie">The cookie container for maintaining the session for all /// webservice requests.</param> /// <param name="authHeader">The authentication header for maintaining the Rhythmyx session /// for all webservice requests.</param> /// <returns>An initialized proxy for the Percussion content service.</returns> public static assemblySOAP GetAssemblyService(string protocol, string host, string port, CookieContainer cookie, PSAuthenticationHeader authHeader) { assemblySOAP assemblySvc = new assemblySOAP(); assemblySvc.Url = RewriteServiceUrl(assemblySvc.Url, protocol, host, port); assemblySvc.CookieContainer = cookie; assemblySvc.PSAuthenticationHeaderValue = authHeader; return(assemblySvc); }
/// <summary> /// Creates and intialize a proxy of the Percussion service used for manipulating /// content items and relationships. /// </summary> /// <param name="protocol">Communications protocol to use when connecting to /// the Percussion server. Should be either HTTP or HTTPS.</param> /// <param name="host">Host name or IP address of the Percussion server.</param> /// <param name="port">Port number to use when connecting to the Percussion server.</param> /// <param name="cookie">The cookie container for maintaining the session for all /// webservice requests.</param> /// <param name="authHeader">The authentication header for maintaining the Rhythmyx session /// for all webservice requests.</param> /// <returns>An initialized proxy for the Percussion content service.</returns> public static contentSOAP GetContentService(string protocol, string host, string port, CookieContainer cookie, PSAuthenticationHeader authHeader) { contentSOAP contentSvc = new contentSOAP(); contentSvc.Url = RewriteServiceUrl(contentSvc.Url, protocol, host, port); contentSvc.CookieContainer = cookie; contentSvc.PSAuthenticationHeaderValue = authHeader; return(contentSvc); }