Java Code Examples for com.sun.tools.internal.ws.wsdl.document.Message#add()
The following examples show how to use
com.sun.tools.internal.ws.wsdl.document.Message#add() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WSDLParser.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private Message parseMessage( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Message message = new Message(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); message.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { Util.fail( "parsing.onlyOneDocumentationAllowed", e.getLocalName()); } gotDocumentation = true; message.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PART)) { MessagePart part = parseMessagePart(context, e2); message.add(part); } else { //Ignore any extensibility elements, WS-I BP 1.1 Profiled WSDL 1.1 schema allows extension elements here. /*Util.fail( "parsing.invalidElement", e2.getTagName(), e2.getNamespaceURI()); */ } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_MESSAGE, message); return message; }
Example 2
Source File: WSDLParser.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private Message parseMessage( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Message message = new Message(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); message.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { Util.fail( "parsing.onlyOneDocumentationAllowed", e.getLocalName()); } gotDocumentation = true; message.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PART)) { MessagePart part = parseMessagePart(context, e2); message.add(part); } else { //Ignore any extensibility elements, WS-I BP 1.1 Profiled WSDL 1.1 schema allows extension elements here. /*Util.fail( "parsing.invalidElement", e2.getTagName(), e2.getNamespaceURI()); */ } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_MESSAGE, message); return message; }
Example 3
Source File: WSDLParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private Message parseMessage( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Message message = new Message(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); message.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { Util.fail( "parsing.onlyOneDocumentationAllowed", e.getLocalName()); } gotDocumentation = true; message.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PART)) { MessagePart part = parseMessagePart(context, e2); message.add(part); } else { //Ignore any extensibility elements, WS-I BP 1.1 Profiled WSDL 1.1 schema allows extension elements here. /*Util.fail( "parsing.invalidElement", e2.getTagName(), e2.getNamespaceURI()); */ } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_MESSAGE, message); return message; }
Example 4
Source File: WSDLParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Message parseMessage( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Message message = new Message(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); message.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { Util.fail( "parsing.onlyOneDocumentationAllowed", e.getLocalName()); } gotDocumentation = true; message.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PART)) { MessagePart part = parseMessagePart(context, e2); message.add(part); } else { //Ignore any extensibility elements, WS-I BP 1.1 Profiled WSDL 1.1 schema allows extension elements here. /*Util.fail( "parsing.invalidElement", e2.getTagName(), e2.getNamespaceURI()); */ } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_MESSAGE, message); return message; }
Example 5
Source File: WSDLParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private Message parseMessage( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Message message = new Message(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); message.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { Util.fail( "parsing.onlyOneDocumentationAllowed", e.getLocalName()); } gotDocumentation = true; message.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PART)) { MessagePart part = parseMessagePart(context, e2); message.add(part); } else { //Ignore any extensibility elements, WS-I BP 1.1 Profiled WSDL 1.1 schema allows extension elements here. /*Util.fail( "parsing.invalidElement", e2.getTagName(), e2.getNamespaceURI()); */ } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_MESSAGE, message); return message; }
Example 6
Source File: WSDLParser.java From hottub with GNU General Public License v2.0 | 4 votes |
private Message parseMessage( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Message message = new Message(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); message.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { Util.fail( "parsing.onlyOneDocumentationAllowed", e.getLocalName()); } gotDocumentation = true; message.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PART)) { MessagePart part = parseMessagePart(context, e2); message.add(part); } else { //Ignore any extensibility elements, WS-I BP 1.1 Profiled WSDL 1.1 schema allows extension elements here. /*Util.fail( "parsing.invalidElement", e2.getTagName(), e2.getNamespaceURI()); */ } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_MESSAGE, message); return message; }
Example 7
Source File: WSDLParser.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private Message parseMessage( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Message message = new Message(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); message.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { Util.fail( "parsing.onlyOneDocumentationAllowed", e.getLocalName()); } gotDocumentation = true; message.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PART)) { MessagePart part = parseMessagePart(context, e2); message.add(part); } else { //Ignore any extensibility elements, WS-I BP 1.1 Profiled WSDL 1.1 schema allows extension elements here. /*Util.fail( "parsing.invalidElement", e2.getTagName(), e2.getNamespaceURI()); */ } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_MESSAGE, message); return message; }
Example 8
Source File: WSDLParser.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private Message parseMessage( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Message message = new Message(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); message.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { Util.fail( "parsing.onlyOneDocumentationAllowed", e.getLocalName()); } gotDocumentation = true; message.setDocumentation(getDocumentationFor(e2)); } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PART)) { MessagePart part = parseMessagePart(context, e2); message.add(part); } else { //Ignore any extensibility elements, WS-I BP 1.1 Profiled WSDL 1.1 schema allows extension elements here. /*Util.fail( "parsing.invalidElement", e2.getTagName(), e2.getNamespaceURI()); */ } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_MESSAGE, message); return message; }