Changes between Version 4 and Version 5 of XmlRpcPlugin/DotNet
- Timestamp:
- Aug 27, 2015, 5:05:51 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XmlRpcPlugin/DotNet
v4 v5 23 23 I have included two examples. The first returns a list of all the pages on your wiki. The second posts a new page (or a new revision to an existing page) to the wiki. 24 24 25 {{{ 25 {{{#!cs 26 26 using CookComputing.XmlRpc; 27 27 … … 48 48 Here is an example of how to use this. For simplicity, we'll just add a Main to the above: 49 49 50 {{{ 50 {{{#!cs 51 51 static void Main(string [] args) 52 52 { … … 84 84 First, you need to create a server certificate validation callback that always says the certificate is OK, even if it's really not: 85 85 86 {{{ 86 {{{#!cs 87 87 private bool AcceptCertificateNoMatterWhat(object sender, 88 88 System.Security.Cryptography.X509Certificates.X509Certificate cert, … … 96 96 Second, ''before'' you create the proxy, do this (for example, at the beginning of Main) 97 97 98 {{{ 98 {{{#!cs 99 99 ServicePointManager.ServerCertificateValidationCallback = AcceptCertificateNoMatterWhat; 100 100 }}}