XmlNode -> Schema -> Object

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default XmlNode -> Schema -> Object

    I apologize, this question pertains to WebServices only indirectly.

    Lets say I have an XmlNode that validates against some schema. I also have
    a class that was generated by the xsd tool using said schema.

    What is the best way to get from an XmlNode to an instance of the class?

    I would really like to make the class be a parameter to a WebMethod, but the
    schema is more rigorous than the class definition.

    I'm not sure what to do here.


    Brad Quinn Guest

  2. Similar Questions and Discussions

    1. Error returning an XmlNode from a webservice
      I am using WSE 2.0 and ASP.NET to consume two webservices. The first works fine 100% of the time - the second doesn't. The first has a signature...
    2. HttpPOST fails when using XmlNode
      Can someone explain why HTTP Post fails when implementing this simple webmethod? public XmlNode Echo(XmlNode doc) { return doc; }
    3. [WebMethod] passing, receving XmlNode Without a Namespace
      Hi all, For some reasons I sometimes use the following interface for xml passing: public XmlNode getSomeOutputXml(XmlNode someInputXml) { }...
    4. XmlNode in Web Services...
      Requirements have made me to come up with a Web Service that accepts XML as input. Figured out that XmlNode is possible to work with and it works...
    5. NullReferenceException...hitting them all today...on XmlNode return
      Hi again, I've solved my previous posting (which I'll comment in when it appears) -- I had a http://www.developersdex.com *** Don't just...
  3. #2

    Default Re: XmlNode -> Schema -> Object

    For an answer, check the response to the cross-post in
    microsoft.public.dotnet.xml


    "Brad Quinn" <brad_quinn@yahoo.com> wrote in message
    news:%235QFaVhVDHA.2364@TK2MSFTNGP09.phx.gbl...
    > I apologize, this question pertains to WebServices only indirectly.
    >
    > Lets say I have an XmlNode that validates against some schema. I also
    have
    > a class that was generated by the xsd tool using said schema.
    >
    > What is the best way to get from an XmlNode to an instance of the class?
    >
    > I would really like to make the class be a parameter to a WebMethod, but
    the
    > schema is more rigorous than the class definition.
    >
    > I'm not sure what to do here.
    >
    >

    Dino Chiesa [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139