private void ParseWsdlService() { Util.Log("WsdlParser.ParseWsdlService"); WsdlService service = new WsdlService(); service.name = LookupAttribute(s_nameString, null, true); //service.nameNs = ParseQName(ref service.name); int curDepth = _XMLReader.Depth; ReadNextXmlElement(); while (_XMLReader.Depth > curDepth) { String elementName = _XMLReader.LocalName; if (MatchingNamespace(s_wsdlNamespaceString) && MatchingStrings(elementName, s_portString)) { WsdlServicePort port = new WsdlServicePort(); port.name = LookupAttribute(s_nameString, null, true); port.nameNs = ParseQName(ref port.nameNs); port.binding = LookupAttribute(s_bindingString, null, true); port.bindingNs = ParseQName(ref port.binding); ParseWsdlServicePort(port); service.ports[port.binding] = port; continue; } // Ignore others elements such as annotations SkipXmlElement(); } wsdlServices.Add(service); }
private void ParseWsdlService() { WsdlService service = new WsdlService { name = this.LookupAttribute(s_nameString, null, true) }; int depth = this._XMLReader.Depth; this.ReadNextXmlElement(); while (this._XMLReader.Depth > depth) { string localName = this._XMLReader.LocalName; if (this.MatchingNamespace(s_wsdlNamespaceString) && MatchingStrings(localName, s_portString)) { WsdlServicePort port; port = new WsdlServicePort { name = this.LookupAttribute(s_nameString, null, true), nameNs = this.ParseQName(ref port.nameNs), binding = this.LookupAttribute(s_bindingString, null, true), bindingNs = this.ParseQName(ref port.binding) }; this.ParseWsdlServicePort(port); service.ports[port.binding] = port; } else { this.SkipXmlElement(); } } this.wsdlServices.Add(service); }