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 Jan 29, 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 required

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)

  1. Install .NET Core (tested on 3.1)
  2. mkdir dot-net-test
  3. cd dot-net-test/
  4. dotnet new console
  5. dotnet add package Kveer.XmlRPC --version 1.1.1
  6. cp ~papercut/server/examples/webservices/csharp/* .
  7. mv Example.cs Program.cs
  8. 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