Exemplo n.º 1
0
        public CTest()
        {
            CXmlRpcValue vInt     = new CXmlRpcValue(123);
            CXmlRpcValue vDouble  = new CXmlRpcValue(4.56);
            CXmlRpcValue vBoolean = new CXmlRpcValue(true);
            CXmlRpcValue vString  = new CXmlRpcValue("Linq");

            CXmlRpcValueArray vArray = new CXmlRpcValueArray();

            vArray.Add(vInt);
            vArray.Add(vDouble);
            vArray.Add(vBoolean);

            CXmlRpcValueStruct vStruct = new CXmlRpcValueStruct();

            vStruct.Add("chocho", vString);
            vStruct.Add("cococo", vInt);
            vStruct.Add("bobobo", vDouble);

            CXmlRpcParams Params = new CXmlRpcParams();

            Params.Add(vArray);
            Params.Add(vStruct);
            Console.WriteLine(Params.ToXml());

            CXmlRpcRequest GetValue = new CXmlRpcRequest("GetValue", Params);

            Console.WriteLine(GetValue.ToXml());
        }
Exemplo n.º 2
0
 public CXmlRpcRequest(String strMethod, CXmlRpcParams Params)
 {
     m_strMethod         = strMethod;
     m_XmlRpcValueParams = Params;
 }