1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
(*
* XmlRpc Light, a small XmlRpc library based on Xml Light and Ocamlnet
* Copyright (C) 2008 Dave Benjamin (dave@ramenlabs.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*)
(* Automatically generated from an XML-RPC server
by running the following command:
../genclient/genclient -i http://localhost:20738/RPC2
*)
exception Type_error of string
class client url =
let rpc = new XmlRpc.client url in
object (self)
method rpc = rpc
method system = object
method shutdown _0 =
let result = rpc#call "system.shutdown" [`String _0] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method multicall _0 =
let result = rpc#call "system.multicall" [`Array _0] in
match result with
| `Array r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method methodHelp _0 =
let result = rpc#call "system.methodHelp" [`String _0] in
match result with
| `String r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method methodSignature _0 =
let result = rpc#call "system.methodSignature" [`String _0] in
match result with
| `Array r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method listMethods () =
let result = rpc#call "system.listMethods" [] in
match result with
| `Array r -> r
| other -> raise (Type_error (XmlRpc.dump other))
end
method ubigraph = object
method change_edge_style _0 _1 =
let result = rpc#call "ubigraph.change_edge_style" [`Int32 _0; `Int32 _1] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method new_edge_style_w_id _0 _1 =
let result = rpc#call "ubigraph.new_edge_style_w_id" [`Int32 _0; `Int32 _1] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method new_edge_style _0 =
let result = rpc#call "ubigraph.new_edge_style" [`Int32 _0] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method set_edge_style_attribute _0 _1 _2 =
let result = rpc#call "ubigraph.set_edge_style_attribute" [`Int32 _0; `String _1; `String _2] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method set_edge_attribute _0 _1 _2 =
let result = rpc#call "ubigraph.set_edge_attribute" [`Int32 _0; `String _1; `String _2] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method change_vertex_style _0 _1 =
let result = rpc#call "ubigraph.change_vertex_style" [`Int32 _0; `Int32 _1] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method new_vertex_style_w_id _0 _1 =
let result = rpc#call "ubigraph.new_vertex_style_w_id" [`Int32 _0; `Int32 _1] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method new_vertex_style _0 =
let result = rpc#call "ubigraph.new_vertex_style" [`Int32 _0] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method set_vertex_style_attribute _0 _1 _2 =
let result = rpc#call "ubigraph.set_vertex_style_attribute" [`Int32 _0; `String _1; `String _2] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method set_vertex_attribute _0 _1 _2 =
let result = rpc#call "ubigraph.set_vertex_attribute" [`Int32 _0; `String _1; `String _2] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method clear () =
let result = rpc#call "ubigraph.clear" [] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method remove_edge _0 =
let result = rpc#call "ubigraph.remove_edge" [`Int32 _0] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method remove_vertex _0 =
let result = rpc#call "ubigraph.remove_vertex" [`Int32 _0] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method new_edge _0 _1 =
let result = rpc#call "ubigraph.new_edge" [`Int32 _0; `Int32 _1] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method new_edge_w_id _0 _1 _2 =
let result = rpc#call "ubigraph.new_edge_w_id" [`Int32 _0; `Int32 _1; `Int32 _2] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method new_vertex () =
let result = rpc#call "ubigraph.new_vertex" [] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
method new_vertex_w_id _0 =
let result = rpc#call "ubigraph.new_vertex_w_id" [`Int32 _0] in
match result with
| `Int r -> Int32.of_int r | `Int32 r -> r
| other -> raise (Type_error (XmlRpc.dump other))
end
end
|