Пример #1
0
        public void Read(OutWmsOrderGetHeaderResponse structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

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


                    if ("header".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.sce.vlg.osp.wms.service.GetHeader value;

                        value = new com.vip.sce.vlg.osp.wms.service.GetHeader();
                        com.vip.sce.vlg.osp.wms.service.GetHeaderHelper.getInstance().Read(value, iprot);

                        structs.SetHeader(value);
                    }



                    if ("body".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.sce.vlg.osp.wms.service.OutWmsOrderGetBodyResponse value;

                        value = new com.vip.sce.vlg.osp.wms.service.OutWmsOrderGetBodyResponse();
                        com.vip.sce.vlg.osp.wms.service.OutWmsOrderGetBodyResponseHelper.getInstance().Read(value, iprot);

                        structs.SetBody(value);
                    }



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

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }
Пример #2
0
 public void SetBody(com.vip.sce.vlg.osp.wms.service.OutWmsOrderGetBodyResponse value)
 {
     this.body_ = value;
 }