Пример #1
0
        /*  public ActionResult getWsdl(string project, string webservice)
         * {
         *    String result = "";
         *    Response.ContentType = @"text/plain";
         *    using (AxAccess axAccess = new AxAccess(this.User.Identity.Name, this.Request.Url.AbsolutePath, "Get"))
         *    {
         *        result = axAccess.executeWSDL(project, webservice);
         *    }
         *
         *    return Content(result);
         * }*/



        public ActionResult checkConnection(string project, string webservice)
        {
            String result = "";

            Response.ContentType = @"text/plain";
            ClientConfiguration clientConfig = ClientConfiguration.getClientConfiguration();

            using (AxAccess axAccess = new AxAccess(this.User.Identity.Name, this.Request.Url.AbsolutePath, "Get", clientConfig))
            {
                result = axAccess.executePing();
                //result = "SOAP " + axAccess.checkConnection(this);
            }

            AxAccessModel access = new AxAccessModel();

            if (result.ToLower().Equals("true"))
            {
                access.Connected = "Application is correct connected to :";
            }
            else
            {
                access.Connected = "Application is not correct connected to :";
            }
            return(Content(result));
        }
Пример #2
0
        public ActionResult Index()
        {
            ViewBag.Message = "Business Connectivity";
            ViewBag.Title   = "Busines integration solution";

            AxAccessModel access = new AxAccessModel();

            return(View(access));
        }