Changes between Version 2 and Version 3 of XmlRpcPlugin/DotNet


Ignore:
Timestamp:
Jul 20, 2015, 4:03:10 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • XmlRpcPlugin/DotNet

    v2 v3  
    1 = Accessing XmlRpcPlugin from C# =
     1= Accessing XmlRpcPlugin from C#
    22
    3 It is possible to access Trac via the XmlRpcPlugin plug-in from Microsoft's .NET framework.  This should work for any .NET language (including Visual Basic). The steps below are written in C#.
     3It is possible to access Trac via the XmlRpcPlugin plug-in from Microsoft's .NET framework. This should work for any .NET language (including Visual Basic). The steps below are written in C#.
    44
    5 == Step 1. Install the Trac XmlRpcPlugin ==
     5== Step 1. Install the Trac XmlRpcPlugin
    66
    7 see XmlRpcPlugin
     7See XmlRpcPlugin
    88
    9 
    10 == Step 2. Download and compile XML-RPC.NET ==
     9== Step 2. Download and compile XML-RPC.NET
    1110
    1211[http://xml-rpc.net XML-RPC.NET]
    1312
    14 
    15 == Step 3. Create a .NET project ==
     13== Step 3. Create a .NET project
    1614
    1715To your new project, add the library you just compiled (above) as a reference.
    1816
     17== Step 4. Create the interface
    1918
    20 == Step 4. Create the interface ==
     19It would be nice to have the complete WikiRPC described; for now, you can just piece together the methods you need as you need them. Create an interface that extends IXmlRpcProxy. In this example, the interface is named "Trac". Then declare methods that are tagged as XmlRpcMethod as shown below.
    2120
    22 Some day it would be nice to have the complete WikiRPC described; for now, you can just piece together the methods you need as you need them.  Create an interface that extends IXmlRpcProxy.  In this example, the interface is named "Trac".  Then, declare methods that are tagged as XmlRpcMethod as below.
    23 
    24 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.
     21I 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.
    2522
    2623{{{
     
    4542}}}
    4643
     44== Step 5. Application Code
    4745
    48 == Step 5. Application Code ==
    49 
    50 Here's an example of how to use this.  For simplicity, we'll just add a Main to the above
     46Here is an example of how to use this. For simplicity, we'll just add a Main to the above:
    5147
    5248{{{
     
    8076}}}
    8177
     78== Step 6. Handling Certificate Problems (if any)
    8279
    83 == Step 6. Handling Certificate Problems (if any) ==
     80If your Trac uses https, make sure it has a valid, verifyable certificate. If you use a self-signed or expired certificate, all is not lost, but you have to take a few additional steps.
    8481
    85 If your trac uses https, make sure it has a valid, verifyable certificate. If you use a self-signed or expired certificate, all is not lost, but you have to take a few additional steps.
    86 
    87 First, you need to create a server certificate validation callback that always says the certificate is OK, even if it's really not.  Example:
     82First, you need to create a server certificate validation callback that always says the certificate is OK, even if it's really not:
    8883
    8984{{{