示例#1
0
        public override void WriteObject(XmlWriter writer, object graph)
        {
            GetDataResponse GetDataResponseField = ((GetDataResponse)(graph));

            if (WriteParentElement(writer, true, true, graph))
            {
                schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer GetDataResultDCS = new schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer("GetDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService");
                GetDataResultDCS.BodyParts = this.BodyParts;
                GetDataResultDCS.WriteObject(writer, GetDataResponseField.GetDataResult);
                writer.WriteEndElement();
            }
            return;
        }
示例#2
0
        public override object ReadObject(XmlReader reader)
        {
            GetDataResponse GetDataResponseField = null;

            if (IsParentStartElement(reader, false, true))
            {
                GetDataResponseField = new GetDataResponse();
                reader.Read();
                schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer GetDataResultDCS = new schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer("GetDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService");
                GetDataResultDCS.BodyParts         = this.BodyParts;
                GetDataResponseField.GetDataResult = ((schemas.datacontract.org.WcfMtomService.MtomData)(GetDataResultDCS.ReadObject(reader)));
                reader.ReadEndElement();
            }
            return(GetDataResponseField);
        }
示例#3
0
 public override object ReadObject(XmlReader reader)
 {
     GetDataResponse GetDataResponseField = null;
     if (IsParentStartElement(reader, false, true))
     {
         GetDataResponseField = new GetDataResponse();
         reader.Read();
         schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer GetDataResultDCS = new schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer("GetDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService");
         GetDataResultDCS.BodyParts = this.BodyParts;
         GetDataResponseField.GetDataResult = ((schemas.datacontract.org.WcfMtomService.MtomData)(GetDataResultDCS.ReadObject(reader)));
         reader.ReadEndElement();
     }
     return GetDataResponseField;
 }