protected override void OnReadBodyContents(XmlDictionaryReader reader) { reader.ReadStartElement("BaseObjectSearchResponse", "http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess"); ResultSerializer.Deserialize(reader, ResultSerializer.ResultDialect.XPath1, out this._entry); DirectoryControlSerializer.Deserialize(reader, out this._controls, false, false); reader.ReadEndElement(); }
protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { writer.WriteStartElement("Pull", "http://schemas.xmlsoap.org/ws/2004/09/enumeration"); if (this._enumerationContext != null) { writer.WriteElementString("EnumerationContext", "http://schemas.xmlsoap.org/ws/2004/09/enumeration", this._enumerationContext); } if (this._timeout.HasValue) { writer.WriteStartElement("MaxTime", "http://schemas.xmlsoap.org/ws/2004/09/enumeration"); writer.WriteValue(this._timeout.Value); writer.WriteEndElement(); } if (this._maxElements.HasValue) { writer.WriteStartElement("MaxElements", "http://schemas.xmlsoap.org/ws/2004/09/enumeration"); writer.WriteValue(this._maxElements.Value); writer.WriteEndElement(); } if (this._controls != null) { DirectoryControlSerializer.Serialize(writer, this._controls); } writer.WriteEndElement(); }
protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { base.OnWriteBodyContents(writer); if (this._controls != null) { DirectoryControlSerializer.Serialize(writer, this._controls); } }
protected override void OnReadBodyContents(XmlDictionaryReader reader) { base.OnReadBodyContents(reader); reader.ReadStartElement("ResourceCreated", "http://schemas.xmlsoap.org/ws/2004/09/transfer"); reader.Skip(); reader.ReadStartElement("ReferenceParameters", "http://www.w3.org/2005/08/addressing"); XmlUtility.DeserializeObjectReference(reader, out this._objectReference); this._instance = reader.ReadElementString("instance", "http://schemas.microsoft.com/2008/1/ActiveDirectory"); reader.ReadEndElement(); reader.ReadEndElement(); DirectoryControlSerializer.Deserialize(reader, out this._controls, false, false); reader.ReadEndElement(); }
protected override void OnReadBodyContents(XmlDictionaryReader reader) { base.OnReadBodyContents(reader); XmlReader xmlReader = reader.ReadSubtree(); using (xmlReader) { xmlReader.Read(); ResultSerializer.Deserialize(xmlReader, ResultSerializer.ResultDialect.WSTransfer, out this._entry); } reader.Read(); DirectoryControlSerializer.Deserialize(reader, out this._controls, false, false); reader.ReadEndElement(); }
protected override void OnReadBodyContents(XmlDictionaryReader reader) { ADWSResultEntry aDWSResultEntry = null; reader.ReadStartElement("PullResponse", "http://schemas.xmlsoap.org/ws/2004/09/enumeration"); this._enumerationContext = XmlUtility.DeserializeEunmerationContext(reader); if (reader.IsStartElement("Items", "http://schemas.xmlsoap.org/ws/2004/09/enumeration")) { reader.Read(); while (reader.NodeType != XmlNodeType.EndElement) { ResultSerializer.Deserialize(reader, ResultSerializer.ResultDialect.WSEnumeration, out aDWSResultEntry); this._results.Add(aDWSResultEntry); } reader.ReadEndElement(); } DirectoryControlSerializer.Deserialize(reader, out this._controls, false, false); }
protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { writer.WriteStartElement("BaseObjectSearchRequest", "http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess"); writer.WriteAttributeString("Dialect", "http://schemas.microsoft.com/2008/1/ActiveDirectory/Dialect/XPath-Level-1"); base.OnWriteBodyContents(writer); string str = writer.LookupPrefix("http://schemas.microsoft.com/2008/1/ActiveDirectory/Data"); string str1 = writer.LookupPrefix("http://schemas.microsoft.com/2008/1/ActiveDirectory"); if (this._attributeList != null) { XmlUtility.SerializeAttributeList(writer, "AttributeType", "http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess", str1, str, this._attributeList); } if (this._controls != null) { DirectoryControlSerializer.Serialize(writer, this._controls); } writer.WriteEndElement(); }
protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { writer.WriteStartElement("AddRequest", "http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess"); writer.WriteAttributeString("Dialect", "http://schemas.microsoft.com/2008/1/ActiveDirectory/Dialect/XPath-Level-1"); if (this._attributes != null) { foreach (DirectoryAttribute _attribute in this._attributes) { AttributeTypeAndValueSerializer.Serialize(writer, _attribute); } } AttributeTypeAndValueSerializer.Serialize(writer, "http://schemas.microsoft.com/2008/1/ActiveDirectory", "relativeDistinguishedName", this._relativeDistinguishedName); AttributeTypeAndValueSerializer.Serialize(writer, "http://schemas.microsoft.com/2008/1/ActiveDirectory", "container-hierarchy-parent", this._parentContainer); if (this._controls != null) { DirectoryControlSerializer.Serialize(writer, this._controls); } writer.WriteEndElement(); }
protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { base.OnWriteBodyContents(writer); writer.WriteStartElement("ModifyRequest", "http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess"); writer.WriteAttributeString("Dialect", "http://schemas.microsoft.com/2008/1/ActiveDirectory/Dialect/XPath-Level-1"); if (this._attributeMods != null) { foreach (DirectoryAttributeModification _attributeMod in this._attributeMods) { AttributeTypeAndValueSerializer.Serialize(writer, _attributeMod); } } if (this._parent != null) { AttributeTypeAndValueSerializer.Serialize(writer, ChangeOperation.Replace, "http://schemas.microsoft.com/2008/1/ActiveDirectory", "container-hierarchy-parent", this._parent); } if (this._relativeDistinguishedName != null) { AttributeTypeAndValueSerializer.Serialize(writer, ChangeOperation.Replace, "http://schemas.microsoft.com/2008/1/ActiveDirectory", "relativeDistinguishedName", this._relativeDistinguishedName); } DirectoryControlSerializer.Serialize(writer, this._controls); writer.WriteEndElement(); }
protected override void OnReadBodyContents(XmlDictionaryReader reader) { base.OnReadBodyContents(reader); DirectoryControlSerializer.Deserialize(reader, out this._controls, false, false); }