/// <summary> /// XML-RPC implementation of IXWikiCLient. /// Provides access to the main features of XWiki using the XML-RPC API. /// </summary> /// <param name="serverUrl">The url of the server.</param> /// <param name="username">The username used to authenticate.</param> /// <param name="password">The password used to authenticate.</param> internal XWikiXMLRPCClient(String serverUrl, String username, String password) { this.serverUrl = serverUrl; this.username = username; this.password = password; proxy = XmlRpcProxyGen.Create <IXWikiProxy>(); proxy.Url = this.serverUrl + XML_RPC_PATH; Login(); if (!isLoggedIn) { proxy.Url = this.serverUrl + DEFAULT_APP_CONTEXT + XML_RPC_PATH; Login(); } }
/// <summary> /// XML-RPC implementation of IXWikiCLient. /// Provides access to the main features of XWiki using the XML-RPC API. /// </summary> /// <param name="serverUrl">The url of the server.</param> /// <param name="username">The username used to authenticate.</param> /// <param name="password">The password used to authenticate.</param> internal XWikiXMLRPCClient(String serverUrl, String username, String password) { this.serverUrl = serverUrl; this.username = username; this.password = password; proxy = XmlRpcProxyGen.Create<IXWikiProxy>(); proxy.Url = this.serverUrl + XML_RPC_PATH; Login(); if (!isLoggedIn) { proxy.Url = this.serverUrl + DEFAULT_APP_CONTEXT + XML_RPC_PATH; Login(); } }