public void Read(HtSaleTransferLadingBillParam structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

            if (schemeStruct != null)
            {
                while (true)
                {
                    String schemeField = iprot.ReadFieldBegin();
                    if (schemeField == null)
                    {
                        break;
                    }
                    bool needSkip = true;


                    if ("warehouse".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetWarehouse(value);
                    }



                    if ("ladingBillNumber".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetLadingBillNumber(value);
                    }



                    if ("shipmentCountry".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetShipmentCountry(value);
                    }



                    if ("arriveCountry".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetArriveCountry(value);
                    }



                    if ("customsClearanceMode".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetCustomsClearanceMode(value);
                    }



                    if ("totalWeight".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        double?value;
                        value = iprot.ReadDouble();

                        structs.SetTotalWeight(value);
                    }



                    if ("subBillNumerList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <com.vip.haitao.orderservice.service.SubLadingBillNumberVo> value;

                        value = new List <com.vip.haitao.orderservice.service.SubLadingBillNumberVo>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                com.vip.haitao.orderservice.service.SubLadingBillNumberVo elem0;

                                elem0 = new com.vip.haitao.orderservice.service.SubLadingBillNumberVo();
                                com.vip.haitao.orderservice.service.SubLadingBillNumberVoHelper.getInstance().Read(elem0, iprot);

                                value.Add(elem0);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetSubBillNumerList(value);
                    }



                    if (needSkip)
                    {
                        ProtocolUtil.skip(iprot);
                    }

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }
            public void Read(getSaleTransferLadingBillIBatchNoOrderList_args structs, Protocol iprot)
            {
                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetWarehouse(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetLadingBillNumber(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetShipmentCountry(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetArriveCountry(value);
                }



                if (true)
                {
                    string value;
                    value = iprot.ReadString();

                    structs.SetCustomsClearanceMode(value);
                }



                if (true)
                {
                    double?value;
                    value = iprot.ReadDouble();

                    structs.SetTotalWeight(value);
                }



                if (true)
                {
                    List <com.vip.haitao.orderservice.service.SubLadingBillNumberVo> value;

                    value = new List <com.vip.haitao.orderservice.service.SubLadingBillNumberVo>();
                    iprot.ReadListBegin();
                    while (true)
                    {
                        try{
                            com.vip.haitao.orderservice.service.SubLadingBillNumberVo elem0;

                            elem0 = new com.vip.haitao.orderservice.service.SubLadingBillNumberVo();
                            com.vip.haitao.orderservice.service.SubLadingBillNumberVoHelper.getInstance().Read(elem0, iprot);

                            value.Add(elem0);
                        }
                        catch (Exception e) {
                            break;
                        }
                    }

                    iprot.ReadListEnd();

                    structs.SetSubBillNumerList(value);
                }



                Validate(structs);
            }