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

Commit 067e775

Browse files
author
Konstantina Chremmou
authored
Merge pull request #136 from xapi-project/json
Merge request from json (REQ-420) into master.
2 parents f7582a6 + 803ac38 commit 067e775

19 files changed

+1699
-627
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,19 @@ language(s), or simply `make` to generate SDK source code for all the supported
5353
languages.
5454

5555
To compile the generated source code, follow the instructions in the corresponding
56-
README files.
56+
README files. The third party libraries required for the compilation of the C#
57+
and PowerShell source code can be obtained from [dotnet-packages][6].
5758

5859
_Note: The Python module is not auto-generated. It can be found at
59-
[XenAPI.py][6]._
60+
[XenAPI.py][7]._
6061

6162
## Contributions
6263

6364
The preferable way to contribute patches is to fork the repository on Github
6465
and then submit a pull request. If for some reason you can't use Github to
6566
submit a pull request, then you may send your patch for review to the
6667
<xen-api@lists.xen.org> mailing list, with a link to a public git
67-
repository for review. Please see the CONTRIB.md file for some general
68+
repository for review. Please see the [CONTRIB.md][8] file for some general
6869
guidelines on submitting changes.
6970

7071
## Maintainers
@@ -75,12 +76,14 @@ guidelines on submitting changes.
7576
## License
7677

7778
This code is licensed under the BSD 2-Clause license. Please see the file
78-
[LICENSE][7] for more information.
79+
[LICENSE][9] for more information.
7980

8081
[1]: http://caml.inria.fr/ocaml/
8182
[2]: https://opam.ocaml.org/
8283
[3]: https://github.com/ocaml/opam-dockerfiles
8384
[4]: https://github.com/xapi-project/xs-opam
8485
[5]: https://github.com/xapi-project/sm/blob/master/drivers/XE_SR_ERRORCODES.xml
85-
[6]: https://github.com/xapi-project/xen-api/blob/master/scripts/examples/python/XenAPI.py
86-
[7]: LICENSE
86+
[6]: https://github.com/xenserver/dotnet-packages
87+
[7]: https://github.com/xapi-project/xen-api/blob/master/scripts/examples/python/XenAPI.py
88+
[8]: CONTRIB.md
89+
[9]: LICENSE

common/CommonFunctions.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ open Pervasiveext
3333
open Printf
3434
open Datamodel_types
3535

36+
type wireProtocol = XmlRpc | JsonRpc
3637

3738
let with_output filename f =
3839
let io = open_out filename in

csharp/README.dist

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@ This library requires .NET 4.5 or greater.
3636
Dependencies
3737
------------
3838

39-
XenServer.NET is dependent upon XML-RPC.NET by Charles Cook (see http://www.xml-rpc.net).
40-
XML-RPC.NET is licensed under the MIT X11 license; see
41-
LICENSE.CookComputing.XmlRpcV2.txt for details. The library
42-
(CookComputing.XmlRpcV2.dll) is shipped with XenServer.NET.
39+
XenServer.NET is dependent upon the following libraries:
40+
41+
- XML-RPC.NET by Charles Cook (see http://www.xml-rpc.net).
42+
XML-RPC.NET is licensed under the MIT X11 license; see
43+
LICENSE.CookComputing.XmlRpcV2.txt for details. The library
44+
(CookComputing.XmlRpcV2.dll) is shipped with XenServer.NET.
45+
46+
- Newtonsoft JSON.NET by James Newton-King (see https://www.newtonsoft.com/).
47+
JSON.NET is licensed under the MIT license; see LICENSE.Newtonsoft.Json.txt
48+
for details. The library (Newtonsoft.Json.dll) is shipped with XenServer.NET.
4349

4450

4551
Downloads
@@ -71,8 +77,9 @@ B. To build the source code:
7177
3. You should now be ready to build the source code.
7278

7379
C. To run the examples:
74-
1. Copy XenServer.dll and CookComputing.XmlRpcV2.dll from the bin folder into
75-
the samples folder at the same level as the XenSdkSample.csproj file.
80+
1. Copy XenServer.dll, CookComputing.XmlRpcV2.dll, and Newtonsoft.Json.dll
81+
from the bin folder into the samples folder at the same level as the
82+
XenSdkSample.csproj file.
7683
2. Open XenSdkSample.sln inside Visual Studio (2013 or greater).
7784
3. You should now be ready to compile the solution and run the examples.
7885
The solution project is a console application expecting the parameters

0 commit comments

Comments
 (0)