Java Code Examples for com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding#addParameter()
The following examples show how to use
com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding#addParameter() .
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: JAXWSBindingExtensionHandler.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); Node msgElm = msgPartElm.getParentNode(); //MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name"); if ((partName == null) || (msgName == null)) { return; } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name)); }
Example 2
Source File: JAXWSBindingExtensionHandler.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); Node msgElm = msgPartElm.getParentNode(); //MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name"); if ((partName == null) || (msgName == null)) { return; } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name)); }
Example 3
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); Node msgElm = msgPartElm.getParentNode(); //MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name"); if ((partName == null) || (msgName == null)) { return; } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name)); }
Example 4
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); Node msgElm = msgPartElm.getParentNode(); //MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name"); if ((partName == null) || (msgName == null)) { return; } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name)); }
Example 5
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); Node msgElm = msgPartElm.getParentNode(); //MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name"); if ((partName == null) || (msgName == null)) { return; } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name)); }
Example 6
Source File: JAXWSBindingExtensionHandler.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); Node msgElm = msgPartElm.getParentNode(); //MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name"); if ((partName == null) || (msgName == null)) { return; } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name)); }
Example 7
Source File: JAXWSBindingExtensionHandler.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); Node msgElm = msgPartElm.getParentNode(); //MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name"); if ((partName == null) || (msgName == null)) { return; } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name)); }
Example 8
Source File: JAXWSBindingExtensionHandler.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseParameter(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String part = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.PART_ATTR); Element msgPartElm = evaluateXPathNode(e.getOwnerDocument(), part, new NamespaceContextImpl(e)); Node msgElm = msgPartElm.getParentNode(); //MessagePart msgPart = new MessagePart(); String partName = XmlUtil.getAttributeOrNull(msgPartElm, "name"); String msgName = XmlUtil.getAttributeOrNull((Element)msgElm, "name"); if ((partName == null) || (msgName == null)) { return; } String element = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.ELEMENT_ATTR); String name = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); QName elementName = null; if(element != null){ String uri = e.lookupNamespaceURI(XmlUtil.getPrefix(element)); elementName = (uri == null)?null:new QName(uri, XmlUtil.getLocalPart(element)); } jaxwsBinding.addParameter(new Parameter(msgName, partName, elementName, name)); }