ReadSoapHeader method
Future<void>
ReadSoapHeader(
)
override
Read the partner token soap header.
EwsXmlReader
Implementation
@override
Future<void> ReadSoapHeader(EwsXmlReader reader) async {
await super.ReadSoapHeader(reader);
if (this.expectPartnerToken) {
if (reader.IsStartElementWithNamespace(
XmlNamespace.Autodiscover, XmlElementNames.PartnerToken)) {
this.PartnerToken = reader.ReadInnerXml();
}
if (reader.IsStartElementWithNamespace(
XmlNamespace.Autodiscover, XmlElementNames.PartnerTokenReference)) {
this.PartnerTokenReference = reader.ReadInnerXml();
}
}
}