Ejemplo n.º 1
0
        public GetGigResponse(XmlReader xmlReader, MessageVersion version)
        {
            m_innerMessage = Message.CreateMessage(version, Action);

            XmlDictionaryReader reader = XmlDictionaryReader.CreateDictionaryReader(xmlReader);

            this.m_linkItem = LinkItemHelper.ReadLinkItem(reader);
        }
Ejemplo n.º 2
0
        public GetGigResponse(Message message)
        {
            this.m_innerMessage = message;

            XmlDictionaryReader reader = message.GetReaderAtBodyContents();

            this.m_linkItem = LinkItemHelper.ReadLinkItem(reader);
        }
Ejemplo n.º 3
0
        public void SaveGig(Message requestMessage)
        {
            XmlDictionaryReader xmlReader = requestMessage.GetReaderAtBodyContents();

            xmlReader.MoveToContent();
            xmlReader.Read();
            xmlReader.MoveToContent();
            xmlReader.Read();

            this.m_linkItem = LinkItemHelper.ReadLinkItem(xmlReader);

            xmlReader.Close();
        }
Ejemplo n.º 4
0
        protected override void OnWriteBodyContents(System.Xml.XmlDictionaryWriter xmlWriter)
        {
/* What the message should look like...
 *
 *  <GetGigResponse xmlns="http://www.thatindigogirl.com/samples/2006/06">
 *  <Item xmlns:b="http://schemas.thatindigogirl.com/samples/2006/06" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
 *  <b:Id>xs:int</b:Id>
 *  <b:Title>xs:string</b:Title>
 *  <b:Description>xs:string</b:Description>
 *  <b:DateStart>xs:dateTime</b:DateStart>
 *  <b:DateEnd>xs:dateTime</b:DateEnd>
 *  <b:Url>xs:string</b:Url>
 *  </Item>
 *  </GetGigResponse>
 */

            xmlWriter.WriteStartElement("GetGigResponse", ns);
            xmlWriter.WriteStartElement("Item", ns);

            LinkItemHelper.WriteLinkItem(this.m_linkItem, xmlWriter);

            xmlWriter.WriteEndElement(); //Item
            xmlWriter.WriteEndElement(); //GetGigResponse
        }