コード例 #1
0
        private static MetadataApiClientResponse getMetadataClient(MetadataApiClientRequest request)
        {
            ConsoleHelper.WriteWarningLine("Try login in your organization:");
            PartnerLoginRequest  requestPattern  = PartnerApiService.createPartnerLoginRequest(request);
            PartnerLoginResponse responsePartner = PartnerApiService.login(requestPattern);

            ConsoleHelper.WriteDoneLine("OK! We Can Enter!");
            return(MetadataApiClientService.getMetadataClient(responsePartner.UserId, responsePartner.SessionId, responsePartner.ServerUrl));
        }
コード例 #2
0
        private static MetadataApiClientResponse generateClientResponse(Organization Organization)
        {
            MetadataApiClientRequest  request;
            MetadataApiClientResponse response;

            request = new MetadataApiClientRequest()
            {
                Username      = Organization.Username,
                Password      = Organization.Password,
                SecurityToken = Organization.SecurityToken,
                Api           = Organization.Api,
                Url           = Organization.Url,
                Production    = (Organization.Production == "true") ? true : false
            };
            response = getMetadataClient(request);
            return(response);
        }