Example #1
0
        public static void getContentTypes(StreamWriter sw, WSSAuthentication.Authentication wssAuthentication, string url)
        {
            LMD.ListCheck.WS_WebSvcWebs.Webs myservice = new LMD.ListCheck.WS_WebSvcWebs.Webs();
            myservice.CookieContainer = wssAuthentication.CookieContainer;
            myservice.Url = url + "/_vti_bin/webs.asmx";
            try
            {

                System.Xml.XmlNode nodes = myservice.GetContentTypes();

                foreach (System.Xml.XmlNode node in nodes)
                {
                    if (node.Name == "ContentType")
                    {

                            sw.WriteLine("Url: " + url + ", Field SchemaXml: " + node.OuterXml);

                    }

                }
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message);
            }
        }