예제 #1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            CK1.CK1SoapClient clint = new CK1.CK1SoapClient();
            UserKeyAndToken   ukt   = new UserKeyAndToken();

            CK1.OutStoreGetPackageRequest request = new CK1.OutStoreGetPackageRequest()
            {
                MessageID = txtMessageID.Text,
                UserKey   = ukt.getUserKey(),
                Token     = ukt.getToken(),
                Custom    = txtCustom.Text,
                Sign      = txtItemSign.Text,
                Version   = txtVersion.Text,
            };

            CK1.OutStoreGetPackageResponse response = clint.OutStoreGetPackage(request);

            lblAck.Text          = response.Ack.ToString();
            lblInvocationID.Text = response.InvocationID;
            lblMessage.Text      = response.Message;

            if (response.PackageDetail != null)
            {
                lblPackageDetail.Text = response.PackageDetail.ToString();
            }


            pnlResponse.Visible = true;
            pnlRequest.Visible  = false;
        }
예제 #2
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            CK1.CK1SoapClient clint = new CK1.CK1SoapClient();
            UserKeyAndToken ukt = new UserKeyAndToken();
            CK1.OutStoreGetPackageRequest request = new CK1.OutStoreGetPackageRequest()
            {
                MessageID = txtMessageID.Text,
                UserKey = ukt.getUserKey(),
                Token = ukt.getToken(),
                Custom = txtCustom.Text,
                Sign = txtItemSign.Text,
                Version = txtVersion.Text,
            };

            CK1.OutStoreGetPackageResponse response = clint.OutStoreGetPackage(request);

            lblAck.Text = response.Ack.ToString();
            lblInvocationID.Text = response.InvocationID;
            lblMessage.Text = response.Message;

            if (response.PackageDetail != null)
            {
                lblPackageDetail.Text = response.PackageDetail.ToString();
            }

            pnlResponse.Visible = true;
            pnlRequest.Visible = false;
        }
예제 #3
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            var clint = new CK1.CK1SoapClient();
            UserKeyAndToken ukt = new UserKeyAndToken();
            var request = new CK1.OutStoreGetPackageRequest()
            {
                MessageID = txtMessageID.Text,
                UserKey = ukt.getUserKey(),
                Token = ukt.getToken(),
                Custom = txtCustom.Text,
                Sign = txtSign.Text,
                Version = txtVersion.Text,
            };

            var response = clint.OutStoreGetPackage(request);

            lblAck.Text = response.Ack.ToString();
            lblInvocationID.Text = response.InvocationID;
            lblMessage.Text = response.Message;

            if (response.PackageDetail != null)
            {
                lblCustom.Text = response.PackageDetail.Custom;
                lblPackageList.Text = response.PackageDetail.ProductList.ToString();
                lblRemark.Text = response.PackageDetail.Remark;
                lblServices.Text = response.PackageDetail.Services;
                lblShipping.Text = response.PackageDetail.Shipping.ToString();
                lblShipToAddress.Text = response.PackageDetail.ShipToAddress.ToString();
                lblSign.Text = response.PackageDetail.Sign;
                lblState.Text = response.PackageDetail.State.ToString();
                lblTrackingNumber.Text = response.PackageDetail.TrackingNumber;
            }

            pnlResponse.Visible = true;
            pnlRequest.Visible = false;
        }
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            var             clint   = new CK1.CK1SoapClient();
            UserKeyAndToken ukt     = new UserKeyAndToken();
            var             request = new CK1.OutStoreGetPackageRequest()
            {
                MessageID = txtMessageID.Text,
                UserKey   = ukt.getUserKey(),
                Token     = ukt.getToken(),
                Custom    = txtCustom.Text,
                Sign      = txtSign.Text,
                Version   = txtVersion.Text,
            };

            var response = clint.OutStoreGetPackage(request);

            lblAck.Text          = response.Ack.ToString();
            lblInvocationID.Text = response.InvocationID;
            lblMessage.Text      = response.Message;

            if (response.PackageDetail != null)
            {
                lblCustom.Text         = response.PackageDetail.Custom;
                lblPackageList.Text    = response.PackageDetail.ProductList.ToString();
                lblRemark.Text         = response.PackageDetail.Remark;
                lblServices.Text       = response.PackageDetail.Services;
                lblShipping.Text       = response.PackageDetail.Shipping.ToString();
                lblShipToAddress.Text  = response.PackageDetail.ShipToAddress.ToString();
                lblSign.Text           = response.PackageDetail.Sign;
                lblState.Text          = response.PackageDetail.State.ToString();
                lblTrackingNumber.Text = response.PackageDetail.TrackingNumber;
            }

            pnlResponse.Visible = true;
            pnlRequest.Visible  = false;
        }