Beispiel #1
0
 static public WebServiceFactory getInstance()
 {
     if (ws == null)
     {
         ws = new WebServiceFactory();
     }
     return(ws);
 }
Beispiel #2
0
        public override void handlePOSTRequest(HttpProcessor p, StreamReader inputData)
        {
            Console.WriteLine("POST request: {0}", p.http_url);
            string data = inputData.ReadToEnd();

            try
            {
                p.outputStream.Write(WebServiceFactory.getInstance().invokeService(p.http_url, data));
            }
            catch (Exception e)
            {
                p.writeFailure();
                //p.outputStream.WriteLine(e.StackTrace);
            }
        }