コード例 #1
0
ファイル: SC_WebService.cs プロジェクト: leeleonis/QD
        public SC_WebService(string UserName, string Password)
        {
            // OrderService
            OS_SellerCloud = new SCServiceSoapClient();
            OS_SellerCloud.InnerChannel.OperationTimeout = new TimeSpan(0, 10, 0);
            OS_AuthHeader = new QDLogistics.OrderService.AuthHeader();
            OS_Options    = new QDLogistics.OrderService.ServiceOptions();

            // OrderCreationService
            OCS_SellerCloud = new OrderCreationServiceSoapClient();
            OCS_SellerCloud.InnerChannel.OperationTimeout = new TimeSpan(0, 10, 0);
            OCS_AuthHeader = new QDLogistics.OrderCreationService.AuthHeader();

            // PurchaseOrderService
            PO_SellerCloud = new POServicesSoapClient();
            PO_SellerCloud.InnerChannel.OperationTimeout = new TimeSpan(0, 10, 0);
            PO_AuthHeader = new QDLogistics.PurchaseOrderService.AuthHeader();
            PO_Options    = new QDLogistics.PurchaseOrderService.ServiceOptions();

            OS_AuthHeader.UserName = OCS_AuthHeader.UserName = PO_AuthHeader.UserName = UserName; //"*****@*****.**"
            OS_AuthHeader.Password = OCS_AuthHeader.Password = PO_AuthHeader.Password = Password; //"timfromweypro"

            SyncOn = DateTime.UtcNow;
        }
コード例 #2
0
ファイル: SC_WebService.cs プロジェクト: leeleonis/QD
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
            }

            OS_SellerCloud = null;
            OS_AuthHeader  = null;
            OS_Options     = null;

            OCS_SellerCloud = null;
            OCS_AuthHeader  = null;

            PO_SellerCloud = null;
            PO_AuthHeader  = null;
            PO_Options     = null;

            disposed = true;
        }