コード例 #1
0
        public void TestMethod1()
        {
            Boolean success = false;
            string username = "******";
            string password = "******";

            // Create a service object 
            var binding = new SforceServiceReference.SoapClient();
            var result = binding.login(null, username, password);

            //MetadataService msBinding = new MetadataService
            //{
            //    SessionHeaderValue = new SessionHeader
            //    {
            //        sessionId = result.sessionId
            //    }
            //};


            //var query = msBinding.listMetadata(new ListMetadataQuery[]
            //{
            //    new ListMetadataQuery()
            //    {
            //        type = "ApexClass",
            //        folder = "Classes"
            //    }
            //},
            //ApiVersion);
            
            
            //MetaDataServiceReference.FileProperties[] fileProperties = MetaDataServiceReference.listMetadata(queries, 25);

            //var metaDataServiceUrl = result.metadataServerUrl;

            //var svc = new MetaDataServiceReference.ListMetadataQuery {type = "Workflow"};
            //queries.add(queryWorkflow);


        }
コード例 #2
0
        public void TestMethod1()
        {
            Boolean success  = false;
            string  username = "******";
            string  password = "******";

            // Create a service object
            var binding = new SforceServiceReference.SoapClient();
            var result  = binding.login(null, username, password);

            //MetadataService msBinding = new MetadataService
            //{
            //    SessionHeaderValue = new SessionHeader
            //    {
            //        sessionId = result.sessionId
            //    }
            //};


            //var query = msBinding.listMetadata(new ListMetadataQuery[]
            //{
            //    new ListMetadataQuery()
            //    {
            //        type = "ApexClass",
            //        folder = "Classes"
            //    }
            //},
            //ApiVersion);


            //MetaDataServiceReference.FileProperties[] fileProperties = MetaDataServiceReference.listMetadata(queries, 25);

            //var metaDataServiceUrl = result.metadataServerUrl;

            //var svc = new MetaDataServiceReference.ListMetadataQuery {type = "Workflow"};
            //queries.add(queryWorkflow);
        }