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; } }
public ExtensibilityElement createExtension(final Map<String, Object> args) throws WSDLException { String address = getOption(args, ToolConstants.CFG_ADDRESS); ExtensibilityElement addr = registry.createExtension(Port.class, WSDLConstants.QNAME_XMLHTTP_BINDING_ADDRESS); if (addr instanceof AddressType) { ((AddressType)addr).setLocation(address); } if (addr instanceof HTTPAddress) { ((HTTPAddress)addr).setLocationURI(address); } return addr; } }
address.setLocationURI(serviceEndpointURL);
public ExtensibilityElement createExtension(final Map<String, Object> args) throws WSDLException { String address = getOption(args, ToolConstants.CFG_ADDRESS); ExtensibilityElement addr = registry.createExtension(Port.class, WSDLConstants.QNAME_XMLHTTP_BINDING_ADDRESS); if (addr instanceof AddressType) { ((AddressType)addr).setLocation(address); } if (addr instanceof HTTPAddress) { ((HTTPAddress)addr).setLocationURI(address); } return addr; } }
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; } }
if (endpoint != null) { ((HTTPAddress) extensibilityEle) .setLocationURI(endpoint .calculateEndpointURL()); } else { ((HTTPAddress) extensibilityEle) .setLocationURI(getLocationURI( getEPRs(), exsistingAddress)); if (endpoint != null) { ((HTTPAddress) extensibilityEle) .setLocationURI(endpoint .calculateEndpointURL(requestIP)); } else { ((HTTPAddress) extensibilityEle) .setLocationURI(getLocationURI( calculateEPRs(requestIP), exsistingAddress));
if (endpoint != null) { ((HTTPAddress) extensibilityEle) .setLocationURI(endpoint .calculateEndpointURL()); } else { ((HTTPAddress) extensibilityEle) .setLocationURI(getLocationURI( getEPRs(), exsistingAddress)); if (endpoint != null) { ((HTTPAddress) extensibilityEle) .setLocationURI(endpoint .calculateEndpointURL(requestIP)); } else { ((HTTPAddress) extensibilityEle) .setLocationURI(getLocationURI( calculateEPRs(requestIP), exsistingAddress));
port.setBinding(bnd); HTTPAddress address = new HTTPAddressImpl(); address.setLocationURI(location); port.addExtensibilityElement(address); def.addNamespace("http", "http://schemas.xmlsoap.org/wsdl/http/");