Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

XML RPC Lib Notes

Alec Clews edited this page Feb 14, 2020 · 10 revisions

Possible .NET Core XML-RPC Libraries

Name URL Comments
Kveer.XmlRPC https://www.nuget.org/packages/Kveer.XmlRPC/ Recently updated, no changes to old code required (.NET Core port of Cook lib)

NOTE: Developer will need to install the .NET Core SDK, which provides the dotnet command-line tool.

This example seems to work (tested with PaperCut NG 19.2.2 and .NET Core SDK 3.1 on Linux and Windows 10)

  1. Install .NET Core SDK (tested on 3.1)
  2. dotnet new console --name dot-net-test
  3. cd dot-net-test/
  4. dotnet add package Kveer.XmlRPC --version 1.1.1
  5. Copy PaperCut supplied files into your project
    • Linux and MacOS cp ~papercut/server/examples/webservices/csharp/* .
    • Windows cp 'C:\Program Files\PaperCut MF\server\examples\webservices\csharp\*' .
  6. mv Example.cs Program.cs
  7. Fix build problems in ServerCommandProxy.cs
	/// <summary>
	///  Set the user to Auto Charge to Personal
	/// </summary>
	///
	/// <param name="username">
	///  The name of the user with the account to credit.
	/// </param>
	/// <param name="withPopupConfirmation">
	///	  If a popup confirmation is to be used (Optional. Defaults to false)
	///	</param>
	///
	public void SetUserAccountSelectionAutoChargePersonal(string username, bool withPopupConfirmation = false)  {
		_proxy.SetUserAccountSelectionAutoChargePersonal(_authToken, username, withPopupConfirmation);
	}
Clone this wiki locally