locked
Win 8.1 - Setting namespace: Replacement for System.Web.Services.WebServiceBindingAttribute RRS feed

  • Question

  • I'm still converting my Win 7 app to WinRT in Windows 8.1.

    In the Win 7 app, I had a class decorated as follows:

    [System.Web.Services.WebServiceBindingAttribute(Name = "MyServiceSOAPBinding", Namespace = "http://xml.foo.com/jmps/MyService/v1")]

    Since we do not have System.Web in Windows RT, I'm wondering if anyone has figured out the equivalent in the Windows.Web namespace. I'm using HttpClient with HttpRequestMessage and HttpResponseMessage. If I execute the following ReadInnerXmlAsync() on the response, I see all the xml I expect. If I try to load classes from the response using DataContractSerializer, I get an error saying I have the right class name but the wrong namespace.

    string innerText = await subReader.ReadInnerXmlAsync();


    Randy

    Monday, November 18, 2013 4:25 PM

Answers

  • The solution was to create my own XmlReader class. That allowed me to change the NamespaceURI value and keep everything else. If the code below saves you some typing, or you otherwise find this helpful, please click the helpful icon to the left.

    namespace Communications
    {
        public class XmlReaderSpecifyNamespace : XmlReader
        {
            XmlReader inner;
    
            public XmlReaderSpecifyNamespace(XmlReader inner)
            {
                this.inner = inner;
            }
    
            public override int AttributeCount
            {
                get { return inner.AttributeCount; }
            }
    
            public override string BaseURI
            {
                get { return inner.BaseURI; }
            }
    
            public override bool CanReadBinaryContent
            {
                get { return inner.CanReadBinaryContent; }
            }
    
            public override bool CanReadValueChunk
            {
                get { return inner.CanReadValueChunk; }
            }
    
            public override bool CanResolveEntity
            {
                get { return inner.CanResolveEntity; }
            }
    
            //public override void Close()
            //{
            //    inner.Close();
            //}
    
            public override int Depth
            {
                get { return inner.Depth; }
            }
    
            public override bool EOF
            {
                get { return inner.EOF; }
            }
    
            public override bool HasAttributes
            {
                get { return inner.HasAttributes; }
            }
    
            public override bool HasValue
            {
                get { return inner.HasValue; }
            }
    
            public override bool IsDefault
            {
                get { return inner.IsDefault; }
            }
    
            public override bool IsEmptyElement
            {
                get { return inner.IsEmptyElement; }
            }
    
            public override string LocalName
            {
                get { return inner.LocalName; }
            }
    
            public override string Name
            {
                get { return inner.Name; }
            }
    
            public override string NamespaceURI
            {
                get
                {
                    //if (inner.NamespaceURI == "http://schemas.datacontract.org/2004/07/AnotherService")
                    //{
                    //    return "http://schemas.datacontract.org/2004/07/MyService";
                    //}
                    //else
                    //{
                    //    return inner.NamespaceURI;
                    //}
                    return "http://schemas.datacontract.org/2004/07/MyService";
                }
            }
    
            public override XmlNameTable NameTable
            {
                get { return inner.NameTable; }
            }
    
            public override XmlNodeType NodeType
            {
                get { return inner.NodeType; }
            }
    
            public override string Prefix
            {
                get { return inner.Prefix; }
            }
    
            public override ReadState ReadState
            {
                get { return inner.ReadState; }
            }
    
            public override XmlReaderSettings Settings
            {
                get { return inner.Settings; }
            }
    
            public override string Value
            {
                get { return inner.Value; }
            }
    
            public override Type ValueType
            {
                get { return inner.ValueType; }
            }
            public override string XmlLang
            {
                get { return inner.XmlLang; }
            }
            public override XmlSpace XmlSpace
            {
                get { return inner.XmlSpace; }
            }
    
            public override string this[int i]
            {
                get { return inner[i]; }
            }
    
            public override string this[string name]
            {
                get { return inner[name]; }
            }
    
            public override string this[string name, string namespaceURI]
            {
                get { return inner[name, namespaceURI]; }
            }
    
            public static new XmlReader Create(Stream input)
            {
                return XmlReader.Create(input);
            }
    
            public static new XmlReader Create(string inputUri)
            {
                return XmlReader.Create(inputUri);
            }
    
            public static new XmlReader Create(TextReader input)
            {
                return XmlReader.Create(input);
            }
    
            public static new XmlReader Create(Stream input, XmlReaderSettings settings)
            {
                return XmlReader.Create(input, settings);
            }
    
            public static new XmlReader Create(string inputUri, XmlReaderSettings settings)
            {
                return XmlReader.Create(inputUri, settings);
            }
    
            public static new XmlReader Create(TextReader input, XmlReaderSettings settings)
            {
                return XmlReader.Create(input, settings);
            }
    
            public static new XmlReader Create(XmlReader reader, XmlReaderSettings settings)
            {
                return XmlReader.Create(reader, settings);
            }
    
            public static new XmlReader Create(Stream input, XmlReaderSettings settings, XmlParserContext inputContext)
            {
                return XmlReader.Create(input, settings, inputContext);
            }
    
            public static new XmlReader Create(TextReader input, XmlReaderSettings settings, XmlParserContext inputContext)
            {
                return XmlReader.Create(input, settings, inputContext);
            }
    
            public new void Dispose()
            {
                base.Dispose();
            }
    
            protected override void Dispose(bool disposing)
            {
                inner.Dispose();
            }
    
            public override string GetAttribute(int i)
            {
                return inner.GetAttribute(i);
            }
    
            public override string GetAttribute(string name, string namespaceURI)
            {
                return inner.GetAttribute(name, namespaceURI);
            }
    
            public override string GetAttribute(string name)
            {
                return inner.GetAttribute(name);
            }
    
            public override Task<string> GetValueAsync()
            {
                return inner.GetValueAsync();
            }
    
            public static new bool IsName(string str)
            {
                return XmlReader.IsName(str);
            }
    
            public static new bool IsNameToken(string str)
            {
                return XmlReader.IsNameToken(str);
            }
    
            public override bool IsStartElement()
            {
                return inner.IsStartElement();
            }
    
            public override bool IsStartElement(string name)
            {
                return inner.IsStartElement(name);
            }
    
            public override bool IsStartElement(string localname, string ns)
            {
                return inner.IsStartElement(localname, ns);
            }
    
            public override string LookupNamespace(string prefix)
            {
                return inner.LookupNamespace(prefix);
            }
    
            public override void MoveToAttribute(int i)
            {
                inner.MoveToAttribute(i);
            }
    
            public override bool MoveToAttribute(string name)
            {
                return inner.MoveToAttribute(name);
            }
    
            public override bool MoveToAttribute(string name, string ns)
            {
                return inner.MoveToAttribute(name, ns);
            }
    
            public override XmlNodeType MoveToContent()
            {
                return inner.MoveToContent();
            }
    
            public override async Task<XmlNodeType> MoveToContentAsync()
            {
                return await inner.MoveToContentAsync();
            }
    
            public override bool MoveToElement()
            {
                return inner.MoveToElement();
            }
    
            public override bool MoveToFirstAttribute()
            {
                return inner.MoveToFirstAttribute();
            }
    
            public override bool MoveToNextAttribute()
            {
                return inner.MoveToNextAttribute();
            }
    
            public override bool Read()
            {
                return inner.Read();
            }
    
            public override Task<bool> ReadAsync()
            {
                return inner.ReadAsync();
            }
    
            public override bool ReadAttributeValue()
            {
                return inner.ReadAttributeValue();
            }
    
            public override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver)
            {
                return inner.ReadContentAs(returnType, namespaceResolver);
            }
    
            public override Task<object> ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver)
            {
                return inner.ReadContentAsAsync(returnType, namespaceResolver);
            }
    
            public override int ReadContentAsBase64(byte[] buffer, int index, int count)
            {
                return inner.ReadContentAsBase64(buffer, index, count);
            }
    
            public override Task<int> ReadContentAsBase64Async(byte[] buffer, int index, int count)
            {
                return inner.ReadContentAsBase64Async(buffer, index, count);
            }
    
            public override int ReadContentAsBinHex(byte[] buffer, int index, int count)
            {
                return inner.ReadContentAsBinHex(buffer, index, count);
            }
    
            public override Task<int> ReadContentAsBinHexAsync(byte[] buffer, int index, int count)
            {
                return inner.ReadContentAsBinHexAsync(buffer, index, count);
            }
    
            public override bool ReadContentAsBoolean()
            {
                return inner.ReadContentAsBoolean();
            }
    
            public override DateTimeOffset ReadContentAsDateTimeOffset()
            {
                return inner.ReadContentAsDateTimeOffset();
            }
    
            public override decimal ReadContentAsDecimal()
            {
                return inner.ReadContentAsDecimal();
            }
    
            public override double ReadContentAsDouble()
            {
                return inner.ReadContentAsDouble();
            }
    
            public override float ReadContentAsFloat()
            {
                return inner.ReadContentAsFloat();
            }
    
            public override int ReadContentAsInt()
            {
                return inner.ReadContentAsInt();
            }
    
            public override long ReadContentAsLong()
            {
                return inner.ReadContentAsLong();
            }
    
            public override object ReadContentAsObject()
            {
                return inner.ReadContentAsObject();
            }
    
            public override Task<object> ReadContentAsObjectAsync()
            {
                return inner.ReadContentAsObjectAsync();
            }
    
            public override string ReadContentAsString()
            {
                return inner.ReadContentAsString();
            }
    
            public override Task<string> ReadContentAsStringAsync()
            {
                return inner.ReadContentAsStringAsync();
            }
    
            public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver)
            {
                return inner.ReadElementContentAs(returnType, namespaceResolver);
            }
    
            public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI)
            {
                return inner.ReadElementContentAs(returnType, namespaceResolver, localName, namespaceURI);
            }
    
            public override Task<object> ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver)
            {
                return inner.ReadElementContentAsAsync(returnType, namespaceResolver);
            }
    
            public override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
            {
                return inner.ReadElementContentAsBase64(buffer, index, count);
            }
    
            public override Task<int> ReadElementContentAsBase64Async(byte[] buffer, int index, int count)
            {
                return inner.ReadElementContentAsBase64Async(buffer, index, count);
            }
    
            public override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
            {
                return inner.ReadElementContentAsBinHex(buffer, index, count);
            }
    
            public override Task<int> ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count)
            {
                return inner.ReadElementContentAsBinHexAsync(buffer, index, count);
            }
    
            public override bool ReadElementContentAsBoolean()
            {
                return inner.ReadElementContentAsBoolean();
            }
    
            public override bool ReadElementContentAsBoolean(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsBoolean(localName, namespaceURI);
            }
    
            public override decimal ReadElementContentAsDecimal()
            {
                return inner.ReadElementContentAsDecimal();
            }
    
            public override decimal ReadElementContentAsDecimal(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsDecimal(localName, namespaceURI);
            }
    
            public override double ReadElementContentAsDouble()
            {
                return inner.ReadElementContentAsDouble();
            }
    
            public override double ReadElementContentAsDouble(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsDouble(localName, namespaceURI);
            }
    
            public override float ReadElementContentAsFloat()
            {
                return inner.ReadElementContentAsFloat();
            }
    
            public override float ReadElementContentAsFloat(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsFloat(localName, namespaceURI);
            }
    
            public override int ReadElementContentAsInt()
            {
                return inner.ReadElementContentAsInt();
            }
    
            public override int ReadElementContentAsInt(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsInt(localName, namespaceURI);
            }
    
            public override long ReadElementContentAsLong()
            {
                return inner.ReadElementContentAsLong();
            }
    
            public override long ReadElementContentAsLong(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsLong(localName, namespaceURI);
            }
    
            public override object ReadElementContentAsObject()
            {
                return inner.ReadElementContentAsObject();
            }
    
            public override object ReadElementContentAsObject(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsObject(localName, namespaceURI);
            }
    
            public override async Task<object> ReadElementContentAsObjectAsync()
            {
                return await inner.ReadElementContentAsObjectAsync();
            }
    
            public override string ReadElementContentAsString()
            {
                return inner.ReadElementContentAsString();
            }
    
            public override string ReadElementContentAsString(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsString(localName, namespaceURI);
            }
    
            public override Task<string> ReadElementContentAsStringAsync()
            {
                return inner.ReadElementContentAsStringAsync();
            }
    
            public override void ReadEndElement()
            {
                inner.ReadEndElement();
            }
    
            public override string ReadInnerXml()
            {
                return inner.ReadInnerXml();
            }
    
            public override Task<string> ReadInnerXmlAsync()
            {
                return inner.ReadInnerXmlAsync();
            }
    
            public override string ReadOuterXml()
            {
                return inner.ReadOuterXml();
            }
    
            public override Task<string> ReadOuterXmlAsync()
            {
                return inner.ReadOuterXmlAsync();
            }
    
            public override void ReadStartElement()
            {
                inner.ReadStartElement();
            }
    
            public override void ReadStartElement(string name)
            {
                inner.ReadStartElement(name);
            }
    
            public override void ReadStartElement(string localname, string ns)
            {
                inner.ReadStartElement(localname, ns);
            }
    
            public override XmlReader ReadSubtree()
            {
                return inner.ReadSubtree();
            }
    
            public override bool ReadToDescendant(string name)
            {
                return inner.ReadToDescendant(name);
            }
    
            public override bool ReadToDescendant(string localName, string namespaceURI)
            {
                return inner.ReadToDescendant(localName, namespaceURI);
            }
    
            public override bool ReadToFollowing(string name)
            {
                return inner.ReadToFollowing(name);
            }
    
            public override bool ReadToFollowing(string localName, string namespaceURI)
            {
                return inner.ReadToFollowing(localName, namespaceURI);
            }
    
            public override bool ReadToNextSibling(string name)
            {
                return inner.ReadToNextSibling(name);
            }
    
            public override bool ReadToNextSibling(string localName, string namespaceURI)
            {
                return inner.ReadToNextSibling(localName, namespaceURI);
            }
    
            public override int ReadValueChunk(char[] buffer, int index, int count)
            {
                return inner.ReadValueChunk(buffer, index, count);
            }
    
            public override Task<int> ReadValueChunkAsync(char[] buffer, int index, int count)
            {
                return inner.ReadValueChunkAsync(buffer, index, count);
            }
    
            public override void ResolveEntity()
            {
                inner.ResolveEntity();
            }
    
            public override void Skip()
            {
                inner.Skip();
            }
    
            public override Task SkipAsync()
            {
                return inner.SkipAsync();
            }
        }
    }
    


    Randy

    Tuesday, November 19, 2013 2:12 PM

All replies

  • It might be helpful if I put the actual error message:

    Error in line 1 position 130. Expecting element 'QueryResponse' from namespace 'http://schemas.datacontract.org/2004/07/MyNamespace.MyAdvisory'.. Encountered 'Element'  with name 'QueryResponse', namespace 'http://xml.foo.com/product/myAdvisoryService/v1'.

    MyNamespace is literally the namespace at the top of the class where I'm doing this.

    http://xml.foo.com is my web service sever.


    Randy

    Monday, November 18, 2013 4:50 PM
  • The solution was to create my own XmlReader class. That allowed me to change the NamespaceURI value and keep everything else. If the code below saves you some typing, or you otherwise find this helpful, please click the helpful icon to the left.

    namespace Communications
    {
        public class XmlReaderSpecifyNamespace : XmlReader
        {
            XmlReader inner;
    
            public XmlReaderSpecifyNamespace(XmlReader inner)
            {
                this.inner = inner;
            }
    
            public override int AttributeCount
            {
                get { return inner.AttributeCount; }
            }
    
            public override string BaseURI
            {
                get { return inner.BaseURI; }
            }
    
            public override bool CanReadBinaryContent
            {
                get { return inner.CanReadBinaryContent; }
            }
    
            public override bool CanReadValueChunk
            {
                get { return inner.CanReadValueChunk; }
            }
    
            public override bool CanResolveEntity
            {
                get { return inner.CanResolveEntity; }
            }
    
            //public override void Close()
            //{
            //    inner.Close();
            //}
    
            public override int Depth
            {
                get { return inner.Depth; }
            }
    
            public override bool EOF
            {
                get { return inner.EOF; }
            }
    
            public override bool HasAttributes
            {
                get { return inner.HasAttributes; }
            }
    
            public override bool HasValue
            {
                get { return inner.HasValue; }
            }
    
            public override bool IsDefault
            {
                get { return inner.IsDefault; }
            }
    
            public override bool IsEmptyElement
            {
                get { return inner.IsEmptyElement; }
            }
    
            public override string LocalName
            {
                get { return inner.LocalName; }
            }
    
            public override string Name
            {
                get { return inner.Name; }
            }
    
            public override string NamespaceURI
            {
                get
                {
                    //if (inner.NamespaceURI == "http://schemas.datacontract.org/2004/07/AnotherService")
                    //{
                    //    return "http://schemas.datacontract.org/2004/07/MyService";
                    //}
                    //else
                    //{
                    //    return inner.NamespaceURI;
                    //}
                    return "http://schemas.datacontract.org/2004/07/MyService";
                }
            }
    
            public override XmlNameTable NameTable
            {
                get { return inner.NameTable; }
            }
    
            public override XmlNodeType NodeType
            {
                get { return inner.NodeType; }
            }
    
            public override string Prefix
            {
                get { return inner.Prefix; }
            }
    
            public override ReadState ReadState
            {
                get { return inner.ReadState; }
            }
    
            public override XmlReaderSettings Settings
            {
                get { return inner.Settings; }
            }
    
            public override string Value
            {
                get { return inner.Value; }
            }
    
            public override Type ValueType
            {
                get { return inner.ValueType; }
            }
            public override string XmlLang
            {
                get { return inner.XmlLang; }
            }
            public override XmlSpace XmlSpace
            {
                get { return inner.XmlSpace; }
            }
    
            public override string this[int i]
            {
                get { return inner[i]; }
            }
    
            public override string this[string name]
            {
                get { return inner[name]; }
            }
    
            public override string this[string name, string namespaceURI]
            {
                get { return inner[name, namespaceURI]; }
            }
    
            public static new XmlReader Create(Stream input)
            {
                return XmlReader.Create(input);
            }
    
            public static new XmlReader Create(string inputUri)
            {
                return XmlReader.Create(inputUri);
            }
    
            public static new XmlReader Create(TextReader input)
            {
                return XmlReader.Create(input);
            }
    
            public static new XmlReader Create(Stream input, XmlReaderSettings settings)
            {
                return XmlReader.Create(input, settings);
            }
    
            public static new XmlReader Create(string inputUri, XmlReaderSettings settings)
            {
                return XmlReader.Create(inputUri, settings);
            }
    
            public static new XmlReader Create(TextReader input, XmlReaderSettings settings)
            {
                return XmlReader.Create(input, settings);
            }
    
            public static new XmlReader Create(XmlReader reader, XmlReaderSettings settings)
            {
                return XmlReader.Create(reader, settings);
            }
    
            public static new XmlReader Create(Stream input, XmlReaderSettings settings, XmlParserContext inputContext)
            {
                return XmlReader.Create(input, settings, inputContext);
            }
    
            public static new XmlReader Create(TextReader input, XmlReaderSettings settings, XmlParserContext inputContext)
            {
                return XmlReader.Create(input, settings, inputContext);
            }
    
            public new void Dispose()
            {
                base.Dispose();
            }
    
            protected override void Dispose(bool disposing)
            {
                inner.Dispose();
            }
    
            public override string GetAttribute(int i)
            {
                return inner.GetAttribute(i);
            }
    
            public override string GetAttribute(string name, string namespaceURI)
            {
                return inner.GetAttribute(name, namespaceURI);
            }
    
            public override string GetAttribute(string name)
            {
                return inner.GetAttribute(name);
            }
    
            public override Task<string> GetValueAsync()
            {
                return inner.GetValueAsync();
            }
    
            public static new bool IsName(string str)
            {
                return XmlReader.IsName(str);
            }
    
            public static new bool IsNameToken(string str)
            {
                return XmlReader.IsNameToken(str);
            }
    
            public override bool IsStartElement()
            {
                return inner.IsStartElement();
            }
    
            public override bool IsStartElement(string name)
            {
                return inner.IsStartElement(name);
            }
    
            public override bool IsStartElement(string localname, string ns)
            {
                return inner.IsStartElement(localname, ns);
            }
    
            public override string LookupNamespace(string prefix)
            {
                return inner.LookupNamespace(prefix);
            }
    
            public override void MoveToAttribute(int i)
            {
                inner.MoveToAttribute(i);
            }
    
            public override bool MoveToAttribute(string name)
            {
                return inner.MoveToAttribute(name);
            }
    
            public override bool MoveToAttribute(string name, string ns)
            {
                return inner.MoveToAttribute(name, ns);
            }
    
            public override XmlNodeType MoveToContent()
            {
                return inner.MoveToContent();
            }
    
            public override async Task<XmlNodeType> MoveToContentAsync()
            {
                return await inner.MoveToContentAsync();
            }
    
            public override bool MoveToElement()
            {
                return inner.MoveToElement();
            }
    
            public override bool MoveToFirstAttribute()
            {
                return inner.MoveToFirstAttribute();
            }
    
            public override bool MoveToNextAttribute()
            {
                return inner.MoveToNextAttribute();
            }
    
            public override bool Read()
            {
                return inner.Read();
            }
    
            public override Task<bool> ReadAsync()
            {
                return inner.ReadAsync();
            }
    
            public override bool ReadAttributeValue()
            {
                return inner.ReadAttributeValue();
            }
    
            public override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver)
            {
                return inner.ReadContentAs(returnType, namespaceResolver);
            }
    
            public override Task<object> ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver)
            {
                return inner.ReadContentAsAsync(returnType, namespaceResolver);
            }
    
            public override int ReadContentAsBase64(byte[] buffer, int index, int count)
            {
                return inner.ReadContentAsBase64(buffer, index, count);
            }
    
            public override Task<int> ReadContentAsBase64Async(byte[] buffer, int index, int count)
            {
                return inner.ReadContentAsBase64Async(buffer, index, count);
            }
    
            public override int ReadContentAsBinHex(byte[] buffer, int index, int count)
            {
                return inner.ReadContentAsBinHex(buffer, index, count);
            }
    
            public override Task<int> ReadContentAsBinHexAsync(byte[] buffer, int index, int count)
            {
                return inner.ReadContentAsBinHexAsync(buffer, index, count);
            }
    
            public override bool ReadContentAsBoolean()
            {
                return inner.ReadContentAsBoolean();
            }
    
            public override DateTimeOffset ReadContentAsDateTimeOffset()
            {
                return inner.ReadContentAsDateTimeOffset();
            }
    
            public override decimal ReadContentAsDecimal()
            {
                return inner.ReadContentAsDecimal();
            }
    
            public override double ReadContentAsDouble()
            {
                return inner.ReadContentAsDouble();
            }
    
            public override float ReadContentAsFloat()
            {
                return inner.ReadContentAsFloat();
            }
    
            public override int ReadContentAsInt()
            {
                return inner.ReadContentAsInt();
            }
    
            public override long ReadContentAsLong()
            {
                return inner.ReadContentAsLong();
            }
    
            public override object ReadContentAsObject()
            {
                return inner.ReadContentAsObject();
            }
    
            public override Task<object> ReadContentAsObjectAsync()
            {
                return inner.ReadContentAsObjectAsync();
            }
    
            public override string ReadContentAsString()
            {
                return inner.ReadContentAsString();
            }
    
            public override Task<string> ReadContentAsStringAsync()
            {
                return inner.ReadContentAsStringAsync();
            }
    
            public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver)
            {
                return inner.ReadElementContentAs(returnType, namespaceResolver);
            }
    
            public override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI)
            {
                return inner.ReadElementContentAs(returnType, namespaceResolver, localName, namespaceURI);
            }
    
            public override Task<object> ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver)
            {
                return inner.ReadElementContentAsAsync(returnType, namespaceResolver);
            }
    
            public override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
            {
                return inner.ReadElementContentAsBase64(buffer, index, count);
            }
    
            public override Task<int> ReadElementContentAsBase64Async(byte[] buffer, int index, int count)
            {
                return inner.ReadElementContentAsBase64Async(buffer, index, count);
            }
    
            public override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
            {
                return inner.ReadElementContentAsBinHex(buffer, index, count);
            }
    
            public override Task<int> ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count)
            {
                return inner.ReadElementContentAsBinHexAsync(buffer, index, count);
            }
    
            public override bool ReadElementContentAsBoolean()
            {
                return inner.ReadElementContentAsBoolean();
            }
    
            public override bool ReadElementContentAsBoolean(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsBoolean(localName, namespaceURI);
            }
    
            public override decimal ReadElementContentAsDecimal()
            {
                return inner.ReadElementContentAsDecimal();
            }
    
            public override decimal ReadElementContentAsDecimal(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsDecimal(localName, namespaceURI);
            }
    
            public override double ReadElementContentAsDouble()
            {
                return inner.ReadElementContentAsDouble();
            }
    
            public override double ReadElementContentAsDouble(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsDouble(localName, namespaceURI);
            }
    
            public override float ReadElementContentAsFloat()
            {
                return inner.ReadElementContentAsFloat();
            }
    
            public override float ReadElementContentAsFloat(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsFloat(localName, namespaceURI);
            }
    
            public override int ReadElementContentAsInt()
            {
                return inner.ReadElementContentAsInt();
            }
    
            public override int ReadElementContentAsInt(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsInt(localName, namespaceURI);
            }
    
            public override long ReadElementContentAsLong()
            {
                return inner.ReadElementContentAsLong();
            }
    
            public override long ReadElementContentAsLong(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsLong(localName, namespaceURI);
            }
    
            public override object ReadElementContentAsObject()
            {
                return inner.ReadElementContentAsObject();
            }
    
            public override object ReadElementContentAsObject(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsObject(localName, namespaceURI);
            }
    
            public override async Task<object> ReadElementContentAsObjectAsync()
            {
                return await inner.ReadElementContentAsObjectAsync();
            }
    
            public override string ReadElementContentAsString()
            {
                return inner.ReadElementContentAsString();
            }
    
            public override string ReadElementContentAsString(string localName, string namespaceURI)
            {
                return inner.ReadElementContentAsString(localName, namespaceURI);
            }
    
            public override Task<string> ReadElementContentAsStringAsync()
            {
                return inner.ReadElementContentAsStringAsync();
            }
    
            public override void ReadEndElement()
            {
                inner.ReadEndElement();
            }
    
            public override string ReadInnerXml()
            {
                return inner.ReadInnerXml();
            }
    
            public override Task<string> ReadInnerXmlAsync()
            {
                return inner.ReadInnerXmlAsync();
            }
    
            public override string ReadOuterXml()
            {
                return inner.ReadOuterXml();
            }
    
            public override Task<string> ReadOuterXmlAsync()
            {
                return inner.ReadOuterXmlAsync();
            }
    
            public override void ReadStartElement()
            {
                inner.ReadStartElement();
            }
    
            public override void ReadStartElement(string name)
            {
                inner.ReadStartElement(name);
            }
    
            public override void ReadStartElement(string localname, string ns)
            {
                inner.ReadStartElement(localname, ns);
            }
    
            public override XmlReader ReadSubtree()
            {
                return inner.ReadSubtree();
            }
    
            public override bool ReadToDescendant(string name)
            {
                return inner.ReadToDescendant(name);
            }
    
            public override bool ReadToDescendant(string localName, string namespaceURI)
            {
                return inner.ReadToDescendant(localName, namespaceURI);
            }
    
            public override bool ReadToFollowing(string name)
            {
                return inner.ReadToFollowing(name);
            }
    
            public override bool ReadToFollowing(string localName, string namespaceURI)
            {
                return inner.ReadToFollowing(localName, namespaceURI);
            }
    
            public override bool ReadToNextSibling(string name)
            {
                return inner.ReadToNextSibling(name);
            }
    
            public override bool ReadToNextSibling(string localName, string namespaceURI)
            {
                return inner.ReadToNextSibling(localName, namespaceURI);
            }
    
            public override int ReadValueChunk(char[] buffer, int index, int count)
            {
                return inner.ReadValueChunk(buffer, index, count);
            }
    
            public override Task<int> ReadValueChunkAsync(char[] buffer, int index, int count)
            {
                return inner.ReadValueChunkAsync(buffer, index, count);
            }
    
            public override void ResolveEntity()
            {
                inner.ResolveEntity();
            }
    
            public override void Skip()
            {
                inner.Skip();
            }
    
            public override Task SkipAsync()
            {
                return inner.SkipAsync();
            }
        }
    }
    


    Randy

    Tuesday, November 19, 2013 2:12 PM