3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 using System.Xml.Serialization;
26 using System.Collections;
27 using System.Globalization;
29 namespace System.Web.Services.Description
31 internal class ServiceDescriptionReaderBase : XmlSerializationReader
33 public System.Web.Services.Description.ServiceDescription ReadTree ()
35 Reader.MoveToContent();
36 return ReadObject_ServiceDescription (true, true);
39 public System.Web.Services.Description.ServiceDescription ReadObject_ServiceDescription (bool isNullable, bool checkType)
41 System.Web.Services.Description.ServiceDescription ob = null;
42 if (isNullable && ReadNull()) return null;
46 System.Xml.XmlQualifiedName t = GetXsiType();
49 if (t.Name != "ServiceDescription" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
50 throw CreateUnknownTypeException(t);
54 ob = new System.Web.Services.Description.ServiceDescription ();
56 Reader.MoveToElement();
58 while (Reader.MoveToNextAttribute())
60 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
61 ob.Name = XmlConvert.DecodeName(Reader.Value);
63 else if (Reader.LocalName == "targetNamespace" && Reader.NamespaceURI == "") {
64 ob.TargetNamespace = Reader.Value;
66 else if (IsXmlnsAttribute (Reader.Name)) {
73 Reader.MoveToElement();
74 if (Reader.IsEmptyElement) {
79 Reader.ReadStartElement();
80 Reader.MoveToContent();
82 bool b0=false, b1=false, b2=false, b3=false, b4=false, b5=false, b6=false;
84 System.Web.Services.Description.ImportCollection o8 = ob.Imports;
85 System.Web.Services.Description.MessageCollection o10 = ob.Messages;
86 System.Web.Services.Description.PortTypeCollection o12 = ob.PortTypes;
87 System.Web.Services.Description.BindingCollection o14 = ob.Bindings;
88 System.Web.Services.Description.ServiceCollection o16 = ob.Services;
89 int n7=0, n9=0, n11=0, n13=0, n15=0;
91 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
93 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
95 if (Reader.LocalName == "binding" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b4) {
97 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.BindingCollection");
98 o14.Add (ReadObject_Binding (false, true));
101 else if (Reader.LocalName == "service" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b5) {
103 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.ServiceCollection");
104 o16.Add (ReadObject_Service (false, true));
107 else if (Reader.LocalName == "import" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b0) {
109 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.ImportCollection");
110 o8.Add (ReadObject_Import (false, true));
113 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b6) {
115 ob.Documentation = Reader.ReadElementString ();
117 else if (Reader.LocalName == "message" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b2) {
119 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.MessageCollection");
120 o10.Add (ReadObject_Message (false, true));
123 else if (Reader.LocalName == "types" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b1) {
125 ob.Types = ReadObject_Types (false, true);
127 else if (Reader.LocalName == "portType" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b3) {
129 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.PortTypeCollection");
130 o12.Add (ReadObject_PortType (false, true));
134 ServiceDescription.ReadExtension (Reader, ob);
140 Reader.MoveToContent();
149 public System.Web.Services.Description.Binding ReadObject_Binding (bool isNullable, bool checkType)
151 System.Web.Services.Description.Binding ob = null;
152 if (isNullable && ReadNull()) return null;
156 System.Xml.XmlQualifiedName t = GetXsiType();
159 if (t.Name != "Binding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
160 throw CreateUnknownTypeException(t);
164 ob = new System.Web.Services.Description.Binding ();
166 Reader.MoveToElement();
168 while (Reader.MoveToNextAttribute())
170 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
171 ob.Name = XmlConvert.DecodeName(Reader.Value);
173 else if (Reader.LocalName == "type" && Reader.NamespaceURI == "") {
174 ob.Type = ToXmlQualifiedName (Reader.Value);
176 else if (IsXmlnsAttribute (Reader.Name)) {
183 Reader.MoveToElement();
184 if (Reader.IsEmptyElement) {
189 Reader.ReadStartElement();
190 Reader.MoveToContent();
192 bool b17=false, b18=false;
194 System.Web.Services.Description.OperationBindingCollection o20 = ob.Operations;
197 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
199 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
201 if (Reader.LocalName == "operation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b17) {
203 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationBindingCollection");
204 o20.Add (ReadObject_OperationBinding (false, true));
207 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b18) {
209 ob.Documentation = Reader.ReadElementString ();
212 ServiceDescription.ReadExtension (Reader, ob);
218 Reader.MoveToContent();
227 public System.Web.Services.Description.Service ReadObject_Service (bool isNullable, bool checkType)
229 System.Web.Services.Description.Service ob = null;
230 if (isNullable && ReadNull()) return null;
234 System.Xml.XmlQualifiedName t = GetXsiType();
237 if (t.Name != "Service" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
238 throw CreateUnknownTypeException(t);
242 ob = new System.Web.Services.Description.Service ();
244 Reader.MoveToElement();
246 while (Reader.MoveToNextAttribute())
248 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
249 ob.Name = XmlConvert.DecodeName(Reader.Value);
251 else if (IsXmlnsAttribute (Reader.Name)) {
258 Reader.MoveToElement();
259 if (Reader.IsEmptyElement) {
264 Reader.ReadStartElement();
265 Reader.MoveToContent();
267 bool b21=false, b22=false;
269 System.Web.Services.Description.PortCollection o24 = ob.Ports;
272 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
274 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
276 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b22) {
278 ob.Documentation = Reader.ReadElementString ();
280 else if (Reader.LocalName == "port" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b21) {
282 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.PortCollection");
283 o24.Add (ReadObject_Port (false, true));
293 Reader.MoveToContent();
302 public System.Web.Services.Description.Import ReadObject_Import (bool isNullable, bool checkType)
304 System.Web.Services.Description.Import ob = null;
305 if (isNullable && ReadNull()) return null;
309 System.Xml.XmlQualifiedName t = GetXsiType();
312 if (t.Name != "Import" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
313 throw CreateUnknownTypeException(t);
317 ob = new System.Web.Services.Description.Import ();
319 Reader.MoveToElement();
321 while (Reader.MoveToNextAttribute())
323 if (Reader.LocalName == "namespace" && Reader.NamespaceURI == "") {
324 ob.Namespace = Reader.Value;
326 else if (Reader.LocalName == "location" && Reader.NamespaceURI == "") {
327 ob.Location = Reader.Value;
329 else if (IsXmlnsAttribute (Reader.Name)) {
336 Reader.MoveToElement();
337 if (Reader.IsEmptyElement) {
342 Reader.ReadStartElement();
343 Reader.MoveToContent();
347 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
349 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
351 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b25) {
353 ob.Documentation = Reader.ReadElementString ();
362 Reader.MoveToContent();
370 public System.Web.Services.Description.Message ReadObject_Message (bool isNullable, bool checkType)
372 System.Web.Services.Description.Message ob = null;
373 if (isNullable && ReadNull()) return null;
377 System.Xml.XmlQualifiedName t = GetXsiType();
380 if (t.Name != "Message" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
381 throw CreateUnknownTypeException(t);
385 ob = new System.Web.Services.Description.Message ();
387 Reader.MoveToElement();
389 while (Reader.MoveToNextAttribute())
391 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
392 ob.Name = XmlConvert.DecodeName(Reader.Value);
394 else if (IsXmlnsAttribute (Reader.Name)) {
401 Reader.MoveToElement();
402 if (Reader.IsEmptyElement) {
407 Reader.ReadStartElement();
408 Reader.MoveToContent();
410 bool b26=false, b27=false;
412 System.Web.Services.Description.MessagePartCollection o29 = ob.Parts;
415 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
417 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
419 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b27) {
421 ob.Documentation = Reader.ReadElementString ();
423 else if (Reader.LocalName == "part" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b26) {
425 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.MessagePartCollection");
426 o29.Add (ReadObject_MessagePart (false, true));
436 Reader.MoveToContent();
445 public System.Web.Services.Description.Types ReadObject_Types (bool isNullable, bool checkType)
447 System.Web.Services.Description.Types ob = null;
448 if (isNullable && ReadNull()) return null;
452 System.Xml.XmlQualifiedName t = GetXsiType();
455 if (t.Name != "Types" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
456 throw CreateUnknownTypeException(t);
460 ob = new System.Web.Services.Description.Types ();
462 Reader.MoveToElement();
464 while (Reader.MoveToNextAttribute())
466 if (IsXmlnsAttribute (Reader.Name)) {
473 Reader.MoveToElement();
474 if (Reader.IsEmptyElement) {
479 Reader.ReadStartElement();
480 Reader.MoveToContent();
482 bool b30=false, b31=false;
484 System.Xml.Serialization.XmlSchemas o33 = ob.Schemas;
487 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
489 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
491 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b31) {
493 ob.Documentation = Reader.ReadElementString ();
495 else if (Reader.LocalName == "schema" && Reader.NamespaceURI == "http://www.w3.org/2001/XMLSchema" && !b30) {
497 throw CreateReadOnlyCollectionException ("System.Xml.Serialization.XmlSchemas");
498 o33.Add (ReadObject_XmlSchema (false, true));
502 ServiceDescription.ReadExtension (Reader, ob);
508 Reader.MoveToContent();
517 public System.Web.Services.Description.PortType ReadObject_PortType (bool isNullable, bool checkType)
519 System.Web.Services.Description.PortType ob = null;
520 if (isNullable && ReadNull()) return null;
524 System.Xml.XmlQualifiedName t = GetXsiType();
527 if (t.Name != "PortType" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
528 throw CreateUnknownTypeException(t);
532 ob = new System.Web.Services.Description.PortType ();
534 Reader.MoveToElement();
536 while (Reader.MoveToNextAttribute())
538 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
539 ob.Name = XmlConvert.DecodeName(Reader.Value);
541 else if (IsXmlnsAttribute (Reader.Name)) {
548 Reader.MoveToElement();
549 if (Reader.IsEmptyElement) {
554 Reader.ReadStartElement();
555 Reader.MoveToContent();
557 bool b34=false, b35=false;
559 System.Web.Services.Description.OperationCollection o37 = ob.Operations;
562 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
564 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
566 if (Reader.LocalName == "operation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b34) {
568 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationCollection");
569 o37.Add (ReadObject_Operation (false, true));
572 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b35) {
574 ob.Documentation = Reader.ReadElementString ();
583 Reader.MoveToContent();
592 public System.Web.Services.Description.OperationBinding ReadObject_OperationBinding (bool isNullable, bool checkType)
594 System.Web.Services.Description.OperationBinding ob = null;
595 if (isNullable && ReadNull()) return null;
599 System.Xml.XmlQualifiedName t = GetXsiType();
602 if (t.Name != "OperationBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
603 throw CreateUnknownTypeException(t);
607 ob = new System.Web.Services.Description.OperationBinding ();
609 Reader.MoveToElement();
611 while (Reader.MoveToNextAttribute())
613 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
614 ob.Name = XmlConvert.DecodeName(Reader.Value);
616 else if (IsXmlnsAttribute (Reader.Name)) {
623 Reader.MoveToElement();
624 if (Reader.IsEmptyElement) {
629 Reader.ReadStartElement();
630 Reader.MoveToContent();
632 bool b38=false, b39=false, b40=false, b41=false;
634 System.Web.Services.Description.FaultBindingCollection o43 = ob.Faults;
637 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
639 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
641 if (Reader.LocalName == "input" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b39) {
643 ob.Input = ReadObject_InputBinding (false, true);
645 else if (Reader.LocalName == "fault" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b38) {
647 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.FaultBindingCollection");
648 o43.Add (ReadObject_FaultBinding (false, true));
651 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b41) {
653 ob.Documentation = Reader.ReadElementString ();
655 else if (Reader.LocalName == "output" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b40) {
657 ob.Output = ReadObject_OutputBinding (false, true);
660 ServiceDescription.ReadExtension (Reader, ob);
666 Reader.MoveToContent();
675 public System.Web.Services.Description.Port ReadObject_Port (bool isNullable, bool checkType)
677 System.Web.Services.Description.Port ob = null;
678 if (isNullable && ReadNull()) return null;
682 System.Xml.XmlQualifiedName t = GetXsiType();
685 if (t.Name != "Port" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
686 throw CreateUnknownTypeException(t);
690 ob = new System.Web.Services.Description.Port ();
692 Reader.MoveToElement();
694 while (Reader.MoveToNextAttribute())
696 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
697 ob.Name = XmlConvert.DecodeName(Reader.Value);
699 else if (Reader.LocalName == "binding" && Reader.NamespaceURI == "") {
700 ob.Binding = ToXmlQualifiedName (Reader.Value);
702 else if (IsXmlnsAttribute (Reader.Name)) {
709 Reader.MoveToElement();
710 if (Reader.IsEmptyElement) {
715 Reader.ReadStartElement();
716 Reader.MoveToContent();
720 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
722 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
724 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b44) {
726 ob.Documentation = Reader.ReadElementString ();
729 ServiceDescription.ReadExtension (Reader, ob);
735 Reader.MoveToContent();
743 public System.Web.Services.Description.MessagePart ReadObject_MessagePart (bool isNullable, bool checkType)
745 System.Web.Services.Description.MessagePart ob = null;
746 if (isNullable && ReadNull()) return null;
750 System.Xml.XmlQualifiedName t = GetXsiType();
753 if (t.Name != "MessagePart" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
754 throw CreateUnknownTypeException(t);
758 ob = new System.Web.Services.Description.MessagePart ();
760 Reader.MoveToElement();
762 while (Reader.MoveToNextAttribute())
764 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
765 ob.Name = XmlConvert.DecodeName(Reader.Value);
767 else if (Reader.LocalName == "element" && Reader.NamespaceURI == "") {
768 ob.Element = ToXmlQualifiedName (Reader.Value);
770 else if (Reader.LocalName == "type" && Reader.NamespaceURI == "") {
771 ob.Type = ToXmlQualifiedName (Reader.Value);
773 else if (IsXmlnsAttribute (Reader.Name)) {
780 Reader.MoveToElement();
781 if (Reader.IsEmptyElement) {
786 Reader.ReadStartElement();
787 Reader.MoveToContent();
791 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
793 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
795 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b45) {
797 ob.Documentation = Reader.ReadElementString ();
806 Reader.MoveToContent();
814 public System.Xml.Schema.XmlSchema ReadObject_XmlSchema (bool isNullable, bool checkType)
816 System.Xml.Schema.XmlSchema ob = null;
817 ob = System.Xml.Schema.XmlSchema.Read (Reader, null);
822 public System.Web.Services.Description.Operation ReadObject_Operation (bool isNullable, bool checkType)
824 System.Web.Services.Description.Operation ob = null;
825 if (isNullable && ReadNull()) return null;
829 System.Xml.XmlQualifiedName t = GetXsiType();
832 if (t.Name != "Operation" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
833 throw CreateUnknownTypeException(t);
837 ob = new System.Web.Services.Description.Operation ();
839 Reader.MoveToElement();
841 while (Reader.MoveToNextAttribute())
843 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
844 ob.Name = XmlConvert.DecodeName(Reader.Value);
846 else if (Reader.LocalName == "parameterOrder" && Reader.NamespaceURI == "") {
847 ob.ParameterOrderString = Reader.Value;
849 else if (IsXmlnsAttribute (Reader.Name)) {
856 Reader.MoveToElement();
857 if (Reader.IsEmptyElement) {
862 Reader.ReadStartElement();
863 Reader.MoveToContent();
865 bool b46=false, b47=false, b48=false;
867 System.Web.Services.Description.OperationFaultCollection o50 = ob.Faults;
868 System.Web.Services.Description.OperationMessageCollection o52 = ob.Messages;
871 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
873 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
875 if (Reader.LocalName == "input" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b47) {
877 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationMessageCollection");
878 o52.Add (ReadObject_OperationInput (false, true));
881 else if (Reader.LocalName == "fault" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b46) {
883 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationFaultCollection");
884 o50.Add (ReadObject_OperationFault (false, true));
887 else if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b48) {
889 ob.Documentation = Reader.ReadElementString ();
891 else if (Reader.LocalName == "output" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b47) {
893 throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationMessageCollection");
894 o52.Add (ReadObject_OperationOutput (false, true));
904 Reader.MoveToContent();
913 public System.Web.Services.Description.InputBinding ReadObject_InputBinding (bool isNullable, bool checkType)
915 System.Web.Services.Description.InputBinding ob = null;
916 if (isNullable && ReadNull()) return null;
920 System.Xml.XmlQualifiedName t = GetXsiType();
923 if (t.Name != "InputBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
924 throw CreateUnknownTypeException(t);
928 ob = new System.Web.Services.Description.InputBinding ();
930 Reader.MoveToElement();
932 while (Reader.MoveToNextAttribute())
934 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
935 ob.Name = XmlConvert.DecodeName(Reader.Value);
937 else if (IsXmlnsAttribute (Reader.Name)) {
944 Reader.MoveToElement();
945 if (Reader.IsEmptyElement) {
950 Reader.ReadStartElement();
951 Reader.MoveToContent();
955 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
957 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
959 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b53) {
961 ob.Documentation = Reader.ReadElementString ();
964 ServiceDescription.ReadExtension (Reader, ob);
970 Reader.MoveToContent();
978 public System.Web.Services.Description.FaultBinding ReadObject_FaultBinding (bool isNullable, bool checkType)
980 System.Web.Services.Description.FaultBinding ob = null;
981 if (isNullable && ReadNull()) return null;
985 System.Xml.XmlQualifiedName t = GetXsiType();
988 if (t.Name != "FaultBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
989 throw CreateUnknownTypeException(t);
993 ob = new System.Web.Services.Description.FaultBinding ();
995 Reader.MoveToElement();
997 while (Reader.MoveToNextAttribute())
999 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1000 ob.Name = XmlConvert.DecodeName(Reader.Value);
1002 else if (IsXmlnsAttribute (Reader.Name)) {
1009 Reader.MoveToElement();
1010 if (Reader.IsEmptyElement) {
1015 Reader.ReadStartElement();
1016 Reader.MoveToContent();
1020 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1022 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1024 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b54) {
1026 ob.Documentation = Reader.ReadElementString ();
1029 ServiceDescription.ReadExtension (Reader, ob);
1035 Reader.MoveToContent();
1043 public System.Web.Services.Description.OutputBinding ReadObject_OutputBinding (bool isNullable, bool checkType)
1045 System.Web.Services.Description.OutputBinding ob = null;
1046 if (isNullable && ReadNull()) return null;
1050 System.Xml.XmlQualifiedName t = GetXsiType();
1053 if (t.Name != "OutputBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
1054 throw CreateUnknownTypeException(t);
1058 ob = new System.Web.Services.Description.OutputBinding ();
1060 Reader.MoveToElement();
1062 while (Reader.MoveToNextAttribute())
1064 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1065 ob.Name = XmlConvert.DecodeName(Reader.Value);
1067 else if (IsXmlnsAttribute (Reader.Name)) {
1074 Reader.MoveToElement();
1075 if (Reader.IsEmptyElement) {
1080 Reader.ReadStartElement();
1081 Reader.MoveToContent();
1085 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1087 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1089 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b55) {
1091 ob.Documentation = Reader.ReadElementString ();
1094 ServiceDescription.ReadExtension (Reader, ob);
1100 Reader.MoveToContent();
1108 public System.Web.Services.Description.OperationInput ReadObject_OperationInput (bool isNullable, bool checkType)
1110 System.Web.Services.Description.OperationInput ob = null;
1111 if (isNullable && ReadNull()) return null;
1115 System.Xml.XmlQualifiedName t = GetXsiType();
1118 if (t.Name != "OperationInput" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
1119 throw CreateUnknownTypeException(t);
1123 ob = new System.Web.Services.Description.OperationInput ();
1125 Reader.MoveToElement();
1127 while (Reader.MoveToNextAttribute())
1129 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1130 ob.Name = XmlConvert.DecodeName(Reader.Value);
1132 else if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
1133 ob.Message = ToXmlQualifiedName (Reader.Value);
1135 else if (IsXmlnsAttribute (Reader.Name)) {
1142 Reader.MoveToElement();
1143 if (Reader.IsEmptyElement) {
1148 Reader.ReadStartElement();
1149 Reader.MoveToContent();
1153 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1155 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1157 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b56) {
1159 ob.Documentation = Reader.ReadElementString ();
1168 Reader.MoveToContent();
1176 public System.Web.Services.Description.OperationFault ReadObject_OperationFault (bool isNullable, bool checkType)
1178 System.Web.Services.Description.OperationFault ob = null;
1179 if (isNullable && ReadNull()) return null;
1183 System.Xml.XmlQualifiedName t = GetXsiType();
1186 if (t.Name != "OperationFault" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
1187 throw CreateUnknownTypeException(t);
1191 ob = new System.Web.Services.Description.OperationFault ();
1193 Reader.MoveToElement();
1195 while (Reader.MoveToNextAttribute())
1197 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1198 ob.Name = XmlConvert.DecodeName(Reader.Value);
1200 else if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
1201 ob.Message = ToXmlQualifiedName (Reader.Value);
1203 else if (IsXmlnsAttribute (Reader.Name)) {
1210 Reader.MoveToElement();
1211 if (Reader.IsEmptyElement) {
1216 Reader.ReadStartElement();
1217 Reader.MoveToContent();
1221 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1223 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1225 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b57) {
1227 ob.Documentation = Reader.ReadElementString ();
1236 Reader.MoveToContent();
1244 public System.Web.Services.Description.OperationOutput ReadObject_OperationOutput (bool isNullable, bool checkType)
1246 System.Web.Services.Description.OperationOutput ob = null;
1247 if (isNullable && ReadNull()) return null;
1251 System.Xml.XmlQualifiedName t = GetXsiType();
1254 if (t.Name != "OperationOutput" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
1255 throw CreateUnknownTypeException(t);
1259 ob = new System.Web.Services.Description.OperationOutput ();
1261 Reader.MoveToElement();
1263 while (Reader.MoveToNextAttribute())
1265 if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
1266 ob.Name = XmlConvert.DecodeName(Reader.Value);
1268 else if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
1269 ob.Message = ToXmlQualifiedName (Reader.Value);
1271 else if (IsXmlnsAttribute (Reader.Name)) {
1278 Reader.MoveToElement();
1279 if (Reader.IsEmptyElement) {
1284 Reader.ReadStartElement();
1285 Reader.MoveToContent();
1289 while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
1291 if (Reader.NodeType == System.Xml.XmlNodeType.Element)
1293 if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b58) {
1295 ob.Documentation = Reader.ReadElementString ();
1304 Reader.MoveToContent();
1312 protected override void InitCallbacks ()
1316 protected override void InitIDs ()
1322 internal class ServiceDescriptionWriterBase : XmlSerializationWriter
1324 public void WriteTree (System.Web.Services.Description.ServiceDescription ob)
1326 WriteStartDocument ();
1328 WriteObject_ServiceDescription (ob, "definitions", "http://schemas.xmlsoap.org/wsdl/", true, false, true);
1331 void WriteObject_ServiceDescription (System.Web.Services.Description.ServiceDescription ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1336 WriteNullTagLiteral(element, namesp);
1340 if (writeWrappingElem) {
1341 WriteStartElement (element, namesp, ob);
1344 if (needType) WriteXsiType("ServiceDescription", "http://schemas.xmlsoap.org/wsdl/");
1346 WriteAttribute ("name", "", XmlConvert.EncodeNmToken(ob.Name));
1347 WriteAttribute ("targetNamespace", "", ob.TargetNamespace);
1349 ServiceDescription.WriteExtensions (Writer, ob);
1350 if (ob.Imports != null) {
1351 for (int n59 = 0; n59 < ob.Imports.Count; n59++) {
1352 WriteObject_Import (ob.Imports[n59], "import", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1355 WriteObject_Types (ob.Types, "types", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1356 if (ob.Messages != null) {
1357 for (int n60 = 0; n60 < ob.Messages.Count; n60++) {
1358 WriteObject_Message (ob.Messages[n60], "message", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1361 if (ob.PortTypes != null) {
1362 for (int n61 = 0; n61 < ob.PortTypes.Count; n61++) {
1363 WriteObject_PortType (ob.PortTypes[n61], "portType", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1366 if (ob.Bindings != null) {
1367 for (int n62 = 0; n62 < ob.Bindings.Count; n62++) {
1368 WriteObject_Binding (ob.Bindings[n62], "binding", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1371 if (ob.Services != null) {
1372 for (int n63 = 0; n63 < ob.Services.Count; n63++) {
1373 WriteObject_Service (ob.Services[n63], "service", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1376 if (ob.Documentation != "") {
1377 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1379 if (writeWrappingElem) WriteEndElement (ob);
1382 void WriteObject_Import (System.Web.Services.Description.Import ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1387 WriteNullTagLiteral(element, namesp);
1391 if (writeWrappingElem) {
1392 WriteStartElement (element, namesp, ob);
1395 if (needType) WriteXsiType("Import", "http://schemas.xmlsoap.org/wsdl/");
1397 WriteAttribute ("namespace", "", ob.Namespace);
1398 WriteAttribute ("location", "", ob.Location);
1400 if (ob.Documentation != "") {
1401 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1403 if (writeWrappingElem) WriteEndElement (ob);
1406 void WriteObject_Types (System.Web.Services.Description.Types ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1411 WriteNullTagLiteral(element, namesp);
1415 if (writeWrappingElem) {
1416 WriteStartElement (element, namesp, ob);
1419 if (needType) WriteXsiType("Types", "http://schemas.xmlsoap.org/wsdl/");
1421 ServiceDescription.WriteExtensions (Writer, ob);
1422 if (ob.Schemas != null) {
1423 for (int n64 = 0; n64 < ob.Schemas.Count; n64++) {
1424 WriteObject_XmlSchema (ob.Schemas[n64], "schema", "http://www.w3.org/2001/XMLSchema", false, false, true);
1427 if (ob.Documentation != "") {
1428 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1430 if (writeWrappingElem) WriteEndElement (ob);
1433 void WriteObject_Message (System.Web.Services.Description.Message ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1438 WriteNullTagLiteral(element, namesp);
1442 if (writeWrappingElem) {
1443 WriteStartElement (element, namesp, ob);
1446 if (needType) WriteXsiType("Message", "http://schemas.xmlsoap.org/wsdl/");
1448 WriteAttribute ("name", "", XmlConvert.EncodeName(ob.Name));
1450 if (ob.Parts != null) {
1451 for (int n65 = 0; n65 < ob.Parts.Count; n65++) {
1452 WriteObject_MessagePart (ob.Parts[n65], "part", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1455 if (ob.Documentation != "") {
1456 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1458 if (writeWrappingElem) WriteEndElement (ob);
1461 void WriteObject_PortType (System.Web.Services.Description.PortType ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1466 WriteNullTagLiteral(element, namesp);
1470 if (writeWrappingElem) {
1471 WriteStartElement (element, namesp, ob);
1474 if (needType) WriteXsiType("PortType", "http://schemas.xmlsoap.org/wsdl/");
1476 WriteAttribute ("name", "", XmlConvert.EncodeName(ob.Name));
1478 if (ob.Operations != null) {
1479 for (int n66 = 0; n66 < ob.Operations.Count; n66++) {
1480 WriteObject_Operation (ob.Operations[n66], "operation", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1483 if (ob.Documentation != "") {
1484 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1486 if (writeWrappingElem) WriteEndElement (ob);
1489 void WriteObject_Binding (System.Web.Services.Description.Binding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1494 WriteNullTagLiteral(element, namesp);
1498 if (writeWrappingElem) {
1499 WriteStartElement (element, namesp, ob);
1502 if (needType) WriteXsiType("Binding", "http://schemas.xmlsoap.org/wsdl/");
1504 WriteAttribute ("name", "", XmlConvert.EncodeName(ob.Name));
1505 WriteAttribute ("type", "", FromXmlQualifiedName (ob.Type));
1507 ServiceDescription.WriteExtensions (Writer, ob);
1508 if (ob.Operations != null) {
1509 for (int n67 = 0; n67 < ob.Operations.Count; n67++) {
1510 WriteObject_OperationBinding (ob.Operations[n67], "operation", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1513 if (ob.Documentation != "") {
1514 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1516 if (writeWrappingElem) WriteEndElement (ob);
1519 void WriteObject_Service (System.Web.Services.Description.Service ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1524 WriteNullTagLiteral(element, namesp);
1528 if (writeWrappingElem) {
1529 WriteStartElement (element, namesp, ob);
1532 if (needType) WriteXsiType("Service", "http://schemas.xmlsoap.org/wsdl/");
1534 WriteAttribute ("name", "", XmlConvert.EncodeName(ob.Name));
1536 if (ob.Ports != null) {
1537 for (int n68 = 0; n68 < ob.Ports.Count; n68++) {
1538 WriteObject_Port (ob.Ports[n68], "port", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1541 if (ob.Documentation != "") {
1542 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1544 if (writeWrappingElem) WriteEndElement (ob);
1547 void WriteObject_XmlSchema (System.Xml.Schema.XmlSchema ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1552 void WriteObject_MessagePart (System.Web.Services.Description.MessagePart ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1557 WriteNullTagLiteral(element, namesp);
1561 if (writeWrappingElem) {
1562 WriteStartElement (element, namesp, ob);
1565 if (needType) WriteXsiType("MessagePart", "http://schemas.xmlsoap.org/wsdl/");
1567 WriteAttribute ("name", "", XmlConvert.EncodeNmToken(ob.Name));
1568 WriteAttribute ("element", "", FromXmlQualifiedName (ob.Element));
1569 WriteAttribute ("type", "", FromXmlQualifiedName (ob.Type));
1571 if (ob.Documentation != "") {
1572 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1574 if (writeWrappingElem) WriteEndElement (ob);
1577 void WriteObject_Operation (System.Web.Services.Description.Operation ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1582 WriteNullTagLiteral(element, namesp);
1586 if (writeWrappingElem) {
1587 WriteStartElement (element, namesp, ob);
1590 if (needType) WriteXsiType("Operation", "http://schemas.xmlsoap.org/wsdl/");
1592 WriteAttribute ("name", "", XmlConvert.EncodeName(ob.Name));
1593 if (ob.ParameterOrderString != "") {
1594 WriteAttribute ("parameterOrder", "", ob.ParameterOrderString);
1597 if (ob.Faults != null) {
1598 for (int n69 = 0; n69 < ob.Faults.Count; n69++) {
1599 WriteObject_OperationFault (ob.Faults[n69], "fault", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1602 if (ob.Messages != null) {
1603 for (int n70 = 0; n70 < ob.Messages.Count; n70++) {
1604 if (ob.Messages[n70] is System.Web.Services.Description.OperationInput) {
1605 WriteObject_OperationInput (((System.Web.Services.Description.OperationInput) ob.Messages[n70]), "input", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1607 else if (ob.Messages[n70] is System.Web.Services.Description.OperationOutput) {
1608 WriteObject_OperationOutput (((System.Web.Services.Description.OperationOutput) ob.Messages[n70]), "output", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1610 else if (ob.Messages[n70] != null) throw CreateUnknownTypeException (ob.Messages[n70]);
1613 if (ob.Documentation != "") {
1614 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1616 if (writeWrappingElem) WriteEndElement (ob);
1619 void WriteObject_OperationBinding (System.Web.Services.Description.OperationBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1624 WriteNullTagLiteral(element, namesp);
1628 if (writeWrappingElem) {
1629 WriteStartElement (element, namesp, ob);
1632 if (needType) WriteXsiType("OperationBinding", "http://schemas.xmlsoap.org/wsdl/");
1634 WriteAttribute ("name", "", XmlConvert.EncodeName(ob.Name));
1636 ServiceDescription.WriteExtensions (Writer, ob);
1637 if (ob.Faults != null) {
1638 for (int n71 = 0; n71 < ob.Faults.Count; n71++) {
1639 WriteObject_FaultBinding (ob.Faults[n71], "fault", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1642 WriteObject_InputBinding (ob.Input, "input", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1643 WriteObject_OutputBinding (ob.Output, "output", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
1644 if (ob.Documentation != "") {
1645 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1647 if (writeWrappingElem) WriteEndElement (ob);
1650 void WriteObject_Port (System.Web.Services.Description.Port ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1655 WriteNullTagLiteral(element, namesp);
1659 if (writeWrappingElem) {
1660 WriteStartElement (element, namesp, ob);
1663 if (needType) WriteXsiType("Port", "http://schemas.xmlsoap.org/wsdl/");
1665 WriteAttribute ("name", "", XmlConvert.EncodeName(ob.Name));
1666 WriteAttribute ("binding", "", FromXmlQualifiedName (ob.Binding));
1668 ServiceDescription.WriteExtensions (Writer, ob);
1669 if (ob.Documentation != "") {
1670 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1672 if (writeWrappingElem) WriteEndElement (ob);
1675 void WriteObject_OperationFault (System.Web.Services.Description.OperationFault ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1680 WriteNullTagLiteral(element, namesp);
1684 if (writeWrappingElem) {
1685 WriteStartElement (element, namesp, ob);
1688 if (needType) WriteXsiType("OperationFault", "http://schemas.xmlsoap.org/wsdl/");
1690 WriteAttribute ("name", "", XmlConvert.EncodeNmToken(ob.Name));
1691 WriteAttribute ("message", "", FromXmlQualifiedName (ob.Message));
1693 if (ob.Documentation != "") {
1694 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1696 if (writeWrappingElem) WriteEndElement (ob);
1699 void WriteObject_OperationInput (System.Web.Services.Description.OperationInput ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1704 WriteNullTagLiteral(element, namesp);
1708 if (writeWrappingElem) {
1709 WriteStartElement (element, namesp, ob);
1712 if (needType) WriteXsiType("OperationInput", "http://schemas.xmlsoap.org/wsdl/");
1714 WriteAttribute ("name", "", XmlConvert.EncodeNmToken(ob.Name));
1715 WriteAttribute ("message", "", FromXmlQualifiedName (ob.Message));
1717 if (ob.Documentation != "") {
1718 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1720 if (writeWrappingElem) WriteEndElement (ob);
1723 void WriteObject_OperationOutput (System.Web.Services.Description.OperationOutput ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1728 WriteNullTagLiteral(element, namesp);
1732 if (writeWrappingElem) {
1733 WriteStartElement (element, namesp, ob);
1736 if (needType) WriteXsiType("OperationOutput", "http://schemas.xmlsoap.org/wsdl/");
1738 WriteAttribute ("name", "", XmlConvert.EncodeNmToken(ob.Name));
1739 WriteAttribute ("message", "", FromXmlQualifiedName (ob.Message));
1741 if (ob.Documentation != "") {
1742 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1744 if (writeWrappingElem) WriteEndElement (ob);
1747 void WriteObject_FaultBinding (System.Web.Services.Description.FaultBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1752 WriteNullTagLiteral(element, namesp);
1756 if (writeWrappingElem) {
1757 WriteStartElement (element, namesp, ob);
1760 if (needType) WriteXsiType("FaultBinding", "http://schemas.xmlsoap.org/wsdl/");
1762 if (ob.Name != "") {
1763 WriteAttribute ("name", "", XmlConvert.EncodeNmToken(ob.Name));
1766 ServiceDescription.WriteExtensions (Writer, ob);
1767 if (ob.Documentation != "") {
1768 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1770 if (writeWrappingElem) WriteEndElement (ob);
1773 void WriteObject_InputBinding (System.Web.Services.Description.InputBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1778 WriteNullTagLiteral(element, namesp);
1782 if (writeWrappingElem) {
1783 WriteStartElement (element, namesp, ob);
1786 if (needType) WriteXsiType("InputBinding", "http://schemas.xmlsoap.org/wsdl/");
1788 if (ob.Name != "") {
1789 WriteAttribute ("name", "", XmlConvert.EncodeNmToken(ob.Name));
1792 ServiceDescription.WriteExtensions (Writer, ob);
1793 if (ob.Documentation != "") {
1794 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1796 if (writeWrappingElem) WriteEndElement (ob);
1799 void WriteObject_OutputBinding (System.Web.Services.Description.OutputBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
1804 WriteNullTagLiteral(element, namesp);
1808 if (writeWrappingElem) {
1809 WriteStartElement (element, namesp, ob);
1812 if (needType) WriteXsiType("OutputBinding", "http://schemas.xmlsoap.org/wsdl/");
1814 if (ob.Name != "") {
1815 WriteAttribute ("name", "", XmlConvert.EncodeNmToken(ob.Name));
1818 ServiceDescription.WriteExtensions (Writer, ob);
1819 if (ob.Documentation != "") {
1820 WriteElementString ("documentation", "http://schemas.xmlsoap.org/wsdl/", ob.Documentation);
1822 if (writeWrappingElem) WriteEndElement (ob);
1825 protected override void InitCallbacks ()