ServiceDescriptionSerializerBase.cs 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070
  1. //
  2. // Permission is hereby granted, free of charge, to any person obtaining
  3. // a copy of this software and associated documentation files (the
  4. // "Software"), to deal in the Software without restriction, including
  5. // without limitation the rights to use, copy, modify, merge, publish,
  6. // distribute, sublicense, and/or sell copies of the Software, and to
  7. // permit persons to whom the Software is furnished to do so, subject to
  8. // the following conditions:
  9. //
  10. // The above copyright notice and this permission notice shall be
  11. // included in all copies or substantial portions of the Software.
  12. //
  13. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  14. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  15. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  16. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  17. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  18. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  19. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  20. //
  21. #if !NET_2_0
  22. using System;
  23. using System.Xml;
  24. using System.Xml.Schema;
  25. using System.Xml.Serialization;
  26. using System.Text;
  27. using System.Collections;
  28. using System.Globalization;
  29. namespace System.Web.Services.Description
  30. {
  31. internal class ServiceDescriptionReaderBase : XmlSerializationReader
  32. {
  33. public object ReadRoot_ServiceDescription ()
  34. {
  35. Reader.MoveToContent();
  36. if (Reader.LocalName != "definitions" || Reader.NamespaceURI != "http://schemas.xmlsoap.org/wsdl/")
  37. throw CreateUnknownNodeException();
  38. return ReadObject_ServiceDescription (true, true);
  39. }
  40. public System.Web.Services.Description.ServiceDescription ReadObject_ServiceDescription (bool isNullable, bool checkType)
  41. {
  42. System.Web.Services.Description.ServiceDescription ob = null;
  43. if (isNullable && ReadNull()) return null;
  44. if (checkType)
  45. {
  46. System.Xml.XmlQualifiedName t = GetXsiType();
  47. if (t == null)
  48. { }
  49. else if (t.Name != "ServiceDescription" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  50. throw CreateUnknownTypeException(t);
  51. }
  52. ob = new System.Web.Services.Description.ServiceDescription ();
  53. Reader.MoveToElement();
  54. while (Reader.MoveToNextAttribute())
  55. {
  56. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  57. ob.@Name = Reader.Value;
  58. }
  59. else if (Reader.LocalName == "targetNamespace" && Reader.NamespaceURI == "") {
  60. ob.@TargetNamespace = Reader.Value;
  61. }
  62. else if (IsXmlnsAttribute (Reader.Name)) {
  63. }
  64. else {
  65. UnknownNode (ob);
  66. }
  67. }
  68. Reader.MoveToElement();
  69. if (Reader.IsEmptyElement) {
  70. Reader.Skip ();
  71. return ob;
  72. }
  73. Reader.ReadStartElement();
  74. Reader.MoveToContent();
  75. bool b0=false, b1=false, b2=false, b3=false, b4=false, b5=false, b6=false;
  76. System.Web.Services.Description.ImportCollection o8;
  77. o8 = ob.@Imports;
  78. System.Web.Services.Description.MessageCollection o10;
  79. o10 = ob.@Messages;
  80. System.Web.Services.Description.PortTypeCollection o12;
  81. o12 = ob.@PortTypes;
  82. System.Web.Services.Description.BindingCollection o14;
  83. o14 = ob.@Bindings;
  84. System.Web.Services.Description.ServiceCollection o16;
  85. o16 = ob.@Services;
  86. int n7=0, n9=0, n11=0, n13=0, n15=0;
  87. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  88. {
  89. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  90. {
  91. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b0) {
  92. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  93. }
  94. else if (Reader.LocalName == "service" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b6) {
  95. if (((object)o16) == null)
  96. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.ServiceCollection");
  97. o16.Add (ReadObject_Service (false, true));
  98. n15++;
  99. }
  100. else if (Reader.LocalName == "message" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b3) {
  101. if (((object)o10) == null)
  102. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.MessageCollection");
  103. o10.Add (ReadObject_Message (false, true));
  104. n9++;
  105. }
  106. else if (Reader.LocalName == "portType" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b4) {
  107. if (((object)o12) == null)
  108. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.PortTypeCollection");
  109. o12.Add (ReadObject_PortType (false, true));
  110. n11++;
  111. }
  112. else if (Reader.LocalName == "import" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b1) {
  113. if (((object)o8) == null)
  114. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.ImportCollection");
  115. o8.Add (ReadObject_Import (false, true));
  116. n7++;
  117. }
  118. else if (Reader.LocalName == "binding" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b5) {
  119. if (((object)o14) == null)
  120. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.BindingCollection");
  121. o14.Add (ReadObject_Binding (false, true));
  122. n13++;
  123. }
  124. else if (Reader.LocalName == "types" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b2) {
  125. b2 = true;
  126. ob.@Types = ReadObject_Types (false, true);
  127. }
  128. else {
  129. ServiceDescription.ReadExtension (Document, Reader, ob);
  130. }
  131. }
  132. else
  133. UnknownNode(ob);
  134. Reader.MoveToContent();
  135. }
  136. ReadEndElement();
  137. return ob;
  138. }
  139. public System.Web.Services.Description.Service ReadObject_Service (bool isNullable, bool checkType)
  140. {
  141. System.Web.Services.Description.Service ob = null;
  142. if (isNullable && ReadNull()) return null;
  143. if (checkType)
  144. {
  145. System.Xml.XmlQualifiedName t = GetXsiType();
  146. if (t == null)
  147. { }
  148. else if (t.Name != "Service" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  149. throw CreateUnknownTypeException(t);
  150. }
  151. ob = new System.Web.Services.Description.Service ();
  152. Reader.MoveToElement();
  153. while (Reader.MoveToNextAttribute())
  154. {
  155. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  156. ob.@Name = Reader.Value;
  157. }
  158. else if (IsXmlnsAttribute (Reader.Name)) {
  159. }
  160. else {
  161. UnknownNode (ob);
  162. }
  163. }
  164. Reader.MoveToElement();
  165. if (Reader.IsEmptyElement) {
  166. Reader.Skip ();
  167. return ob;
  168. }
  169. Reader.ReadStartElement();
  170. Reader.MoveToContent();
  171. bool b17=false, b18=false;
  172. System.Web.Services.Description.PortCollection o20;
  173. o20 = ob.@Ports;
  174. int n19=0;
  175. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  176. {
  177. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  178. {
  179. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b17) {
  180. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  181. }
  182. else if (Reader.LocalName == "port" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b18) {
  183. if (((object)o20) == null)
  184. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.PortCollection");
  185. o20.Add (ReadObject_Port (false, true));
  186. n19++;
  187. }
  188. else {
  189. ServiceDescription.ReadExtension (Document, Reader, ob);
  190. }
  191. }
  192. else
  193. UnknownNode(ob);
  194. Reader.MoveToContent();
  195. }
  196. ReadEndElement();
  197. return ob;
  198. }
  199. public System.Web.Services.Description.Message ReadObject_Message (bool isNullable, bool checkType)
  200. {
  201. System.Web.Services.Description.Message ob = null;
  202. if (isNullable && ReadNull()) return null;
  203. if (checkType)
  204. {
  205. System.Xml.XmlQualifiedName t = GetXsiType();
  206. if (t == null)
  207. { }
  208. else if (t.Name != "Message" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  209. throw CreateUnknownTypeException(t);
  210. }
  211. ob = new System.Web.Services.Description.Message ();
  212. Reader.MoveToElement();
  213. while (Reader.MoveToNextAttribute())
  214. {
  215. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  216. ob.@Name = Reader.Value;
  217. }
  218. else if (IsXmlnsAttribute (Reader.Name)) {
  219. }
  220. else {
  221. UnknownNode (ob);
  222. }
  223. }
  224. Reader.MoveToElement();
  225. if (Reader.IsEmptyElement) {
  226. Reader.Skip ();
  227. return ob;
  228. }
  229. Reader.ReadStartElement();
  230. Reader.MoveToContent();
  231. bool b21=false, b22=false;
  232. System.Web.Services.Description.MessagePartCollection o24;
  233. o24 = ob.@Parts;
  234. int n23=0;
  235. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  236. {
  237. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  238. {
  239. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b21) {
  240. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  241. }
  242. else if (Reader.LocalName == "part" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b22) {
  243. if (((object)o24) == null)
  244. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.MessagePartCollection");
  245. o24.Add (ReadObject_MessagePart (false, true));
  246. n23++;
  247. }
  248. else {
  249. ServiceDescription.ReadExtension (Document, Reader, ob);
  250. }
  251. }
  252. else
  253. UnknownNode(ob);
  254. Reader.MoveToContent();
  255. }
  256. ReadEndElement();
  257. return ob;
  258. }
  259. public System.Web.Services.Description.PortType ReadObject_PortType (bool isNullable, bool checkType)
  260. {
  261. System.Web.Services.Description.PortType ob = null;
  262. if (isNullable && ReadNull()) return null;
  263. if (checkType)
  264. {
  265. System.Xml.XmlQualifiedName t = GetXsiType();
  266. if (t == null)
  267. { }
  268. else if (t.Name != "PortType" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  269. throw CreateUnknownTypeException(t);
  270. }
  271. ob = new System.Web.Services.Description.PortType ();
  272. Reader.MoveToElement();
  273. while (Reader.MoveToNextAttribute())
  274. {
  275. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  276. ob.@Name = Reader.Value;
  277. }
  278. else if (IsXmlnsAttribute (Reader.Name)) {
  279. }
  280. else {
  281. UnknownNode (ob);
  282. }
  283. }
  284. Reader.MoveToElement();
  285. if (Reader.IsEmptyElement) {
  286. Reader.Skip ();
  287. return ob;
  288. }
  289. Reader.ReadStartElement();
  290. Reader.MoveToContent();
  291. bool b25=false, b26=false;
  292. System.Web.Services.Description.OperationCollection o28;
  293. o28 = ob.@Operations;
  294. int n27=0;
  295. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  296. {
  297. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  298. {
  299. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b25) {
  300. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  301. }
  302. else if (Reader.LocalName == "operation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b26) {
  303. if (((object)o28) == null)
  304. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationCollection");
  305. o28.Add (ReadObject_Operation (false, true));
  306. n27++;
  307. }
  308. else {
  309. ServiceDescription.ReadExtension (Document, Reader, ob);
  310. }
  311. }
  312. else
  313. UnknownNode(ob);
  314. Reader.MoveToContent();
  315. }
  316. ReadEndElement();
  317. return ob;
  318. }
  319. public System.Web.Services.Description.Import ReadObject_Import (bool isNullable, bool checkType)
  320. {
  321. System.Web.Services.Description.Import ob = null;
  322. if (isNullable && ReadNull()) return null;
  323. if (checkType)
  324. {
  325. System.Xml.XmlQualifiedName t = GetXsiType();
  326. if (t == null)
  327. { }
  328. else if (t.Name != "Import" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  329. throw CreateUnknownTypeException(t);
  330. }
  331. ob = new System.Web.Services.Description.Import ();
  332. Reader.MoveToElement();
  333. while (Reader.MoveToNextAttribute())
  334. {
  335. if (Reader.LocalName == "location" && Reader.NamespaceURI == "") {
  336. ob.@Location = Reader.Value;
  337. }
  338. else if (Reader.LocalName == "namespace" && Reader.NamespaceURI == "") {
  339. ob.@Namespace = Reader.Value;
  340. }
  341. else if (IsXmlnsAttribute (Reader.Name)) {
  342. }
  343. else {
  344. UnknownNode (ob);
  345. }
  346. }
  347. Reader.MoveToElement();
  348. if (Reader.IsEmptyElement) {
  349. Reader.Skip ();
  350. return ob;
  351. }
  352. Reader.ReadStartElement();
  353. Reader.MoveToContent();
  354. bool b29=false;
  355. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  356. {
  357. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  358. {
  359. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b29) {
  360. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  361. }
  362. else {
  363. ServiceDescription.ReadExtension (Document, Reader, ob);
  364. }
  365. }
  366. else
  367. UnknownNode(ob);
  368. Reader.MoveToContent();
  369. }
  370. ReadEndElement();
  371. return ob;
  372. }
  373. public System.Web.Services.Description.Binding ReadObject_Binding (bool isNullable, bool checkType)
  374. {
  375. System.Web.Services.Description.Binding ob = null;
  376. if (isNullable && ReadNull()) return null;
  377. if (checkType)
  378. {
  379. System.Xml.XmlQualifiedName t = GetXsiType();
  380. if (t == null)
  381. { }
  382. else if (t.Name != "Binding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  383. throw CreateUnknownTypeException(t);
  384. }
  385. ob = new System.Web.Services.Description.Binding ();
  386. Reader.MoveToElement();
  387. while (Reader.MoveToNextAttribute())
  388. {
  389. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  390. ob.@Name = Reader.Value;
  391. }
  392. else if (Reader.LocalName == "type" && Reader.NamespaceURI == "") {
  393. ob.@Type = ToXmlQualifiedName (Reader.Value);
  394. }
  395. else if (IsXmlnsAttribute (Reader.Name)) {
  396. }
  397. else {
  398. UnknownNode (ob);
  399. }
  400. }
  401. Reader.MoveToElement();
  402. if (Reader.IsEmptyElement) {
  403. Reader.Skip ();
  404. return ob;
  405. }
  406. Reader.ReadStartElement();
  407. Reader.MoveToContent();
  408. bool b30=false, b31=false;
  409. System.Web.Services.Description.OperationBindingCollection o33;
  410. o33 = ob.@Operations;
  411. int n32=0;
  412. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  413. {
  414. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  415. {
  416. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b30) {
  417. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  418. }
  419. else if (Reader.LocalName == "operation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b31) {
  420. if (((object)o33) == null)
  421. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationBindingCollection");
  422. o33.Add (ReadObject_OperationBinding (false, true));
  423. n32++;
  424. }
  425. else {
  426. ServiceDescription.ReadExtension (Document, Reader, ob);
  427. }
  428. }
  429. else
  430. UnknownNode(ob);
  431. Reader.MoveToContent();
  432. }
  433. ReadEndElement();
  434. return ob;
  435. }
  436. public System.Web.Services.Description.Types ReadObject_Types (bool isNullable, bool checkType)
  437. {
  438. System.Web.Services.Description.Types ob = null;
  439. if (isNullable && ReadNull()) return null;
  440. if (checkType)
  441. {
  442. System.Xml.XmlQualifiedName t = GetXsiType();
  443. if (t == null)
  444. { }
  445. else if (t.Name != "Types" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  446. throw CreateUnknownTypeException(t);
  447. }
  448. ob = new System.Web.Services.Description.Types ();
  449. Reader.MoveToElement();
  450. while (Reader.MoveToNextAttribute())
  451. {
  452. if (IsXmlnsAttribute (Reader.Name)) {
  453. }
  454. else {
  455. UnknownNode (ob);
  456. }
  457. }
  458. Reader.MoveToElement();
  459. if (Reader.IsEmptyElement) {
  460. Reader.Skip ();
  461. return ob;
  462. }
  463. Reader.ReadStartElement();
  464. Reader.MoveToContent();
  465. bool b34=false, b35=false;
  466. System.Xml.Serialization.XmlSchemas o37;
  467. o37 = ob.@Schemas;
  468. int n36=0;
  469. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  470. {
  471. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  472. {
  473. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b34) {
  474. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  475. }
  476. else if (Reader.LocalName == "schema" && Reader.NamespaceURI == "http://www.w3.org/2001/XMLSchema" && !b35) {
  477. if (((object)o37) == null)
  478. throw CreateReadOnlyCollectionException ("System.Xml.Serialization.XmlSchemas");
  479. o37.Add (ReadObject_XmlSchema (false, true));
  480. n36++;
  481. }
  482. else {
  483. ServiceDescription.ReadExtension (Document, Reader, ob);
  484. }
  485. }
  486. else
  487. UnknownNode(ob);
  488. Reader.MoveToContent();
  489. }
  490. ReadEndElement();
  491. return ob;
  492. }
  493. public System.Web.Services.Description.Port ReadObject_Port (bool isNullable, bool checkType)
  494. {
  495. System.Web.Services.Description.Port ob = null;
  496. if (isNullable && ReadNull()) return null;
  497. if (checkType)
  498. {
  499. System.Xml.XmlQualifiedName t = GetXsiType();
  500. if (t == null)
  501. { }
  502. else if (t.Name != "Port" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  503. throw CreateUnknownTypeException(t);
  504. }
  505. ob = new System.Web.Services.Description.Port ();
  506. Reader.MoveToElement();
  507. while (Reader.MoveToNextAttribute())
  508. {
  509. if (Reader.LocalName == "binding" && Reader.NamespaceURI == "") {
  510. ob.@Binding = ToXmlQualifiedName (Reader.Value);
  511. }
  512. else if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  513. ob.@Name = Reader.Value;
  514. }
  515. else if (IsXmlnsAttribute (Reader.Name)) {
  516. }
  517. else {
  518. UnknownNode (ob);
  519. }
  520. }
  521. Reader.MoveToElement();
  522. if (Reader.IsEmptyElement) {
  523. Reader.Skip ();
  524. return ob;
  525. }
  526. Reader.ReadStartElement();
  527. Reader.MoveToContent();
  528. bool b38=false;
  529. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  530. {
  531. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  532. {
  533. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b38) {
  534. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  535. }
  536. else {
  537. ServiceDescription.ReadExtension (Document, Reader, ob);
  538. }
  539. }
  540. else
  541. UnknownNode(ob);
  542. Reader.MoveToContent();
  543. }
  544. ReadEndElement();
  545. return ob;
  546. }
  547. public System.Web.Services.Description.MessagePart ReadObject_MessagePart (bool isNullable, bool checkType)
  548. {
  549. System.Web.Services.Description.MessagePart ob = null;
  550. if (isNullable && ReadNull()) return null;
  551. if (checkType)
  552. {
  553. System.Xml.XmlQualifiedName t = GetXsiType();
  554. if (t == null)
  555. { }
  556. else if (t.Name != "MessagePart" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  557. throw CreateUnknownTypeException(t);
  558. }
  559. ob = new System.Web.Services.Description.MessagePart ();
  560. Reader.MoveToElement();
  561. while (Reader.MoveToNextAttribute())
  562. {
  563. if (Reader.LocalName == "element" && Reader.NamespaceURI == "") {
  564. ob.@Element = ToXmlQualifiedName (Reader.Value);
  565. }
  566. else if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  567. ob.@Name = Reader.Value;
  568. }
  569. else if (Reader.LocalName == "type" && Reader.NamespaceURI == "") {
  570. ob.@Type = ToXmlQualifiedName (Reader.Value);
  571. }
  572. else if (IsXmlnsAttribute (Reader.Name)) {
  573. }
  574. else {
  575. UnknownNode (ob);
  576. }
  577. }
  578. Reader.MoveToElement();
  579. if (Reader.IsEmptyElement) {
  580. Reader.Skip ();
  581. return ob;
  582. }
  583. Reader.ReadStartElement();
  584. Reader.MoveToContent();
  585. bool b39=false;
  586. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  587. {
  588. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  589. {
  590. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b39) {
  591. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  592. }
  593. else {
  594. ServiceDescription.ReadExtension (Document, Reader, ob);
  595. }
  596. }
  597. else
  598. UnknownNode(ob);
  599. Reader.MoveToContent();
  600. }
  601. ReadEndElement();
  602. return ob;
  603. }
  604. public System.Web.Services.Description.Operation ReadObject_Operation (bool isNullable, bool checkType)
  605. {
  606. System.Web.Services.Description.Operation ob = null;
  607. if (isNullable && ReadNull()) return null;
  608. if (checkType)
  609. {
  610. System.Xml.XmlQualifiedName t = GetXsiType();
  611. if (t == null)
  612. { }
  613. else if (t.Name != "Operation" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  614. throw CreateUnknownTypeException(t);
  615. }
  616. ob = new System.Web.Services.Description.Operation ();
  617. Reader.MoveToElement();
  618. ob.@ParameterOrderString = "";
  619. while (Reader.MoveToNextAttribute())
  620. {
  621. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  622. ob.@Name = Reader.Value;
  623. }
  624. else if (Reader.LocalName == "parameterOrder" && Reader.NamespaceURI == "") {
  625. ob.@ParameterOrderString = Reader.Value;
  626. }
  627. else if (IsXmlnsAttribute (Reader.Name)) {
  628. }
  629. else {
  630. UnknownNode (ob);
  631. }
  632. }
  633. Reader.MoveToElement();
  634. if (Reader.IsEmptyElement) {
  635. Reader.Skip ();
  636. return ob;
  637. }
  638. Reader.ReadStartElement();
  639. Reader.MoveToContent();
  640. bool b40=false, b41=false, b42=false;
  641. System.Web.Services.Description.OperationFaultCollection o44;
  642. o44 = ob.@Faults;
  643. System.Web.Services.Description.OperationMessageCollection o46;
  644. o46 = ob.@Messages;
  645. int n43=0, n45=0;
  646. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  647. {
  648. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  649. {
  650. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b40) {
  651. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  652. }
  653. else if (Reader.LocalName == "fault" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b41) {
  654. if (((object)o44) == null)
  655. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationFaultCollection");
  656. o44.Add (ReadObject_OperationFault (false, true));
  657. n43++;
  658. }
  659. else if (Reader.LocalName == "input" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b42) {
  660. if (((object)o46) == null)
  661. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationMessageCollection");
  662. o46.Add (ReadObject_OperationInput (false, true));
  663. n45++;
  664. }
  665. else if (Reader.LocalName == "output" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b42) {
  666. if (((object)o46) == null)
  667. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.OperationMessageCollection");
  668. o46.Add (ReadObject_OperationOutput (false, true));
  669. n45++;
  670. }
  671. else {
  672. ServiceDescription.ReadExtension (Document, Reader, ob);
  673. }
  674. }
  675. else
  676. UnknownNode(ob);
  677. Reader.MoveToContent();
  678. }
  679. ReadEndElement();
  680. return ob;
  681. }
  682. public System.Web.Services.Description.OperationBinding ReadObject_OperationBinding (bool isNullable, bool checkType)
  683. {
  684. System.Web.Services.Description.OperationBinding ob = null;
  685. if (isNullable && ReadNull()) return null;
  686. if (checkType)
  687. {
  688. System.Xml.XmlQualifiedName t = GetXsiType();
  689. if (t == null)
  690. { }
  691. else if (t.Name != "OperationBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  692. throw CreateUnknownTypeException(t);
  693. }
  694. ob = new System.Web.Services.Description.OperationBinding ();
  695. Reader.MoveToElement();
  696. while (Reader.MoveToNextAttribute())
  697. {
  698. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  699. ob.@Name = Reader.Value;
  700. }
  701. else if (IsXmlnsAttribute (Reader.Name)) {
  702. }
  703. else {
  704. UnknownNode (ob);
  705. }
  706. }
  707. Reader.MoveToElement();
  708. if (Reader.IsEmptyElement) {
  709. Reader.Skip ();
  710. return ob;
  711. }
  712. Reader.ReadStartElement();
  713. Reader.MoveToContent();
  714. bool b47=false, b48=false, b49=false, b50=false;
  715. System.Web.Services.Description.FaultBindingCollection o52;
  716. o52 = ob.@Faults;
  717. int n51=0;
  718. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  719. {
  720. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  721. {
  722. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b47) {
  723. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  724. }
  725. else if (Reader.LocalName == "fault" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b48) {
  726. if (((object)o52) == null)
  727. throw CreateReadOnlyCollectionException ("System.Web.Services.Description.FaultBindingCollection");
  728. o52.Add (ReadObject_FaultBinding (false, true));
  729. n51++;
  730. }
  731. else if (Reader.LocalName == "input" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b49) {
  732. b49 = true;
  733. ob.@Input = ReadObject_InputBinding (false, true);
  734. }
  735. else if (Reader.LocalName == "output" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b50) {
  736. b50 = true;
  737. ob.@Output = ReadObject_OutputBinding (false, true);
  738. }
  739. else {
  740. ServiceDescription.ReadExtension (Document, Reader, ob);
  741. }
  742. }
  743. else
  744. UnknownNode(ob);
  745. Reader.MoveToContent();
  746. }
  747. ReadEndElement();
  748. return ob;
  749. }
  750. public System.Xml.Schema.XmlSchema ReadObject_XmlSchema (bool isNullable, bool checkType)
  751. {
  752. System.Xml.Schema.XmlSchema ob = null;
  753. ob = System.Xml.Schema.XmlSchema.Read (Reader, null); Reader.Read ();
  754. return ob;
  755. }
  756. public System.Web.Services.Description.OperationFault ReadObject_OperationFault (bool isNullable, bool checkType)
  757. {
  758. System.Web.Services.Description.OperationFault ob = null;
  759. if (isNullable && ReadNull()) return null;
  760. if (checkType)
  761. {
  762. System.Xml.XmlQualifiedName t = GetXsiType();
  763. if (t == null)
  764. { }
  765. else if (t.Name != "OperationFault" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  766. throw CreateUnknownTypeException(t);
  767. }
  768. ob = new System.Web.Services.Description.OperationFault ();
  769. Reader.MoveToElement();
  770. while (Reader.MoveToNextAttribute())
  771. {
  772. if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
  773. ob.@Message = ToXmlQualifiedName (Reader.Value);
  774. }
  775. else if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  776. ob.@Name = Reader.Value;
  777. }
  778. else if (IsXmlnsAttribute (Reader.Name)) {
  779. }
  780. else {
  781. UnknownNode (ob);
  782. }
  783. }
  784. Reader.MoveToElement();
  785. if (Reader.IsEmptyElement) {
  786. Reader.Skip ();
  787. return ob;
  788. }
  789. Reader.ReadStartElement();
  790. Reader.MoveToContent();
  791. bool b53=false;
  792. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  793. {
  794. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  795. {
  796. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b53) {
  797. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  798. }
  799. else {
  800. ServiceDescription.ReadExtension (Document, Reader, ob);
  801. }
  802. }
  803. else
  804. UnknownNode(ob);
  805. Reader.MoveToContent();
  806. }
  807. ReadEndElement();
  808. return ob;
  809. }
  810. public System.Web.Services.Description.OperationInput ReadObject_OperationInput (bool isNullable, bool checkType)
  811. {
  812. System.Web.Services.Description.OperationInput ob = null;
  813. if (isNullable && ReadNull()) return null;
  814. if (checkType)
  815. {
  816. System.Xml.XmlQualifiedName t = GetXsiType();
  817. if (t == null)
  818. { }
  819. else if (t.Name != "OperationInput" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  820. throw CreateUnknownTypeException(t);
  821. }
  822. ob = new System.Web.Services.Description.OperationInput ();
  823. Reader.MoveToElement();
  824. while (Reader.MoveToNextAttribute())
  825. {
  826. if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
  827. ob.@Message = ToXmlQualifiedName (Reader.Value);
  828. }
  829. else if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  830. ob.@Name = Reader.Value;
  831. }
  832. else if (IsXmlnsAttribute (Reader.Name)) {
  833. }
  834. else {
  835. UnknownNode (ob);
  836. }
  837. }
  838. Reader.MoveToElement();
  839. if (Reader.IsEmptyElement) {
  840. Reader.Skip ();
  841. return ob;
  842. }
  843. Reader.ReadStartElement();
  844. Reader.MoveToContent();
  845. bool b54=false;
  846. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  847. {
  848. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  849. {
  850. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b54) {
  851. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  852. }
  853. else {
  854. ServiceDescription.ReadExtension (Document, Reader, ob);
  855. }
  856. }
  857. else
  858. UnknownNode(ob);
  859. Reader.MoveToContent();
  860. }
  861. ReadEndElement();
  862. return ob;
  863. }
  864. public System.Web.Services.Description.OperationOutput ReadObject_OperationOutput (bool isNullable, bool checkType)
  865. {
  866. System.Web.Services.Description.OperationOutput ob = null;
  867. if (isNullable && ReadNull()) return null;
  868. if (checkType)
  869. {
  870. System.Xml.XmlQualifiedName t = GetXsiType();
  871. if (t == null)
  872. { }
  873. else if (t.Name != "OperationOutput" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  874. throw CreateUnknownTypeException(t);
  875. }
  876. ob = new System.Web.Services.Description.OperationOutput ();
  877. Reader.MoveToElement();
  878. while (Reader.MoveToNextAttribute())
  879. {
  880. if (Reader.LocalName == "message" && Reader.NamespaceURI == "") {
  881. ob.@Message = ToXmlQualifiedName (Reader.Value);
  882. }
  883. else if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  884. ob.@Name = Reader.Value;
  885. }
  886. else if (IsXmlnsAttribute (Reader.Name)) {
  887. }
  888. else {
  889. UnknownNode (ob);
  890. }
  891. }
  892. Reader.MoveToElement();
  893. if (Reader.IsEmptyElement) {
  894. Reader.Skip ();
  895. return ob;
  896. }
  897. Reader.ReadStartElement();
  898. Reader.MoveToContent();
  899. bool b55=false;
  900. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  901. {
  902. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  903. {
  904. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b55) {
  905. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  906. }
  907. else {
  908. ServiceDescription.ReadExtension (Document, Reader, ob);
  909. }
  910. }
  911. else
  912. UnknownNode(ob);
  913. Reader.MoveToContent();
  914. }
  915. ReadEndElement();
  916. return ob;
  917. }
  918. public System.Web.Services.Description.FaultBinding ReadObject_FaultBinding (bool isNullable, bool checkType)
  919. {
  920. System.Web.Services.Description.FaultBinding ob = null;
  921. if (isNullable && ReadNull()) return null;
  922. if (checkType)
  923. {
  924. System.Xml.XmlQualifiedName t = GetXsiType();
  925. if (t == null)
  926. { }
  927. else if (t.Name != "FaultBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  928. throw CreateUnknownTypeException(t);
  929. }
  930. ob = new System.Web.Services.Description.FaultBinding ();
  931. Reader.MoveToElement();
  932. while (Reader.MoveToNextAttribute())
  933. {
  934. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  935. ob.@Name = Reader.Value;
  936. }
  937. else if (IsXmlnsAttribute (Reader.Name)) {
  938. }
  939. else {
  940. UnknownNode (ob);
  941. }
  942. }
  943. Reader.MoveToElement();
  944. if (Reader.IsEmptyElement) {
  945. Reader.Skip ();
  946. return ob;
  947. }
  948. Reader.ReadStartElement();
  949. Reader.MoveToContent();
  950. bool b56=false;
  951. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  952. {
  953. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  954. {
  955. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b56) {
  956. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  957. }
  958. else {
  959. ServiceDescription.ReadExtension (Document, Reader, ob);
  960. }
  961. }
  962. else
  963. UnknownNode(ob);
  964. Reader.MoveToContent();
  965. }
  966. ReadEndElement();
  967. return ob;
  968. }
  969. public System.Web.Services.Description.InputBinding ReadObject_InputBinding (bool isNullable, bool checkType)
  970. {
  971. System.Web.Services.Description.InputBinding ob = null;
  972. if (isNullable && ReadNull()) return null;
  973. if (checkType)
  974. {
  975. System.Xml.XmlQualifiedName t = GetXsiType();
  976. if (t == null)
  977. { }
  978. else if (t.Name != "InputBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  979. throw CreateUnknownTypeException(t);
  980. }
  981. ob = new System.Web.Services.Description.InputBinding ();
  982. Reader.MoveToElement();
  983. while (Reader.MoveToNextAttribute())
  984. {
  985. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  986. ob.@Name = Reader.Value;
  987. }
  988. else if (IsXmlnsAttribute (Reader.Name)) {
  989. }
  990. else {
  991. UnknownNode (ob);
  992. }
  993. }
  994. Reader.MoveToElement();
  995. if (Reader.IsEmptyElement) {
  996. Reader.Skip ();
  997. return ob;
  998. }
  999. Reader.ReadStartElement();
  1000. Reader.MoveToContent();
  1001. bool b57=false;
  1002. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  1003. {
  1004. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  1005. {
  1006. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b57) {
  1007. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  1008. }
  1009. else {
  1010. ServiceDescription.ReadExtension (Document, Reader, ob);
  1011. }
  1012. }
  1013. else
  1014. UnknownNode(ob);
  1015. Reader.MoveToContent();
  1016. }
  1017. ReadEndElement();
  1018. return ob;
  1019. }
  1020. public System.Web.Services.Description.OutputBinding ReadObject_OutputBinding (bool isNullable, bool checkType)
  1021. {
  1022. System.Web.Services.Description.OutputBinding ob = null;
  1023. if (isNullable && ReadNull()) return null;
  1024. if (checkType)
  1025. {
  1026. System.Xml.XmlQualifiedName t = GetXsiType();
  1027. if (t == null)
  1028. { }
  1029. else if (t.Name != "OutputBinding" || t.Namespace != "http://schemas.xmlsoap.org/wsdl/")
  1030. throw CreateUnknownTypeException(t);
  1031. }
  1032. ob = new System.Web.Services.Description.OutputBinding ();
  1033. Reader.MoveToElement();
  1034. while (Reader.MoveToNextAttribute())
  1035. {
  1036. if (Reader.LocalName == "name" && Reader.NamespaceURI == "") {
  1037. ob.@Name = Reader.Value;
  1038. }
  1039. else if (IsXmlnsAttribute (Reader.Name)) {
  1040. }
  1041. else {
  1042. UnknownNode (ob);
  1043. }
  1044. }
  1045. Reader.MoveToElement();
  1046. if (Reader.IsEmptyElement) {
  1047. Reader.Skip ();
  1048. return ob;
  1049. }
  1050. Reader.ReadStartElement();
  1051. Reader.MoveToContent();
  1052. bool b58=false;
  1053. while (Reader.NodeType != System.Xml.XmlNodeType.EndElement)
  1054. {
  1055. if (Reader.NodeType == System.Xml.XmlNodeType.Element)
  1056. {
  1057. if (Reader.LocalName == "documentation" && Reader.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/" && !b58) {
  1058. ob.@DocumentationElement = ((System.Xml.XmlElement) ReadXmlNode (false));
  1059. }
  1060. else {
  1061. ServiceDescription.ReadExtension (Document, Reader, ob);
  1062. }
  1063. }
  1064. else
  1065. UnknownNode(ob);
  1066. Reader.MoveToContent();
  1067. }
  1068. ReadEndElement();
  1069. return ob;
  1070. }
  1071. protected override void InitCallbacks ()
  1072. {
  1073. }
  1074. protected override void InitIDs ()
  1075. {
  1076. }
  1077. }
  1078. internal class ServiceDescriptionWriterBase : XmlSerializationWriter
  1079. {
  1080. const string xmlNamespace = "http://www.w3.org/2000/xmlns/";
  1081. public void WriteRoot_ServiceDescription (object o)
  1082. {
  1083. WriteStartDocument ();
  1084. System.Web.Services.Description.ServiceDescription ob = (System.Web.Services.Description.ServiceDescription) o;
  1085. TopLevelElement ();
  1086. WriteObject_ServiceDescription (ob, "definitions", "http://schemas.xmlsoap.org/wsdl/", true, false, true);
  1087. }
  1088. void WriteObject_ServiceDescription (System.Web.Services.Description.ServiceDescription ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1089. {
  1090. if (((object)ob) == null)
  1091. {
  1092. if (isNullable)
  1093. WriteNullTagLiteral(element, namesp);
  1094. return;
  1095. }
  1096. System.Type type = ob.GetType ();
  1097. if (type == typeof(System.Web.Services.Description.ServiceDescription))
  1098. { }
  1099. else {
  1100. throw CreateUnknownTypeException (ob);
  1101. }
  1102. if (writeWrappingElem) {
  1103. WriteStartElement (element, namesp, ob);
  1104. }
  1105. if (needType) WriteXsiType("ServiceDescription", "http://schemas.xmlsoap.org/wsdl/");
  1106. WriteAttribute ("name", "", ob.@Name);
  1107. WriteAttribute ("targetNamespace", "", ob.@TargetNamespace);
  1108. ServiceDescription.WriteExtensions (Writer, ob);
  1109. if (ob.@DocumentationElement != null) {
  1110. XmlNode o59 = ob.@DocumentationElement;
  1111. if (o59 is XmlElement) {
  1112. if ((o59.Name == "documentation" && o59.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1113. }
  1114. else o59.WriteTo (Writer);
  1115. WriteElementLiteral (o59, "", "", false, true);
  1116. }
  1117. else
  1118. throw CreateUnknownAnyElementException (o59.Name, o59.NamespaceURI);
  1119. }
  1120. if (ob.@Imports != null) {
  1121. for (int n60 = 0; n60 < [email protected]; n60++) {
  1122. WriteObject_Import (ob.@Imports[n60], "import", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1123. }
  1124. }
  1125. WriteObject_Types (ob.@Types, "types", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1126. if (ob.@Messages != null) {
  1127. for (int n61 = 0; n61 < [email protected]; n61++) {
  1128. WriteObject_Message (ob.@Messages[n61], "message", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1129. }
  1130. }
  1131. if (ob.@PortTypes != null) {
  1132. for (int n62 = 0; n62 < [email protected]; n62++) {
  1133. WriteObject_PortType (ob.@PortTypes[n62], "portType", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1134. }
  1135. }
  1136. if (ob.@Bindings != null) {
  1137. for (int n63 = 0; n63 < [email protected]; n63++) {
  1138. WriteObject_Binding (ob.@Bindings[n63], "binding", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1139. }
  1140. }
  1141. if (ob.@Services != null) {
  1142. for (int n64 = 0; n64 < [email protected]; n64++) {
  1143. WriteObject_Service (ob.@Services[n64], "service", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1144. }
  1145. }
  1146. if (writeWrappingElem) WriteEndElement (ob);
  1147. }
  1148. void WriteObject_Import (System.Web.Services.Description.Import ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1149. {
  1150. if (((object)ob) == null)
  1151. {
  1152. if (isNullable)
  1153. WriteNullTagLiteral(element, namesp);
  1154. return;
  1155. }
  1156. System.Type type = ob.GetType ();
  1157. if (type == typeof(System.Web.Services.Description.Import))
  1158. { }
  1159. else {
  1160. throw CreateUnknownTypeException (ob);
  1161. }
  1162. if (writeWrappingElem) {
  1163. WriteStartElement (element, namesp, ob);
  1164. }
  1165. if (needType) WriteXsiType("Import", "http://schemas.xmlsoap.org/wsdl/");
  1166. WriteAttribute ("location", "", ob.@Location);
  1167. WriteAttribute ("namespace", "", ob.@Namespace);
  1168. if (ob.@DocumentationElement != null) {
  1169. XmlNode o65 = ob.@DocumentationElement;
  1170. if (o65 is XmlElement) {
  1171. if ((o65.Name == "documentation" && o65.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1172. }
  1173. else o65.WriteTo (Writer);
  1174. WriteElementLiteral (o65, "", "", false, true);
  1175. }
  1176. else
  1177. throw CreateUnknownAnyElementException (o65.Name, o65.NamespaceURI);
  1178. }
  1179. if (writeWrappingElem) WriteEndElement (ob);
  1180. }
  1181. void WriteObject_Types (System.Web.Services.Description.Types ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1182. {
  1183. if (((object)ob) == null)
  1184. {
  1185. if (isNullable)
  1186. WriteNullTagLiteral(element, namesp);
  1187. return;
  1188. }
  1189. System.Type type = ob.GetType ();
  1190. if (type == typeof(System.Web.Services.Description.Types))
  1191. { }
  1192. else {
  1193. throw CreateUnknownTypeException (ob);
  1194. }
  1195. if (writeWrappingElem) {
  1196. WriteStartElement (element, namesp, ob);
  1197. }
  1198. if (needType) WriteXsiType("Types", "http://schemas.xmlsoap.org/wsdl/");
  1199. ServiceDescription.WriteExtensions (Writer, ob);
  1200. if (ob.@DocumentationElement != null) {
  1201. XmlNode o66 = ob.@DocumentationElement;
  1202. if (o66 is XmlElement) {
  1203. if ((o66.Name == "documentation" && o66.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1204. }
  1205. else o66.WriteTo (Writer);
  1206. WriteElementLiteral (o66, "", "", false, true);
  1207. }
  1208. else
  1209. throw CreateUnknownAnyElementException (o66.Name, o66.NamespaceURI);
  1210. }
  1211. if (ob.@Schemas != null) {
  1212. for (int n67 = 0; n67 < [email protected]; n67++) {
  1213. WriteObject_XmlSchema (ob.@Schemas[n67], "schema", "http://www.w3.org/2001/XMLSchema", false, false, true);
  1214. }
  1215. }
  1216. if (writeWrappingElem) WriteEndElement (ob);
  1217. }
  1218. void WriteObject_Message (System.Web.Services.Description.Message ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1219. {
  1220. if (((object)ob) == null)
  1221. {
  1222. if (isNullable)
  1223. WriteNullTagLiteral(element, namesp);
  1224. return;
  1225. }
  1226. System.Type type = ob.GetType ();
  1227. if (type == typeof(System.Web.Services.Description.Message))
  1228. { }
  1229. else {
  1230. throw CreateUnknownTypeException (ob);
  1231. }
  1232. if (writeWrappingElem) {
  1233. WriteStartElement (element, namesp, ob);
  1234. }
  1235. if (needType) WriteXsiType("Message", "http://schemas.xmlsoap.org/wsdl/");
  1236. WriteAttribute ("name", "", ob.@Name);
  1237. if (ob.@DocumentationElement != null) {
  1238. XmlNode o68 = ob.@DocumentationElement;
  1239. if (o68 is XmlElement) {
  1240. if ((o68.Name == "documentation" && o68.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1241. }
  1242. else o68.WriteTo (Writer);
  1243. WriteElementLiteral (o68, "", "", false, true);
  1244. }
  1245. else
  1246. throw CreateUnknownAnyElementException (o68.Name, o68.NamespaceURI);
  1247. }
  1248. if (ob.@Parts != null) {
  1249. for (int n69 = 0; n69 < [email protected]; n69++) {
  1250. WriteObject_MessagePart (ob.@Parts[n69], "part", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1251. }
  1252. }
  1253. if (writeWrappingElem) WriteEndElement (ob);
  1254. }
  1255. void WriteObject_PortType (System.Web.Services.Description.PortType ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1256. {
  1257. if (((object)ob) == null)
  1258. {
  1259. if (isNullable)
  1260. WriteNullTagLiteral(element, namesp);
  1261. return;
  1262. }
  1263. System.Type type = ob.GetType ();
  1264. if (type == typeof(System.Web.Services.Description.PortType))
  1265. { }
  1266. else {
  1267. throw CreateUnknownTypeException (ob);
  1268. }
  1269. if (writeWrappingElem) {
  1270. WriteStartElement (element, namesp, ob);
  1271. }
  1272. if (needType) WriteXsiType("PortType", "http://schemas.xmlsoap.org/wsdl/");
  1273. WriteAttribute ("name", "", ob.@Name);
  1274. if (ob.@DocumentationElement != null) {
  1275. XmlNode o70 = ob.@DocumentationElement;
  1276. if (o70 is XmlElement) {
  1277. if ((o70.Name == "documentation" && o70.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1278. }
  1279. else o70.WriteTo (Writer);
  1280. WriteElementLiteral (o70, "", "", false, true);
  1281. }
  1282. else
  1283. throw CreateUnknownAnyElementException (o70.Name, o70.NamespaceURI);
  1284. }
  1285. if (ob.@Operations != null) {
  1286. for (int n71 = 0; n71 < [email protected]; n71++) {
  1287. WriteObject_Operation (ob.@Operations[n71], "operation", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1288. }
  1289. }
  1290. if (writeWrappingElem) WriteEndElement (ob);
  1291. }
  1292. void WriteObject_Binding (System.Web.Services.Description.Binding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1293. {
  1294. if (((object)ob) == null)
  1295. {
  1296. if (isNullable)
  1297. WriteNullTagLiteral(element, namesp);
  1298. return;
  1299. }
  1300. System.Type type = ob.GetType ();
  1301. if (type == typeof(System.Web.Services.Description.Binding))
  1302. { }
  1303. else {
  1304. throw CreateUnknownTypeException (ob);
  1305. }
  1306. if (writeWrappingElem) {
  1307. WriteStartElement (element, namesp, ob);
  1308. }
  1309. if (needType) WriteXsiType("Binding", "http://schemas.xmlsoap.org/wsdl/");
  1310. WriteAttribute ("name", "", ob.@Name);
  1311. WriteAttribute ("type", "", FromXmlQualifiedName (ob.@Type));
  1312. ServiceDescription.WriteExtensions (Writer, ob);
  1313. if (ob.@DocumentationElement != null) {
  1314. XmlNode o72 = ob.@DocumentationElement;
  1315. if (o72 is XmlElement) {
  1316. if ((o72.Name == "documentation" && o72.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1317. }
  1318. else o72.WriteTo (Writer);
  1319. WriteElementLiteral (o72, "", "", false, true);
  1320. }
  1321. else
  1322. throw CreateUnknownAnyElementException (o72.Name, o72.NamespaceURI);
  1323. }
  1324. if (ob.@Operations != null) {
  1325. for (int n73 = 0; n73 < [email protected]; n73++) {
  1326. WriteObject_OperationBinding (ob.@Operations[n73], "operation", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1327. }
  1328. }
  1329. if (writeWrappingElem) WriteEndElement (ob);
  1330. }
  1331. void WriteObject_Service (System.Web.Services.Description.Service ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1332. {
  1333. if (((object)ob) == null)
  1334. {
  1335. if (isNullable)
  1336. WriteNullTagLiteral(element, namesp);
  1337. return;
  1338. }
  1339. System.Type type = ob.GetType ();
  1340. if (type == typeof(System.Web.Services.Description.Service))
  1341. { }
  1342. else {
  1343. throw CreateUnknownTypeException (ob);
  1344. }
  1345. if (writeWrappingElem) {
  1346. WriteStartElement (element, namesp, ob);
  1347. }
  1348. if (needType) WriteXsiType("Service", "http://schemas.xmlsoap.org/wsdl/");
  1349. WriteAttribute ("name", "", ob.@Name);
  1350. if (ob.@DocumentationElement != null) {
  1351. XmlNode o74 = ob.@DocumentationElement;
  1352. if (o74 is XmlElement) {
  1353. if ((o74.Name == "documentation" && o74.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1354. }
  1355. else o74.WriteTo (Writer);
  1356. WriteElementLiteral (o74, "", "", false, true);
  1357. }
  1358. else
  1359. throw CreateUnknownAnyElementException (o74.Name, o74.NamespaceURI);
  1360. }
  1361. if (ob.@Ports != null) {
  1362. for (int n75 = 0; n75 < [email protected]; n75++) {
  1363. WriteObject_Port (ob.@Ports[n75], "port", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1364. }
  1365. }
  1366. if (writeWrappingElem) WriteEndElement (ob);
  1367. }
  1368. void WriteObject_XmlSchema (System.Xml.Schema.XmlSchema ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1369. {
  1370. ob.Write (Writer);
  1371. }
  1372. void WriteObject_MessagePart (System.Web.Services.Description.MessagePart ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1373. {
  1374. if (((object)ob) == null)
  1375. {
  1376. if (isNullable)
  1377. WriteNullTagLiteral(element, namesp);
  1378. return;
  1379. }
  1380. System.Type type = ob.GetType ();
  1381. if (type == typeof(System.Web.Services.Description.MessagePart))
  1382. { }
  1383. else {
  1384. throw CreateUnknownTypeException (ob);
  1385. }
  1386. if (writeWrappingElem) {
  1387. WriteStartElement (element, namesp, ob);
  1388. }
  1389. if (needType) WriteXsiType("MessagePart", "http://schemas.xmlsoap.org/wsdl/");
  1390. WriteAttribute ("element", "", FromXmlQualifiedName (ob.@Element));
  1391. WriteAttribute ("name", "", ob.@Name);
  1392. WriteAttribute ("type", "", FromXmlQualifiedName (ob.@Type));
  1393. if (ob.@DocumentationElement != null) {
  1394. XmlNode o76 = ob.@DocumentationElement;
  1395. if (o76 is XmlElement) {
  1396. if ((o76.Name == "documentation" && o76.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1397. }
  1398. else o76.WriteTo (Writer);
  1399. WriteElementLiteral (o76, "", "", false, true);
  1400. }
  1401. else
  1402. throw CreateUnknownAnyElementException (o76.Name, o76.NamespaceURI);
  1403. }
  1404. if (writeWrappingElem) WriteEndElement (ob);
  1405. }
  1406. void WriteObject_Operation (System.Web.Services.Description.Operation ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1407. {
  1408. if (((object)ob) == null)
  1409. {
  1410. if (isNullable)
  1411. WriteNullTagLiteral(element, namesp);
  1412. return;
  1413. }
  1414. System.Type type = ob.GetType ();
  1415. if (type == typeof(System.Web.Services.Description.Operation))
  1416. { }
  1417. else {
  1418. throw CreateUnknownTypeException (ob);
  1419. }
  1420. if (writeWrappingElem) {
  1421. WriteStartElement (element, namesp, ob);
  1422. }
  1423. if (needType) WriteXsiType("Operation", "http://schemas.xmlsoap.org/wsdl/");
  1424. WriteAttribute ("name", "", ob.@Name);
  1425. if (ob.@ParameterOrderString != "") {
  1426. WriteAttribute ("parameterOrder", "", ob.@ParameterOrderString);
  1427. }
  1428. if (ob.@DocumentationElement != null) {
  1429. XmlNode o77 = ob.@DocumentationElement;
  1430. if (o77 is XmlElement) {
  1431. if ((o77.Name == "documentation" && o77.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1432. }
  1433. else o77.WriteTo (Writer);
  1434. WriteElementLiteral (o77, "", "", false, true);
  1435. }
  1436. else
  1437. throw CreateUnknownAnyElementException (o77.Name, o77.NamespaceURI);
  1438. }
  1439. if (ob.@Faults != null) {
  1440. for (int n78 = 0; n78 < [email protected]; n78++) {
  1441. WriteObject_OperationFault (ob.@Faults[n78], "fault", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1442. }
  1443. }
  1444. if (ob.@Messages != null) {
  1445. for (int n79 = 0; n79 < [email protected]; n79++) {
  1446. if (((object)ob.@Messages[n79]) == null) { }
  1447. else if (ob.@Messages[n79].GetType() == typeof(System.Web.Services.Description.OperationInput)) {
  1448. WriteObject_OperationInput (((System.Web.Services.Description.OperationInput) ob.@Messages[n79]), "input", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1449. }
  1450. else if (ob.@Messages[n79].GetType() == typeof(System.Web.Services.Description.OperationOutput)) {
  1451. WriteObject_OperationOutput (((System.Web.Services.Description.OperationOutput) ob.@Messages[n79]), "output", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1452. }
  1453. else throw CreateUnknownTypeException (ob.@Messages[n79]);
  1454. }
  1455. }
  1456. if (writeWrappingElem) WriteEndElement (ob);
  1457. }
  1458. void WriteObject_OperationBinding (System.Web.Services.Description.OperationBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1459. {
  1460. if (((object)ob) == null)
  1461. {
  1462. if (isNullable)
  1463. WriteNullTagLiteral(element, namesp);
  1464. return;
  1465. }
  1466. System.Type type = ob.GetType ();
  1467. if (type == typeof(System.Web.Services.Description.OperationBinding))
  1468. { }
  1469. else {
  1470. throw CreateUnknownTypeException (ob);
  1471. }
  1472. if (writeWrappingElem) {
  1473. WriteStartElement (element, namesp, ob);
  1474. }
  1475. if (needType) WriteXsiType("OperationBinding", "http://schemas.xmlsoap.org/wsdl/");
  1476. WriteAttribute ("name", "", ob.@Name);
  1477. ServiceDescription.WriteExtensions (Writer, ob);
  1478. if (ob.@DocumentationElement != null) {
  1479. XmlNode o80 = ob.@DocumentationElement;
  1480. if (o80 is XmlElement) {
  1481. if ((o80.Name == "documentation" && o80.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1482. }
  1483. else o80.WriteTo (Writer);
  1484. WriteElementLiteral (o80, "", "", false, true);
  1485. }
  1486. else
  1487. throw CreateUnknownAnyElementException (o80.Name, o80.NamespaceURI);
  1488. }
  1489. if (ob.@Faults != null) {
  1490. for (int n81 = 0; n81 < [email protected]; n81++) {
  1491. WriteObject_FaultBinding (ob.@Faults[n81], "fault", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1492. }
  1493. }
  1494. WriteObject_InputBinding (ob.@Input, "input", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1495. WriteObject_OutputBinding (ob.@Output, "output", "http://schemas.xmlsoap.org/wsdl/", false, false, true);
  1496. if (writeWrappingElem) WriteEndElement (ob);
  1497. }
  1498. void WriteObject_Port (System.Web.Services.Description.Port ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1499. {
  1500. if (((object)ob) == null)
  1501. {
  1502. if (isNullable)
  1503. WriteNullTagLiteral(element, namesp);
  1504. return;
  1505. }
  1506. System.Type type = ob.GetType ();
  1507. if (type == typeof(System.Web.Services.Description.Port))
  1508. { }
  1509. else {
  1510. throw CreateUnknownTypeException (ob);
  1511. }
  1512. if (writeWrappingElem) {
  1513. WriteStartElement (element, namesp, ob);
  1514. }
  1515. if (needType) WriteXsiType("Port", "http://schemas.xmlsoap.org/wsdl/");
  1516. WriteAttribute ("binding", "", FromXmlQualifiedName (ob.@Binding));
  1517. WriteAttribute ("name", "", ob.@Name);
  1518. ServiceDescription.WriteExtensions (Writer, ob);
  1519. if (ob.@DocumentationElement != null) {
  1520. XmlNode o82 = ob.@DocumentationElement;
  1521. if (o82 is XmlElement) {
  1522. if ((o82.Name == "documentation" && o82.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1523. }
  1524. else o82.WriteTo (Writer);
  1525. WriteElementLiteral (o82, "", "", false, true);
  1526. }
  1527. else
  1528. throw CreateUnknownAnyElementException (o82.Name, o82.NamespaceURI);
  1529. }
  1530. if (writeWrappingElem) WriteEndElement (ob);
  1531. }
  1532. void WriteObject_OperationFault (System.Web.Services.Description.OperationFault ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1533. {
  1534. if (((object)ob) == null)
  1535. {
  1536. if (isNullable)
  1537. WriteNullTagLiteral(element, namesp);
  1538. return;
  1539. }
  1540. System.Type type = ob.GetType ();
  1541. if (type == typeof(System.Web.Services.Description.OperationFault))
  1542. { }
  1543. else {
  1544. throw CreateUnknownTypeException (ob);
  1545. }
  1546. if (writeWrappingElem) {
  1547. WriteStartElement (element, namesp, ob);
  1548. }
  1549. if (needType) WriteXsiType("OperationFault", "http://schemas.xmlsoap.org/wsdl/");
  1550. WriteAttribute ("message", "", FromXmlQualifiedName (ob.@Message));
  1551. WriteAttribute ("name", "", ob.@Name);
  1552. if (ob.@DocumentationElement != null) {
  1553. XmlNode o83 = ob.@DocumentationElement;
  1554. if (o83 is XmlElement) {
  1555. if ((o83.Name == "documentation" && o83.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1556. }
  1557. else o83.WriteTo (Writer);
  1558. WriteElementLiteral (o83, "", "", false, true);
  1559. }
  1560. else
  1561. throw CreateUnknownAnyElementException (o83.Name, o83.NamespaceURI);
  1562. }
  1563. if (writeWrappingElem) WriteEndElement (ob);
  1564. }
  1565. void WriteObject_OperationInput (System.Web.Services.Description.OperationInput ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1566. {
  1567. if (((object)ob) == null)
  1568. {
  1569. if (isNullable)
  1570. WriteNullTagLiteral(element, namesp);
  1571. return;
  1572. }
  1573. System.Type type = ob.GetType ();
  1574. if (type == typeof(System.Web.Services.Description.OperationInput))
  1575. { }
  1576. else {
  1577. throw CreateUnknownTypeException (ob);
  1578. }
  1579. if (writeWrappingElem) {
  1580. WriteStartElement (element, namesp, ob);
  1581. }
  1582. if (needType) WriteXsiType("OperationInput", "http://schemas.xmlsoap.org/wsdl/");
  1583. WriteAttribute ("message", "", FromXmlQualifiedName (ob.@Message));
  1584. WriteAttribute ("name", "", ob.@Name);
  1585. if (ob.@DocumentationElement != null) {
  1586. XmlNode o84 = ob.@DocumentationElement;
  1587. if (o84 is XmlElement) {
  1588. if ((o84.Name == "documentation" && o84.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1589. }
  1590. else o84.WriteTo (Writer);
  1591. WriteElementLiteral (o84, "", "", false, true);
  1592. }
  1593. else
  1594. throw CreateUnknownAnyElementException (o84.Name, o84.NamespaceURI);
  1595. }
  1596. if (writeWrappingElem) WriteEndElement (ob);
  1597. }
  1598. void WriteObject_OperationOutput (System.Web.Services.Description.OperationOutput ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1599. {
  1600. if (((object)ob) == null)
  1601. {
  1602. if (isNullable)
  1603. WriteNullTagLiteral(element, namesp);
  1604. return;
  1605. }
  1606. System.Type type = ob.GetType ();
  1607. if (type == typeof(System.Web.Services.Description.OperationOutput))
  1608. { }
  1609. else {
  1610. throw CreateUnknownTypeException (ob);
  1611. }
  1612. if (writeWrappingElem) {
  1613. WriteStartElement (element, namesp, ob);
  1614. }
  1615. if (needType) WriteXsiType("OperationOutput", "http://schemas.xmlsoap.org/wsdl/");
  1616. WriteAttribute ("message", "", FromXmlQualifiedName (ob.@Message));
  1617. WriteAttribute ("name", "", ob.@Name);
  1618. if (ob.@DocumentationElement != null) {
  1619. XmlNode o85 = ob.@DocumentationElement;
  1620. if (o85 is XmlElement) {
  1621. if ((o85.Name == "documentation" && o85.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1622. }
  1623. else o85.WriteTo (Writer);
  1624. WriteElementLiteral (o85, "", "", false, true);
  1625. }
  1626. else
  1627. throw CreateUnknownAnyElementException (o85.Name, o85.NamespaceURI);
  1628. }
  1629. if (writeWrappingElem) WriteEndElement (ob);
  1630. }
  1631. void WriteObject_FaultBinding (System.Web.Services.Description.FaultBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1632. {
  1633. if (((object)ob) == null)
  1634. {
  1635. if (isNullable)
  1636. WriteNullTagLiteral(element, namesp);
  1637. return;
  1638. }
  1639. System.Type type = ob.GetType ();
  1640. if (type == typeof(System.Web.Services.Description.FaultBinding))
  1641. { }
  1642. else {
  1643. throw CreateUnknownTypeException (ob);
  1644. }
  1645. if (writeWrappingElem) {
  1646. WriteStartElement (element, namesp, ob);
  1647. }
  1648. if (needType) WriteXsiType("FaultBinding", "http://schemas.xmlsoap.org/wsdl/");
  1649. WriteAttribute ("name", "", ob.@Name);
  1650. ServiceDescription.WriteExtensions (Writer, ob);
  1651. if (ob.@DocumentationElement != null) {
  1652. XmlNode o86 = ob.@DocumentationElement;
  1653. if (o86 is XmlElement) {
  1654. if ((o86.Name == "documentation" && o86.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1655. }
  1656. else o86.WriteTo (Writer);
  1657. WriteElementLiteral (o86, "", "", false, true);
  1658. }
  1659. else
  1660. throw CreateUnknownAnyElementException (o86.Name, o86.NamespaceURI);
  1661. }
  1662. if (writeWrappingElem) WriteEndElement (ob);
  1663. }
  1664. void WriteObject_InputBinding (System.Web.Services.Description.InputBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1665. {
  1666. if (((object)ob) == null)
  1667. {
  1668. if (isNullable)
  1669. WriteNullTagLiteral(element, namesp);
  1670. return;
  1671. }
  1672. System.Type type = ob.GetType ();
  1673. if (type == typeof(System.Web.Services.Description.InputBinding))
  1674. { }
  1675. else {
  1676. throw CreateUnknownTypeException (ob);
  1677. }
  1678. if (writeWrappingElem) {
  1679. WriteStartElement (element, namesp, ob);
  1680. }
  1681. if (needType) WriteXsiType("InputBinding", "http://schemas.xmlsoap.org/wsdl/");
  1682. WriteAttribute ("name", "", ob.@Name);
  1683. ServiceDescription.WriteExtensions (Writer, ob);
  1684. if (ob.@DocumentationElement != null) {
  1685. XmlNode o87 = ob.@DocumentationElement;
  1686. if (o87 is XmlElement) {
  1687. if ((o87.Name == "documentation" && o87.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1688. }
  1689. else o87.WriteTo (Writer);
  1690. WriteElementLiteral (o87, "", "", false, true);
  1691. }
  1692. else
  1693. throw CreateUnknownAnyElementException (o87.Name, o87.NamespaceURI);
  1694. }
  1695. if (writeWrappingElem) WriteEndElement (ob);
  1696. }
  1697. void WriteObject_OutputBinding (System.Web.Services.Description.OutputBinding ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem)
  1698. {
  1699. if (((object)ob) == null)
  1700. {
  1701. if (isNullable)
  1702. WriteNullTagLiteral(element, namesp);
  1703. return;
  1704. }
  1705. System.Type type = ob.GetType ();
  1706. if (type == typeof(System.Web.Services.Description.OutputBinding))
  1707. { }
  1708. else {
  1709. throw CreateUnknownTypeException (ob);
  1710. }
  1711. if (writeWrappingElem) {
  1712. WriteStartElement (element, namesp, ob);
  1713. }
  1714. if (needType) WriteXsiType("OutputBinding", "http://schemas.xmlsoap.org/wsdl/");
  1715. WriteAttribute ("name", "", ob.@Name);
  1716. ServiceDescription.WriteExtensions (Writer, ob);
  1717. if (ob.@DocumentationElement != null) {
  1718. XmlNode o88 = ob.@DocumentationElement;
  1719. if (o88 is XmlElement) {
  1720. if ((o88.Name == "documentation" && o88.NamespaceURI == "http://schemas.xmlsoap.org/wsdl/")) {
  1721. }
  1722. else o88.WriteTo (Writer);
  1723. WriteElementLiteral (o88, "", "", false, true);
  1724. }
  1725. else
  1726. throw CreateUnknownAnyElementException (o88.Name, o88.NamespaceURI);
  1727. }
  1728. if (writeWrappingElem) WriteEndElement (ob);
  1729. }
  1730. protected override void InitCallbacks ()
  1731. {
  1732. }
  1733. }
  1734. }
  1735. #endif