21 |
* |
* |
22 |
* -------------------------------------------------------------------------- |
* -------------------------------------------------------------------------- |
23 |
*/ |
*/ |
24 |
|
using DotGNU.XmlRpc; |
25 |
|
|
26 |
namespace DotGNU.DGEE.Protocols.XmlRpc |
namespace DotGNU.DGEE.Protocols.XmlRpc |
27 |
{ |
{ |
28 |
/// <summary> |
/// <summary> |
51 |
// This is for testing only. See whether a -f is given and use |
// This is for testing only. See whether a -f is given and use |
52 |
// that content as input for the invoker. This simulates the incoming |
// that content as input for the invoker. This simulates the incoming |
53 |
// request from the DGEE VM. |
// request from the DGEE VM. |
|
String request; |
|
54 |
|
|
55 |
if( args[0] == "-f" ) { |
if( args[0] == "-f" ) { |
56 |
System.IO.FileInfo fi = new System.IO.FileInfo( args[1] ); |
System.IO.FileInfo fi = new System.IO.FileInfo( args[1] ); |
57 |
System.IO.StreamReader sr = fi.OpenText(); |
System.IO.StreamReader sr = fi.OpenText(); |
58 |
request = sr.ReadToEnd(); |
string r = sr.ReadToEnd(); |
59 |
|
//XmlRpcReader reader = new XmlRpcReader( r ); |
60 |
} |
} |
61 |
else { |
else { |
62 |
request = args[0]; |
IWebServiceRequest request = new MethodRequest(); |
63 |
|
request.Assembly = args[0]; |
64 |
|
request.Class = args[1]; |
65 |
|
request.Method = args[2]; |
66 |
|
invoker.Run( request ); |
67 |
} |
} |
|
invoker.Run( request ); |
|
68 |
} |
} |
69 |
} |
} |
70 |
} |
} |