Changes between Version 4 and Version 5 of XmlRpcPlugin/DotNet


Ignore:
Timestamp:
Aug 27, 2015, 5:05:51 PM (9 years ago)
Author:
Ryan J Ollos
Comment:

Add syntax highlighting.

Legend:

Unmodified
Added
Removed
Modified
  • XmlRpcPlugin/DotNet

    v4 v5  
    2323I 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.
    2424
    25 {{{
     25{{{#!cs
    2626using CookComputing.XmlRpc;
    2727
     
    4848Here is an example of how to use this. For simplicity, we'll just add a Main to the above:
    4949
    50 {{{
     50{{{#!cs
    5151static void Main(string [] args)
    5252{
     
    8484First, you need to create a server certificate validation callback that always says the certificate is OK, even if it's really not:
    8585
    86 {{{
     86{{{#!cs
    8787private bool AcceptCertificateNoMatterWhat(object sender,
    8888            System.Security.Cryptography.X509Certificates.X509Certificate cert,
     
    9696Second, ''before'' you create the proxy, do this (for example, at the beginning of Main)
    9797
    98 {{{
     98{{{#!cs
    9999ServicePointManager.ServerCertificateValidationCallback = AcceptCertificateNoMatterWhat;
    100100}}}