/** * Return the first child element of the given element which has the * given attribute with the given value. * * @param elem the element whose children are to be searched * @param attrName the attrib that must be present * @param attrValue the desired value of the attribute * * @return the first matching child element. */ public static Element findChildElementWithAttribute (Element elem, String attrName, String attrValue) { for (Node n = elem.getFirstChild (); n != null; n = n.getNextSibling ()) { if (n.getNodeType () == Node.ELEMENT_NODE) { if (attrValue.equals (DOMUtils.getAttribute ((Element) n, attrName))) { return (Element) n; } } } return null; }
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { HTTPAddress httpAddress = (HTTPAddress)extReg.createExtension(parentType, elementType); String locationURI = DOMUtils.getAttribute(el, Constants.ATTR_LOCATION); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL, Constants.ATTR_REQUIRED); if (locationURI != null) { httpAddress.setLocationURI(locationURI); } if (requiredStr != null) { httpAddress.setRequired(new Boolean(requiredStr)); } return httpAddress; } }
String name = DOMUtils.getAttribute(bindingOutputEl, Constants.ATTR_NAME, remainingAttrs);
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { SOAP12Address soapAddress = (SOAP12Address)extReg.createExtension(parentType, elementType); String locationURI = DOMUtils.getAttribute(el, Constants.ATTR_LOCATION); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL, Constants.ATTR_REQUIRED); if (locationURI != null) { soapAddress.setLocationURI(locationURI); } if (requiredStr != null) { soapAddress.setRequired(new Boolean(requiredStr)); } return soapAddress; } }
String name = DOMUtils.getAttribute(bindingInputEl, Constants.ATTR_NAME, remainingAttrs);
String attrValue = DOMUtils.getAttribute(el, attrName);
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { HTTPOperation httpOperation = (HTTPOperation)extReg.createExtension(parentType, elementType); String locationURI = DOMUtils.getAttribute(el, Constants.ATTR_LOCATION); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL, Constants.ATTR_REQUIRED); if (locationURI != null) { httpOperation.setLocationURI(locationURI); } if (requiredStr != null) { httpOperation.setRequired(new Boolean(requiredStr)); } return httpOperation; } }
String name = DOMUtils.getAttribute(bindingFaultEl, Constants.ATTR_NAME, remainingAttrs);
throws WSDLException String attrValue = DOMUtils.getAttribute(el, attrName);
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { SOAPAddress soapAddress = (SOAPAddress)extReg.createExtension(parentType, elementType); String locationURI = DOMUtils.getAttribute(el, Constants.ATTR_LOCATION); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL, Constants.ATTR_REQUIRED); if (locationURI != null) { soapAddress.setLocationURI(locationURI); } if (requiredStr != null) { soapAddress.setRequired(new Boolean(requiredStr)); } return soapAddress; } }
String name = DOMUtils.getAttribute(serviceEl, Constants.ATTR_NAME, remainingAttrs);
attrValue = DOMUtils.getAttribute(el, attrName, remainingAttrs);
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { MIMEMimeXml mimeMimeXml = (MIMEMimeXml)extReg.createExtension(parentType, elementType); String part = DOMUtils.getAttribute(el, MIMEConstants.ATTR_PART); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL, Constants.ATTR_REQUIRED); if (part != null) { mimeMimeXml.setPart(part); } if (requiredStr != null) { mimeMimeXml.setRequired(new Boolean(requiredStr)); } return mimeMimeXml; } }
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { HTTPBinding httpBinding = (HTTPBinding)extReg.createExtension(parentType, elementType); String verb = DOMUtils.getAttribute(el, HTTPConstants.ATTR_VERB); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL, Constants.ATTR_REQUIRED); if (verb != null) { httpBinding.setVerb(verb); } if (requiredStr != null) { httpBinding.setRequired(new Boolean(requiredStr)); } return httpBinding; } }
String part = DOMUtils.getAttribute(el, MIMEConstants.ATTR_PART); String type = DOMUtils.getAttribute(el, Constants.ATTR_TYPE); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL,
String soapActionURI = DOMUtils.getAttribute(el, SOAPConstants.ATTR_SOAP_ACTION); String style = DOMUtils.getAttribute(el, SOAPConstants.ATTR_STYLE); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL,
String soapActionURI = DOMUtils.getAttribute(el, SOAP12Constants.ATTR_SOAP_ACTION); String soapActionRequiredString = DOMUtils.getAttribute(el, SOAP12Constants.ATTR_SOAP_ACTION_REQUIRED); String style = DOMUtils.getAttribute(el, SOAP12Constants.ATTR_STYLE); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL,
String transportURI = DOMUtils.getAttribute(el, SOAP12Constants.ATTR_TRANSPORT); String style = DOMUtils.getAttribute(el, SOAP12Constants.ATTR_STYLE); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL,
String transportURI = DOMUtils.getAttribute(el, SOAPConstants.ATTR_TRANSPORT); String style = DOMUtils.getAttribute(el, SOAPConstants.ATTR_STYLE); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL,
String partsStr = DOMUtils.getAttribute(el, SOAP12Constants.ATTR_PARTS); String use = DOMUtils.getAttribute(el, SOAP12Constants.ATTR_USE); String encStyleStr = DOMUtils.getAttribute(el, SOAP12Constants.ATTR_ENCODING_STYLE); String namespaceURI = DOMUtils.getAttribute(el, Constants.ATTR_NAMESPACE); String requiredStr = DOMUtils.getAttributeNS(el, Constants.NS_URI_WSDL,