) input;
call !name (List.rev !params)
-let response_of_string ?callback str =
- let input = Xmlm.make_input (`String (0, str)) in
+let response_of_input ?callback input =
begin match Xmlm.peek input with
| `Dtd _ -> ignore (Xmlm.input input)
| _ -> () end;
) input
) input
-
+let response_of_string ?callback str =
+ let input = Xmlm.make_input (`String (0, str)) in
+ response_of_input ?callback input
+
+let response_of_in_channel ?callback chan =
+ let input = Xmlm.make_input (`Channel chan) in
+ response_of_input ?callback input
val call_of_string: ?callback:Rpc.callback -> string -> Rpc.call
val string_of_response: Rpc.response -> string
+
val response_of_string: ?callback:Rpc.callback -> string -> Rpc.response
+val response_of_in_channel: ?callback:Rpc.callback -> in_channel -> Rpc.response