private static void getAntraege()
        {
            var req = new AntraegeExportRequestType();

            req.Antragsstatus = AntragStatusKey.Bearbeitungbeendet;

            MyWS.getAntraegeExportResponse result = (MyWS.getAntraegeExportResponse)genericWsCall("<SOAPURL>", "<WsClientType>", "<ClientMethod>", req);
            Debug.WriteLine(result.GetAntraegeExportResponse1.ReturnCode.Description);
        }
Exemplo n.º 2
0
        private static void getSmcbAntraegeClosure()
        {
            var req = new AntraegeExportRequestType();

            req.Antragsstatus = AntragStatusKey.Bearbeitungbeendet;
            getSmcbAntraegeExportResponse result = null;

            //closure of wsmethod
            Action <MyWSClient> wsMethod = (MyWSClient client) =>
            {
                var task = client.getAntraegeExportAsync(req);
                task.Wait();
                result = task.Result;
            };

            wsCall("<MyWSUrl>", wsMethod);
            Debug.WriteLine(result.GetbAntraegeExportResponse1.ReturnCode.Description);
        }