3 using System.Xml.Serialization;
5 using System.Collections;
6 using System.Globalization;
8 namespace System.Web.Services.Description
10 public class ServiceDescriptionReaderBase : XmlSerializationReader
12 public System.Web.Services.Description.ServiceDescription ReadTree ()
14 Reader.MoveToContent();
15 return ReadObject_ServiceDescription (true, true);
18 public System.Web.Services.Description.ServiceDescription ReadObject_ServiceDescription (bool isNullable, bool checkType)
20 System.Web.Services.Description.ServiceDescription ob = null;
21 if (isNullable && ReadNull()) return null;
25 System.Xml.XmlQualifiedName t = GetXsiType();
28 if (t.Name != "ServiceDescription" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
29 throw CreateUnknownTypeException(t);
33 ob = new System.Web.Services.Description.ServiceDescription ();
35 Reader.MoveToElement();
37 while (Reader.MoveToNextAttribute())
39 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
40 ob.Name = Reader.Value;
42 else if (Reader.LocalName == "targetNamespace" && Reader.NamespaceURI == "") {
43 ob.TargetNamespace = Reader.Value;
45 else if (IsXmlnsAttribute (Reader.Name)) {
52 Reader.MoveToElement();
53 if (Reader.IsEmptyElement) {
58 Reader.ReadStartElement();
59 Reader.MoveToContent();
61 bool b0=false, b1=false, b2=false, b3=false, b4=false, b5=false, b6=false;
63 System.Web.Services.Description.ImportCollection o8 = ob.Imports;
64 System.Web.Services.Description.MessageCollection o10 = ob.Messages;
65 System.Web.Services.Description.PortTypeCollection o12 = ob.PortTypes;
66 System.Web.Services.Description.BindingCollection o14 = ob.Bindings;
67 System.Web.Services.Description.ServiceCollection o16 = ob.Services;
68 int n7=0, n9=0, n11=0, n13=0, n15=0;
70 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
72 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
74 if (Reader.LocalName == "binding" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b4) {
76 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.BindingCollection");
77 o14.Add (ReadObject_Binding (false, true));
80 else if (Reader.LocalName == "service" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b5) {
82 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.ServiceCollection");
83 o16.Add (ReadObject_Service (false, true));
86 else if (Reader.LocalName == "import" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b0) {
88 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.ImportCollection");
89 o8.Add (ReadObject_Import (false, true));
92 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b6) {
94 ob.Documentation = Reader.ReadElementString ();
96 else if (Reader.LocalName == "message" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b2) {
98 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.MessageCollection");
99 o10.Add (ReadObject_Message (false, true));
102 else if (Reader.LocalName == "types" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b1) {
104 ob.Types = ReadObject_Types (false, true);
106 else if (Reader.LocalName == "portType" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b3) {
108 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.PortTypeCollection");
109 o12.Add (ReadObject_PortType (false, true));
113 ServiceDescription.ReadExtension (Reader, ob);
119 Reader.MoveToContent();
128 public System.Web.Services.Description.Binding ReadObject_Binding (bool isNullable, bool checkType)
130 System.Web.Services.Description.Binding ob = null;
131 if (isNullable && ReadNull()) return null;
135 System.Xml.XmlQualifiedName t = GetXsiType();
138 if (t.Name != "Binding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
139 throw CreateUnknownTypeException(t);
143 ob = new System.Web.Services.Description.Binding ();
145 Reader.MoveToElement();
147 while (Reader.MoveToNextAttribute())
149 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
150 ob.Name = Reader.Value;
152 else if (Reader.LocalName == "type" && Reader.NamespaceURI == "") {
153 ob.Type = ToXmlQualifiedName (Reader.Value);
155 else if (IsXmlnsAttribute (Reader.Name)) {
162 Reader.MoveToElement();
163 if (Reader.IsEmptyElement) {
168 Reader.ReadStartElement();
169 Reader.MoveToContent();
171 bool b17=false, b18=false;
173 System.Web.Services.Description.OperationBindingCollection o20 = ob.Operations;
176 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
178 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
180 if (Reader.LocalName == "operation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b17) {
182 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationBindingCollection");
183 o20.Add (ReadObject_OperationBinding (false, true));
186 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b18) {
188 ob.Documentation = Reader.ReadElementString ();
191 ServiceDescription.ReadExtension (Reader, ob);
197 Reader.MoveToContent();
206 public System.Web.Services.Description.Service ReadObject_Service (bool isNullable, bool checkType)
208 System.Web.Services.Description.Service ob = null;
209 if (isNullable && ReadNull()) return null;
213 System.Xml.XmlQualifiedName t = GetXsiType();
216 if (t.Name != "Service" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
217 throw CreateUnknownTypeException(t);
221 ob = new System.Web.Services.Description.Service ();
223 Reader.MoveToElement();
225 while (Reader.MoveToNextAttribute())
227 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
228 ob.Name = Reader.Value;
230 else if (IsXmlnsAttribute (Reader.Name)) {
237 Reader.MoveToElement();
238 if (Reader.IsEmptyElement) {
243 Reader.ReadStartElement();
244 Reader.MoveToContent();
246 bool b21=false, b22=false;
248 System.Web.Services.Description.PortCollection o24 = ob.Ports;
251 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
253 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
255 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b22) {
257 ob.Documentation = Reader.ReadElementString ();
259 else if (Reader.LocalName == "port" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b21) {
261 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.PortCollection");
262 o24.Add (ReadObject_Port (false, true));
272 Reader.MoveToContent();
281 public System.Web.Services.Description.Import ReadObject_Import (bool isNullable, bool checkType)
283 System.Web.Services.Description.Import ob = null;
284 if (isNullable && ReadNull()) return null;
288 System.Xml.XmlQualifiedName t = GetXsiType();
291 if (t.Name != "Import" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
292 throw CreateUnknownTypeException(t);
296 ob = new System.Web.Services.Description.Import ();
298 Reader.MoveToElement();
300 while (Reader.MoveToNextAttribute())
302 if (Reader.LocalName == "namespace" && Reader.NamespaceURI == "") {
303 ob.Namespace = Reader.Value;
305 else if (Reader.LocalName == "location" && Reader.NamespaceURI == "") {
306 ob.Location = Reader.Value;
308 else if (IsXmlnsAttribute (Reader.Name)) {
315 Reader.MoveToElement();
316 if (Reader.IsEmptyElement) {
321 Reader.ReadStartElement();
322 Reader.MoveToContent();
326 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
328 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
330 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b25) {
332 ob.Documentation = Reader.ReadElementString ();
341 Reader.MoveToContent();
349 public System.Web.Services.Description.Message ReadObject_Message (bool isNullable, bool checkType)
351 System.Web.Services.Description.Message ob = null;
352 if (isNullable && ReadNull()) return null;
356 System.Xml.XmlQualifiedName t = GetXsiType();
359 if (t.Name != "Message" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
360 throw CreateUnknownTypeException(t);
364 ob = new System.Web.Services.Description.Message ();
366 Reader.MoveToElement();
368 while (Reader.MoveToNextAttribute())
370 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
371 ob.Name = Reader.Value;
373 else if (IsXmlnsAttribute (Reader.Name)) {
380 Reader.MoveToElement();
381 if (Reader.IsEmptyElement) {
386 Reader.ReadStartElement();
387 Reader.MoveToContent();
389 bool b26=false, b27=false;
391 System.Web.Services.Description.MessagePartCollection o29 = ob.Parts;
394 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
396 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
398 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b27) {
400 ob.Documentation = Reader.ReadElementString ();
402 else if (Reader.LocalName == "part" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b26) {
404 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.MessagePartCollection");
405 o29.Add (ReadObject_MessagePart (false, true));
415 Reader.MoveToContent();
424 public System.Web.Services.Description.Types ReadObject_Types (bool isNullable, bool checkType)
426 System.Web.Services.Description.Types ob = null;
427 if (isNullable && ReadNull()) return null;
431 System.Xml.XmlQualifiedName t = GetXsiType();
434 if (t.Name != "Types" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
435 throw CreateUnknownTypeException(t);
439 ob = new System.Web.Services.Description.Types ();
441 Reader.MoveToElement();
443 while (Reader.MoveToNextAttribute())
445 if (IsXmlnsAttribute (Reader.Name)) {
452 Reader.MoveToElement();
453 if (Reader.IsEmptyElement) {
458 Reader.ReadStartElement();
459 Reader.MoveToContent();
461 bool b30=false, b31=false;
463 System.Xml.Serialization.XmlSchemas o33 = ob.Schemas;
466 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
468 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
470 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b31) {
472 ob.Documentation = Reader.ReadElementString ();
474 else if (Reader.LocalName == "schema" && Reader.NamespaceURI == "http://www.w3.org/2001/XMLSchema" && !b30) {
476 throw CreateReadOnlyCollectionException ("System.Xml.Serialization.XmlSchemas");
477 o33.Add (ReadObject_XmlSchema (false, true));
481 ServiceDescription.ReadExtension (Reader, ob);
487 Reader.MoveToContent();
496 public System.Web.Services.Description.PortType ReadObject_PortType (bool isNullable, bool checkType)
498 System.Web.Services.Description.PortType ob = null;
499 if (isNullable && ReadNull()) return null;
503 System.Xml.XmlQualifiedName t = GetXsiType();
506 if (t.Name != "PortType" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
507 throw CreateUnknownTypeException(t);
511 ob = new System.Web.Services.Description.PortType ();
513 Reader.MoveToElement();
515 while (Reader.MoveToNextAttribute())
517 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
518 ob.Name = Reader.Value;
520 else if (IsXmlnsAttribute (Reader.Name)) {
527 Reader.MoveToElement();
528 if (Reader.IsEmptyElement) {
533 Reader.ReadStartElement();
534 Reader.MoveToContent();
536 bool b34=false, b35=false;
538 System.Web.Services.Description.OperationCollection o37 = ob.Operations;
541 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
543 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
545 if (Reader.LocalName == "operation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b34) {
547 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationCollection");
548 o37.Add (ReadObject_Operation (false, true));
551 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b35) {
553 ob.Documentation = Reader.ReadElementString ();
562 Reader.MoveToContent();
571 public System.Web.Services.Description.OperationBinding ReadObject_OperationBinding (bool isNullable, bool checkType)
573 System.Web.Services.Description.OperationBinding ob = null;
574 if (isNullable && ReadNull()) return null;
578 System.Xml.XmlQualifiedName t = GetXsiType();
581 if (t.Name != "OperationBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
582 throw CreateUnknownTypeException(t);
586 ob = new System.Web.Services.Description.OperationBinding ();
588 Reader.MoveToElement();
590 while (Reader.MoveToNextAttribute())
592 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
593 ob.Name = Reader.Value;
595 else if (IsXmlnsAttribute (Reader.Name)) {
602 Reader.MoveToElement();
603 if (Reader.IsEmptyElement) {
608 Reader.ReadStartElement();
609 Reader.MoveToContent();
611 bool b38=false, b39=false, b40=false, b41=false;
613 System.Web.Services.Description.FaultBindingCollection o43 = ob.Faults;
616 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
618 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
620 if (Reader.LocalName == "input" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b39) {
622 ob.Input = ReadObject_InputBinding (false, true);
624 else if (Reader.LocalName == "fault" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b38) {
626 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.FaultBindingCollection");
627 o43.Add (ReadObject_FaultBinding (false, true));
630 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b41) {
632 ob.Documentation = Reader.ReadElementString ();
634 else if (Reader.LocalName == "output" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b40) {
636 ob.Output = ReadObject_OutputBinding (false, true);
639 ServiceDescription.ReadExtension (Reader, ob);
645 Reader.MoveToContent();
654 public System.Web.Services.Description.Port ReadObject_Port (bool isNullable, bool checkType)
656 System.Web.Services.Description.Port ob = null;
657 if (isNullable && ReadNull()) return null;
661 System.Xml.XmlQualifiedName t = GetXsiType();
664 if (t.Name != "Port" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
665 throw CreateUnknownTypeException(t);
669 ob = new System.Web.Services.Description.Port ();
671 Reader.MoveToElement();
673 while (Reader.MoveToNextAttribute())
675 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
676 ob.Name = Reader.Value;
678 else if (Reader.LocalName == "binding" && Reader.NamespaceURI == "") {
679 ob.Binding = ToXmlQualifiedName (Reader.Value);
681 else if (IsXmlnsAttribute (Reader.Name)) {
688 Reader.MoveToElement();
689 if (Reader.IsEmptyElement) {
694 Reader.ReadStartElement();
695 Reader.MoveToContent();
699 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
701 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
703 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b44) {
705 ob.Documentation = Reader.ReadElementString ();
708 ServiceDescription.ReadExtension (Reader, ob);
714 Reader.MoveToContent();
722 public System.Web.Services.Description.MessagePart ReadObject_MessagePart (bool isNullable, bool checkType)
724 System.Web.Services.Description.MessagePart ob = null;
725 if (isNullable && ReadNull()) return null;
729 System.Xml.XmlQualifiedName t = GetXsiType();
732 if (t.Name != "MessagePart" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
733 throw CreateUnknownTypeException(t);
737 ob = new System.Web.Services.Description.MessagePart ();
739 Reader.MoveToElement();
741 while (Reader.MoveToNextAttribute())
743 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
744 ob.Name = Reader.Value;
746 else if (Reader.LocalName == "element" && Reader.NamespaceURI == "") {
747 ob.Element = ToXmlQualifiedName (Reader.Value);
749 else if (Reader.LocalName == "type" && Reader.NamespaceURI == "") {
750 ob.Type = ToXmlQualifiedName (Reader.Value);
752 else if (IsXmlnsAttribute (Reader.Name)) {
759 Reader.MoveToElement();
760 if (Reader.IsEmptyElement) {
765 Reader.ReadStartElement();
766 Reader.MoveToContent();
770 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
772 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
774 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b45) {
776 ob.Documentation = Reader.ReadElementString ();
785 Reader.MoveToContent();
793 public System.Xml.Schema.XmlSchema ReadObject_XmlSchema (bool isNullable, bool checkType)
795 System.Xml.Schema.XmlSchema ob = null;
796 ob = System.Xml.Schema.XmlSchema.Read (Reader, null);
800 public System.Web.Services.Description.Operation ReadObject_Operation (bool isNullable, bool checkType)
802 System.Web.Services.Description.Operation ob = null;
803 if (isNullable && ReadNull()) return null;
807 System.Xml.XmlQualifiedName t = GetXsiType();
810 if (t.Name != "Operation" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
811 throw CreateUnknownTypeException(t);
815 ob = new System.Web.Services.Description.Operation ();
817 Reader.MoveToElement();
819 while (Reader.MoveToNextAttribute())
821 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
822 ob.Name = Reader.Value;
824 else if (Reader.LocalName == "parameterOrder" && Reader.NamespaceURI == "") {
825 ob.ParameterOrderString = Reader.Value;
827 else if (IsXmlnsAttribute (Reader.Name)) {
834 Reader.MoveToElement();
835 if (Reader.IsEmptyElement) {
840 Reader.ReadStartElement();
841 Reader.MoveToContent();
843 bool b46=false, b47=false, b48=false;
845 System.Web.Services.Description.OperationFaultCollection o50 = ob.Faults;
846 System.Web.Services.Description.OperationMessageCollection o52 = ob.Messages;
849 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
851 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
853 if (Reader.LocalName == "input" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b47) {
855 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationMessageCollection");
856 o52.Add (ReadObject_OperationInput (false, true));
859 else if (Reader.LocalName == "fault" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b46) {
861 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationFaultCollection");
862 o50.Add (ReadObject_OperationFault (false, true));
865 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b48) {
867 ob.Documentation = Reader.ReadElementString ();
869 else if (Reader.LocalName == "output" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b47) {
871 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationMessageCollection");
872 o52.Add (ReadObject_OperationOutput (false, true));
882 Reader.MoveToContent();
891 public System.Web.Services.Description.InputBinding ReadObject_InputBinding (bool isNullable, bool checkType)
893 System.Web.Services.Description.InputBinding ob = null;
894 if (isNullable && ReadNull()) return null;
898 System.Xml.XmlQualifiedName t = GetXsiType();
901 if (t.Name != "InputBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
902 throw CreateUnknownTypeException(t);
906 ob = new System.Web.Services.Description.InputBinding ();
908 Reader.MoveToElement();
910 while (Reader.MoveToNextAttribute())
912 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
913 ob.Name = Reader.Value;
915 else if (IsXmlnsAttribute (Reader.Name)) {
922 Reader.MoveToElement();
923 if (Reader.IsEmptyElement) {
928 Reader.ReadStartElement();
929 Reader.MoveToContent();
933 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
935 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
937 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b53) {
939 ob.Documentation = Reader.ReadElementString ();
942 ServiceDescription.ReadExtension (Reader, ob);
948 Reader.MoveToContent();
956 public System.Web.Services.Description.FaultBinding ReadObject_FaultBinding (bool isNullable, bool checkType)
958 System.Web.Services.Description.FaultBinding ob = null;
959 if (isNullable && ReadNull()) return null;
963 System.Xml.XmlQualifiedName t = GetXsiType();
966 if (t.Name != "FaultBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
967 throw CreateUnknownTypeException(t);
971 ob = new System.Web.Services.Description.FaultBinding ();
973 Reader.MoveToElement();
975 while (Reader.MoveToNextAttribute())
977 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
978 ob.Name = Reader.Value;
980 else if (IsXmlnsAttribute (Reader.Name)) {
987 Reader.MoveToElement();
988 if (Reader.IsEmptyElement) {
993 Reader.ReadStartElement();
994 Reader.MoveToContent();
998 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1000 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1002 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b54) {
1004 ob.Documentation = Reader.ReadElementString ();
1007 ServiceDescription.ReadExtension (Reader, ob);
1013 Reader.MoveToContent();
1021 public System.Web.Services.Description.OutputBinding ReadObject_OutputBinding (bool isNullable, bool checkType)
1023 System.Web.Services.Description.OutputBinding ob = null;
1024 if (isNullable && ReadNull()) return null;
1028 System.Xml.XmlQualifiedName t = GetXsiType();
1031 if (t.Name != "OutputBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
1032 throw CreateUnknownTypeException(t);
1036 ob = new System.Web.Services.Description.OutputBinding ();
1038 Reader.MoveToElement();
1040 while (Reader.MoveToNextAttribute())
1042 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1043 ob.Name = Reader.Value;
1045 else if (IsXmlnsAttribute (Reader.Name)) {
1052 Reader.MoveToElement();
1053 if (Reader.IsEmptyElement) {
1058 Reader.ReadStartElement();
1059 Reader.MoveToContent();
1063 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1065 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1067 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b55) {
1069 ob.Documentation = Reader.ReadElementString ();
1072 ServiceDescription.ReadExtension (Reader, ob);
1078 Reader.MoveToContent();
1086 public System.Web.Services.Description.OperationInput ReadObject_OperationInput (bool isNullable, bool checkType)
1088 System.Web.Services.Description.OperationInput ob = null;
1089 if (isNullable && ReadNull()) return null;
1093 System.Xml.XmlQualifiedName t = GetXsiType();
1096 if (t.Name != "OperationInput" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
1097 throw CreateUnknownTypeException(t);
1101 ob = new System.Web.Services.Description.OperationInput ();
1103 Reader.MoveToElement();
1105 while (Reader.MoveToNextAttribute())
1107 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1108 ob.Name = Reader.Value;
1110 else if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
1111 ob.Message = ToXmlQualifiedName (Reader.Value);
1113 else if (IsXmlnsAttribute (Reader.Name)) {
1120 Reader.MoveToElement();
1121 if (Reader.IsEmptyElement) {
1126 Reader.ReadStartElement();
1127 Reader.MoveToContent();
1131 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1133 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1135 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b56) {
1137 ob.Documentation = Reader.ReadElementString ();
1146 Reader.MoveToContent();
1154 public System.Web.Services.Description.OperationFault ReadObject_OperationFault (bool isNullable, bool checkType)
1156 System.Web.Services.Description.OperationFault ob = null;
1157 if (isNullable && ReadNull()) return null;
1161 System.Xml.XmlQualifiedName t = GetXsiType();
1164 if (t.Name != "OperationFault" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
1165 throw CreateUnknownTypeException(t);
1169 ob = new System.Web.Services.Description.OperationFault ();
1171 Reader.MoveToElement();
1173 while (Reader.MoveToNextAttribute())
1175 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1176 ob.Name = Reader.Value;
1178 else if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
1179 ob.Message = ToXmlQualifiedName (Reader.Value);
1181 else if (IsXmlnsAttribute (Reader.Name)) {
1188 Reader.MoveToElement();
1189 if (Reader.IsEmptyElement) {
1194 Reader.ReadStartElement();
1195 Reader.MoveToContent();
1199 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1201 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1203 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b57) {
1205 ob.Documentation = Reader.ReadElementString ();
1214 Reader.MoveToContent();
1222 public System.Web.Services.Description.OperationOutput ReadObject_OperationOutput (bool isNullable, bool checkType)
1224 System.Web.Services.Description.OperationOutput ob = null;
1225 if (isNullable && ReadNull()) return null;
1229 System.Xml.XmlQualifiedName t = GetXsiType();
1232 if (t.Name != "OperationOutput" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
1233 throw CreateUnknownTypeException(t);
1237 ob = new System.Web.Services.Description.OperationOutput ();
1239 Reader.MoveToElement();
1241 while (Reader.MoveToNextAttribute())
1243 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1244 ob.Name = Reader.Value;
1246 else if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
1247 ob.Message = ToXmlQualifiedName (Reader.Value);
1249 else if (IsXmlnsAttribute (Reader.Name)) {
1256 Reader.MoveToElement();
1257 if (Reader.IsEmptyElement) {
1262 Reader.ReadStartElement();
1263 Reader.MoveToContent();
1267 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1269 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1271 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b58) {
1273 ob.Documentation = Reader.ReadElementString ();
1282 Reader.MoveToContent();
1290 protected override void InitCallbacks ()
1294 protected override void InitIDs ()
1300 public class ServiceDescriptionWriterBase : XmlSerializationWriter
1302 public void WriteTree (System.Web.Services.Description.ServiceDescription ob)
1304 WriteStartDocument ();
1306 WriteObject_ServiceDescription (ob, "definitions", "http://schemas.xmlsoap.org/wsdl/", true, false, true);
1309 void WriteObject_ServiceDescription (System.Web.Services.Description.ServiceDescription ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1314 WriteNullTagLiteral(element, namesp);
1318 if (writeWrappingElem) {
1319 WriteStartElement (element, namesp, ob);
1322 if (needType) WriteXsiType("ServiceDescription", "http://schemas.xmlsoap.org/wsdl/");
1324 WriteAttribute ("name", "", ob.Name.ToString());
1325 WriteAttribute ("targetNamespace", "", ob.TargetNamespace);
1327 ServiceDescription.WriteExtensions (Writer, ob);
1328 if (ob.Imports != null) {
1329 for (int n59 = 0; n59 < ob.Imports.Count; n59++) {
1330 WriteObject_Import (ob.Imports[n59], "import", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1333 WriteObject_Types (ob.Types, "types", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1334 if (ob.Messages != null) {
1335 for (int n60 = 0; n60 < ob.Messages.Count; n60++) {
1336 WriteObject_Message (ob.Messages[n60], "message", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1339 if (ob.PortTypes != null) {
1340 for (int n61 = 0; n61 < ob.PortTypes.Count; n61++) {
1341 WriteObject_PortType (ob.PortTypes[n61], "portType", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1344 if (ob.Bindings != null) {
1345 for (int n62 = 0; n62 < ob.Bindings.Count; n62++) {
1346 WriteObject_Binding (ob.Bindings[n62], "binding", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1349 if (ob.Services != null) {
1350 for (int n63 = 0; n63 < ob.Services.Count; n63++) {
1351 WriteObject_Service (ob.Services[n63], "service", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1354 if (ob.Documentation != "") {
1355 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1357 if (writeWrappingElem) WriteEndElement (ob);
1360 void WriteObject_Import (System.Web.Services.Description.Import ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1365 WriteNullTagLiteral(element, namesp);
1369 if (writeWrappingElem) {
1370 WriteStartElement (element, namesp, ob);
1373 if (needType) WriteXsiType("Import", "http://schemas.xmlsoap.org/wsdl/");
1375 WriteAttribute ("namespace", "", ob.Namespace);
1376 WriteAttribute ("location", "", ob.Location);
1378 if (ob.Documentation != "") {
1379 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1381 if (writeWrappingElem) WriteEndElement (ob);
1384 void WriteObject_Types (System.Web.Services.Description.Types ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1389 WriteNullTagLiteral(element, namesp);
1393 if (writeWrappingElem) {
1394 WriteStartElement (element, namesp, ob);
1397 if (needType) WriteXsiType("Types", "http://schemas.xmlsoap.org/wsdl/");
1399 ServiceDescription.WriteExtensions (Writer, ob);
1400 if (ob.Schemas != null) {
1401 for (int n64 = 0; n64 < ob.Schemas.Count; n64++) {
1402 WriteObject_XmlSchema (ob.Schemas[n64], "schema", "http://www.w3.org/2001/XMLSchema", false, false, true);
1405 if (ob.Documentation != "") {
1406 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1408 if (writeWrappingElem) WriteEndElement (ob);
1411 void WriteObject_Message (System.Web.Services.Description.Message ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1416 WriteNullTagLiteral(element, namesp);
1420 if (writeWrappingElem) {
1421 WriteStartElement (element, namesp, ob);
1424 if (needType) WriteXsiType("Message", "http://schemas.xmlsoap.org/wsdl/");
1426 WriteAttribute ("name", "", ob.Name.ToString());
1428 if (ob.Parts != null) {
1429 for (int n65 = 0; n65 < ob.Parts.Count; n65++) {
1430 WriteObject_MessagePart (ob.Parts[n65], "part", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1433 if (ob.Documentation != "") {
1434 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1436 if (writeWrappingElem) WriteEndElement (ob);
1439 void WriteObject_PortType (System.Web.Services.Description.PortType ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1444 WriteNullTagLiteral(element, namesp);
1448 if (writeWrappingElem) {
1449 WriteStartElement (element, namesp, ob);
1452 if (needType) WriteXsiType("PortType", "http://schemas.xmlsoap.org/wsdl/");
1454 WriteAttribute ("name", "", ob.Name.ToString());
1456 if (ob.Operations != null) {
1457 for (int n66 = 0; n66 < ob.Operations.Count; n66++) {
1458 WriteObject_Operation (ob.Operations[n66], "operation", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1461 if (ob.Documentation != "") {
1462 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1464 if (writeWrappingElem) WriteEndElement (ob);
1467 void WriteObject_Binding (System.Web.Services.Description.Binding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1472 WriteNullTagLiteral(element, namesp);
1476 if (writeWrappingElem) {
1477 WriteStartElement (element, namesp, ob);
1480 if (needType) WriteXsiType("Binding", "http://schemas.xmlsoap.org/wsdl/");
1482 WriteAttribute ("name", "", ob.Name.ToString());
1483 WriteAttribute ("type", "", FromXmlQualifiedName (ob.Type));
1485 ServiceDescription.WriteExtensions (Writer, ob);
1486 if (ob.Operations != null) {
1487 for (int n67 = 0; n67 < ob.Operations.Count; n67++) {
1488 WriteObject_OperationBinding (ob.Operations[n67], "operation", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1491 if (ob.Documentation != "") {
1492 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1494 if (writeWrappingElem) WriteEndElement (ob);
1497 void WriteObject_Service (System.Web.Services.Description.Service ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1502 WriteNullTagLiteral(element, namesp);
1506 if (writeWrappingElem) {
1507 WriteStartElement (element, namesp, ob);
1510 if (needType) WriteXsiType("Service", "http://schemas.xmlsoap.org/wsdl/");
1512 WriteAttribute ("name", "", ob.Name.ToString());
1514 if (ob.Ports != null) {
1515 for (int n68 = 0; n68 < ob.Ports.Count; n68++) {
1516 WriteObject_Port (ob.Ports[n68], "port", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1519 if (ob.Documentation != "") {
1520 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1522 if (writeWrappingElem) WriteEndElement (ob);
1525 void WriteObject_XmlSchema (System.Xml.Schema.XmlSchema ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1530 void WriteObject_MessagePart (System.Web.Services.Description.MessagePart ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1535 WriteNullTagLiteral(element, namesp);
1539 if (writeWrappingElem) {
1540 WriteStartElement (element, namesp, ob);
1543 if (needType) WriteXsiType("MessagePart", "http://schemas.xmlsoap.org/wsdl/");
1545 WriteAttribute ("name", "", ob.Name.ToString());
1546 WriteAttribute ("element", "", FromXmlQualifiedName (ob.Element));
1547 WriteAttribute ("type", "", FromXmlQualifiedName (ob.Type));
1549 if (ob.Documentation != "") {
1550 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1552 if (writeWrappingElem) WriteEndElement (ob);
1555 void WriteObject_Operation (System.Web.Services.Description.Operation ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1560 WriteNullTagLiteral(element, namesp);
1564 if (writeWrappingElem) {
1565 WriteStartElement (element, namesp, ob);
1568 if (needType) WriteXsiType("Operation", "http://schemas.xmlsoap.org/wsdl/");
1570 WriteAttribute ("name", "", ob.Name.ToString());
1571 if (ob.ParameterOrderString != "") {
1572 WriteAttribute ("parameterOrder", "", ob.ParameterOrderString);
1575 if (ob.Faults != null) {
1576 for (int n69 = 0; n69 < ob.Faults.Count; n69++) {
1577 WriteObject_OperationFault (ob.Faults[n69], "fault", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1580 if (ob.Messages != null) {
1581 for (int n70 = 0; n70 < ob.Messages.Count; n70++) {
1582 if (ob.Messages[n70] is System.Web.Services.Description.OperationInput) {
1583 WriteObject_OperationInput (((System.Web.Services.Description.OperationInput) ob.Messages[n70]), "input", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1585 else if (ob.Messages[n70] is System.Web.Services.Description.OperationOutput) {
1586 WriteObject_OperationOutput (((System.Web.Services.Description.OperationOutput) ob.Messages[n70]), "output", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1588 else if (ob.Messages[n70] != null) throw CreateUnknownTypeException (ob.Messages[n70]);
1591 if (ob.Documentation != "") {
1592 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1594 if (writeWrappingElem) WriteEndElement (ob);
1597 void WriteObject_OperationBinding (System.Web.Services.Description.OperationBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1602 WriteNullTagLiteral(element, namesp);
1606 if (writeWrappingElem) {
1607 WriteStartElement (element, namesp, ob);
1610 if (needType) WriteXsiType("OperationBinding", "http://schemas.xmlsoap.org/wsdl/");
1612 WriteAttribute ("name", "", ob.Name.ToString());
1614 ServiceDescription.WriteExtensions (Writer, ob);
1615 if (ob.Faults != null) {
1616 for (int n71 = 0; n71 < ob.Faults.Count; n71++) {
1617 WriteObject_FaultBinding (ob.Faults[n71], "fault", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1620 WriteObject_InputBinding (ob.Input, "input", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1621 WriteObject_OutputBinding (ob.Output, "output", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1622 if (ob.Documentation != "") {
1623 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1625 if (writeWrappingElem) WriteEndElement (ob);
1628 void WriteObject_Port (System.Web.Services.Description.Port ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1633 WriteNullTagLiteral(element, namesp);
1637 if (writeWrappingElem) {
1638 WriteStartElement (element, namesp, ob);
1641 if (needType) WriteXsiType("Port", "http://schemas.xmlsoap.org/wsdl/");
1643 WriteAttribute ("name", "", ob.Name.ToString());
1644 WriteAttribute ("binding", "", FromXmlQualifiedName (ob.Binding));
1646 ServiceDescription.WriteExtensions (Writer, ob);
1647 if (ob.Documentation != "") {
1648 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1650 if (writeWrappingElem) WriteEndElement (ob);
1653 void WriteObject_OperationFault (System.Web.Services.Description.OperationFault ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1658 WriteNullTagLiteral(element, namesp);
1662 if (writeWrappingElem) {
1663 WriteStartElement (element, namesp, ob);
1666 if (needType) WriteXsiType("OperationFault", "http://schemas.xmlsoap.org/wsdl/");
1668 if (ob.Name != "") {
1669 WriteAttribute ("name", "", ob.Name.ToString());
1671 WriteAttribute ("message", "", FromXmlQualifiedName (ob.Message));
1673 if (ob.Documentation != "") {
1674 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1676 if (writeWrappingElem) WriteEndElement (ob);
1679 void WriteObject_OperationInput (System.Web.Services.Description.OperationInput ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1684 WriteNullTagLiteral(element, namesp);
1688 if (writeWrappingElem) {
1689 WriteStartElement (element, namesp, ob);
1692 if (needType) WriteXsiType("OperationInput", "http://schemas.xmlsoap.org/wsdl/");
1694 if (ob.Name != "") {
1695 WriteAttribute ("name", "", ob.Name.ToString());
1697 WriteAttribute ("message", "", FromXmlQualifiedName (ob.Message));
1699 if (ob.Documentation != "") {
1700 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1702 if (writeWrappingElem) WriteEndElement (ob);
1705 void WriteObject_OperationOutput (System.Web.Services.Description.OperationOutput ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1710 WriteNullTagLiteral(element, namesp);
1714 if (writeWrappingElem) {
1715 WriteStartElement (element, namesp, ob);
1718 if (needType) WriteXsiType("OperationOutput", "http://schemas.xmlsoap.org/wsdl/");
1720 if (ob.Name != "") {
1721 WriteAttribute ("name", "", ob.Name.ToString());
1723 WriteAttribute ("message", "", FromXmlQualifiedName (ob.Message));
1725 if (ob.Documentation != "") {
1726 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1728 if (writeWrappingElem) WriteEndElement (ob);
1731 void WriteObject_FaultBinding (System.Web.Services.Description.FaultBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1736 WriteNullTagLiteral(element, namesp);
1740 if (writeWrappingElem) {
1741 WriteStartElement (element, namesp, ob);
1744 if (needType) WriteXsiType("FaultBinding", "http://schemas.xmlsoap.org/wsdl/");
1746 if (ob.Name != "") {
1747 WriteAttribute ("name", "", ob.Name.ToString());
1750 ServiceDescription.WriteExtensions (Writer, ob);
1751 if (ob.Documentation != "") {
1752 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1754 if (writeWrappingElem) WriteEndElement (ob);
1757 void WriteObject_InputBinding (System.Web.Services.Description.InputBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1762 WriteNullTagLiteral(element, namesp);
1766 if (writeWrappingElem) {
1767 WriteStartElement (element, namesp, ob);
1770 if (needType) WriteXsiType("InputBinding", "http://schemas.xmlsoap.org/wsdl/");
1772 if (ob.Name != "") {
1773 WriteAttribute ("name", "", ob.Name.ToString());
1776 ServiceDescription.WriteExtensions (Writer, ob);
1777 if (ob.Documentation != "") {
1778 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1780 if (writeWrappingElem) WriteEndElement (ob);
1783 void WriteObject_OutputBinding (System.Web.Services.Description.OutputBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1788 WriteNullTagLiteral(element, namesp);
1792 if (writeWrappingElem) {
1793 WriteStartElement (element, namesp, ob);
1796 if (needType) WriteXsiType("OutputBinding", "http://schemas.xmlsoap.org/wsdl/");
1798 if (ob.Name != "") {
1799 WriteAttribute ("name", "", ob.Name.ToString());
1802 ServiceDescription.WriteExtensions (Writer, ob);
1803 if (ob.Documentation != "") {
1804 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1806 if (writeWrappingElem) WriteEndElement (ob);
1809 protected override void InitCallbacks ()