void WriteObject_Reason(System.Web.Services.Protocols.Soap12FaultReason ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem) { if (((object)ob) == null) { if (isNullable) { WriteNullTagLiteral(element, namesp); } return; } System.Type type = ob.GetType(); if (type == typeof(System.Web.Services.Protocols.Soap12FaultReason)) { } else { throw CreateUnknownTypeException(ob); } if (writeWrappingElem) { WriteStartElement(element, namesp, ob); } if (needType) { WriteXsiType("Reason", "http://www.w3.org/2003/05/soap-envelope"); } if (ob.@Texts != null) { for (int n15 = 0; n15 < [email protected]; n15++) { WriteObject_Text(ob.@Texts[n15], "Text", "http://www.w3.org/2003/05/soap-envelope", false, false, true); } } if (writeWrappingElem) { WriteEndElement(ob); } }
public System.Web.Services.Protocols.Soap12FaultReason ReadObject_Reason(bool isNullable, bool checkType) { System.Web.Services.Protocols.Soap12FaultReason ob = null; if (isNullable && ReadNull()) { return(null); } if (checkType) { System.Xml.XmlQualifiedName t = GetXsiType(); if (t == null) { } else if (t.Name != "Reason" || t.Namespace != "http://www.w3.org/2003/05/soap-envelope") { throw CreateUnknownTypeException(t); } } ob = new System.Web.Services.Protocols.Soap12FaultReason(); Reader.MoveToElement(); while (Reader.MoveToNextAttribute()) { if (IsXmlnsAttribute(Reader.Name)) { } else { UnknownNode(ob); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip(); return(ob); } Reader.ReadStartElement(); Reader.MoveToContent(); bool b11 = false; System.Web.Services.Protocols.Soap12FaultReasonText[] o13; o13 = null; int n12 = 0; while (Reader.NodeType != System.Xml.XmlNodeType.EndElement) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { if (Reader.LocalName == "Text" && Reader.NamespaceURI == "http://www.w3.org/2003/05/soap-envelope" && !b11) { o13 = (System.Web.Services.Protocols.Soap12FaultReasonText[])EnsureArrayIndex(o13, n12, typeof(System.Web.Services.Protocols.Soap12FaultReasonText)); o13[n12] = ReadObject_Text(false, true); n12++; } else { UnknownNode(ob); } } else { UnknownNode(ob); } Reader.MoveToContent(); } o13 = (System.Web.Services.Protocols.Soap12FaultReasonText[])ShrinkArray(o13, n12, typeof(System.Web.Services.Protocols.Soap12FaultReasonText), true); ob.@Texts = o13; ReadEndElement(); return(ob); }
public System.Web.Services.Protocols.Soap12FaultReason ReadObject_Reason (bool isNullable, bool checkType) { System.Web.Services.Protocols.Soap12FaultReason ob = null; if (isNullable && ReadNull()) return null; if (checkType) { System.Xml.XmlQualifiedName t = GetXsiType(); if (t == null) { } else if (t.Name != "Reason" || t.Namespace != "http://www.w3.org/2003/05/soap-envelope") throw CreateUnknownTypeException(t); } ob = new System.Web.Services.Protocols.Soap12FaultReason (); Reader.MoveToElement(); while (Reader.MoveToNextAttribute()) { if (IsXmlnsAttribute (Reader.Name)) { } else { UnknownNode (ob); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip (); return ob; } Reader.ReadStartElement(); Reader.MoveToContent(); bool b11=false; System.Web.Services.Protocols.Soap12FaultReasonText[] o13; o13 = null; int n12=0; while (Reader.NodeType != System.Xml.XmlNodeType.EndElement) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { if (Reader.LocalName == "Text" && Reader.NamespaceURI == "http://www.w3.org/2003/05/soap-envelope" && !b11) { o13 = (System.Web.Services.Protocols.Soap12FaultReasonText[]) EnsureArrayIndex (o13, n12, typeof(System.Web.Services.Protocols.Soap12FaultReasonText)); o13[n12] = ReadObject_Text (false, true); n12++; } else { UnknownNode (ob); } } else UnknownNode(ob); Reader.MoveToContent(); } o13 = (System.Web.Services.Protocols.Soap12FaultReasonText[]) ShrinkArray (o13, n12, typeof(System.Web.Services.Protocols.Soap12FaultReasonText), true); ob.@Texts = o13; ReadEndElement(); return ob; }