Example #1
0
        public override void WriteObject(XmlWriter writer, object graph)
        {
            getServerAddressWithPortResponse getServerAddressWithPortResponseField = ((getServerAddressWithPortResponse)(graph));

            if (WriteParentElement(writer, true, true, graph))
            {
                schemas.datacontract.org.Service.AddressResponseDataContractSerializer getServerAddressWithPortResultDCS = new schemas.datacontract.org.Service.AddressResponseDataContractSerializer("getServerAddressWithPortResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/Service");
                getServerAddressWithPortResultDCS.BodyParts = this.BodyParts;
                getServerAddressWithPortResultDCS.WriteObject(writer, getServerAddressWithPortResponseField.getServerAddressWithPortResult);
                writer.WriteEndElement();
            }
            return;
        }
Example #2
0
        public override object ReadObject(XmlReader reader)
        {
            getServerAddressWithPortResponse getServerAddressWithPortResponseField = null;

            if (IsParentStartElement(reader, false, true))
            {
                getServerAddressWithPortResponseField = new getServerAddressWithPortResponse();
                reader.Read();
                schemas.datacontract.org.Service.AddressResponseDataContractSerializer getServerAddressWithPortResultDCS = new schemas.datacontract.org.Service.AddressResponseDataContractSerializer("getServerAddressWithPortResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/Service");
                getServerAddressWithPortResultDCS.BodyParts = this.BodyParts;
                getServerAddressWithPortResponseField.getServerAddressWithPortResult = ((schemas.datacontract.org.Service.AddressResponse)(getServerAddressWithPortResultDCS.ReadObject(reader)));
                reader.ReadEndElement();
            }
            return(getServerAddressWithPortResponseField);
        }