1. In a distributed messaging system, a method of simultaneously exposing a message infoset as both an XML view and a Type view such that at least a portion of the message infoset can be written using an XML API and read using a Type API in order to efficiently process values of the message infoset, the method comprising: receiving a message infoset written using an XML writer, the message infoset including a common set of headers that exposes one or more values as both XML and typed properties; and retrieving the one or more values using a Typed API, which can read one or more of the type properties without regard to how the message is encoded using XML.