private void respond_error_invalid_postid_parameter(System.Net.HttpListenerContext context, int status_code)
        {
            this.WriteLogMethodName();
            var f = new MP.XmlRpc.Fault();

            f.FaultCode   = 2041;
            f.FaultString = string.Format("Invalid postid parameter");

            WriteResponseString(context, f.CreateDocument().ToString(), status_code, ContentType_TextXml);
        }
Exemple #2
0
        private void respond_unknown_xmlrpc_method(System.Net.HttpListenerContext context, MP.XmlRpc.MethodCall methodcall, string body)
        {
            this.WriteLogMethodName();

            WriteLog("Unhandled XmlRpcMethod {0}", methodcall.Name);
            WriteLog("{0}", body);

            var f = new MP.XmlRpc.Fault();

            f.FaultCode   = 0;
            f.FaultString = string.Format("unsupported method {0}", methodcall.Name);

            WriteResponseString(context, f.CreateDocument().ToString(), 200, "text/xml");
        }
        private void respond_unknown_xmlrpc_method(System.Net.HttpListenerContext context, MP.XmlRpc.MethodCall methodcall, string body)
        {
            this.WriteLogMethodName();

            WriteLog("Unhandled XmlRpcMethod {0}", methodcall.Name);
            WriteLog("{0}", body);

            var f = new MP.XmlRpc.Fault();
            f.FaultCode = 0;
            f.FaultString = string.Format("unsupported method {0}", methodcall.Name);

            WriteResponseString(context, f.CreateDocument().ToString(), 200, "text/xml");
        }
        private void respond_error_invalid_postid_parameter(System.Net.HttpListenerContext context, int status_code)
        {
            this.WriteLogMethodName();
            var f = new MP.XmlRpc.Fault();
            f.FaultCode = 2041;
            f.FaultString = string.Format("Invalid postid parameter");

            WriteResponseString(context, f.CreateDocument().ToString(), status_code, ContentType_TextXml);
        }