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; } }
/** * Called after the {@link SOAP12Address} has been created. Default implementation sets the location URI to the * value set on this builder. Subclasses can override this behavior. * * @param soapAddress the WSDL4J {@code SOAPAddress} * @throws WSDLException in case of errors * @see SOAP12Address#setLocationURI(String) * @see #setLocationUri(String) */ protected void populateSoapAddress(SOAP12Address soapAddress) throws WSDLException { soapAddress.setLocationURI(getLocationUri()); }
/** * Called after the {@link SOAP12Address} has been created. Default implementation sets the location URI to the * value set on this builder. Subclasses can override this behavior. * * @param soapAddress the WSDL4J {@code SOAPAddress} * @throws WSDLException in case of errors * @see SOAP12Address#setLocationURI(String) * @see #setLocationUri(String) */ protected void populateSoapAddress(SOAP12Address soapAddress) throws WSDLException { soapAddress.setLocationURI(getLocationUri()); }
/** * Called after the {@link SOAP12Address} has been created. Default implementation sets the location URI to the * value set on this builder. Subclasses can override this behavior. * * @param soapAddress the WSDL4J {@code SOAPAddress} * @throws WSDLException in case of errors * @see SOAP12Address#setLocationURI(String) * @see #setLocationUri(String) */ protected void populateSoapAddress(SOAP12Address soapAddress) throws WSDLException { soapAddress.setLocationURI(getLocationUri()); }
/** * Called after the {@link SOAP12Address} has been created. Default implementation sets the location URI to the * value set on this builder. Subclasses can override this behavior. * * @param soapAddress the WSDL4J <code>SOAPAddress</code> * @throws WSDLException in case of errors * @see SOAP12Address#setLocationURI(String) * @see #setLocationUri(String) */ protected void populateSoapAddress(SOAP12Address soapAddress) throws WSDLException { soapAddress.setLocationURI(getLocationUri()); }
public static void setPortAddress(Port port, String locationURI) { Object ext = port.getExtensibilityElements().get(0); if (ext instanceof SOAPAddress) { ((SOAPAddress)ext).setLocationURI(locationURI); } if (ext instanceof SOAP12Address) { ((SOAP12Address)ext).setLocationURI(locationURI); } }
protected void setSoapAddressLocationOn(Port port, String url) { List<?> extensions = port.getExtensibilityElements(); for (Object extension : extensions) { if (extension instanceof SOAP12Address) { ((SOAP12Address)extension).setLocationURI(url); } else if (extension instanceof SOAPAddress) { ((SOAPAddress)extension).setLocationURI(url); } } }
protected void setSoapAddressLocationOn(Port port, String url) { List<?> extensions = port.getExtensibilityElements(); for (Object extension : extensions) { if (extension instanceof SOAP12Address) { ((SOAP12Address)extension).setLocationURI(url); } else if (extension instanceof SOAPAddress) { ((SOAPAddress)extension).setLocationURI(url); } } }
private void setSoapAddressLocationOn(Port port, String url) { List<?> extensions = port.getExtensibilityElements(); for (Object extension : extensions) { if (extension instanceof SOAP12Address) { ((SOAP12Address)extension).setLocationURI(url); } else if (extension instanceof SOAPAddress) { ((SOAPAddress)extension).setLocationURI(url); } } }
address.setLocationURI(serviceEndpointURL);
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; } }
if (endpoint != null) { ((SOAP12Address) extensibilityEle) .setLocationURI(endpoint .calculateEndpointURL()); .setLocationURI(getLocationURI( getEPRs(), exsistingAddress)); if (endpoint != null) { ((SOAP12Address) extensibilityEle) .setLocationURI(endpoint .calculateEndpointURL(requestIP)); } else { ((SOAP12Address) extensibilityEle) .setLocationURI(getLocationURI( calculateEPRs(requestIP), exsistingAddress));
if (endpoint != null) { ((SOAP12Address) extensibilityEle) .setLocationURI(endpoint .calculateEndpointURL()); .setLocationURI(getLocationURI( getEPRs(), exsistingAddress)); if (endpoint != null) { ((SOAP12Address) extensibilityEle) .setLocationURI(endpoint .calculateEndpointURL(requestIP)); } else { ((SOAP12Address) extensibilityEle) .setLocationURI(getLocationURI( calculateEPRs(requestIP), exsistingAddress));
public Port createPort(Definition definition, Binding binding, Service service, String uri) { try { Port port = definition.createPort(); port.setBinding(binding); configurePort(port, binding); if (uri != null) { ExtensibilityElement portExtension = definition.getExtensionRegistry().createExtension(Port.class, soapAddress); if (requiresSOAP12) { ((SOAP12Address)portExtension).setLocationURI(uri); } else { ((SOAPAddress)portExtension).setLocationURI(uri); } port.addExtensibilityElement(portExtension); } service.addPort(port); return port; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
public Port createPort(Definition definition, Binding binding, Service service, String uri) { try { Port port = definition.createPort(); port.setBinding(binding); configurePort(port, binding); if (uri != null) { ExtensibilityElement portExtension = definition.getExtensionRegistry().createExtension(Port.class, soapAddress); if (requiresSOAP12) { ((SOAP12Address)portExtension).setLocationURI(uri); } else { ((SOAPAddress)portExtension).setLocationURI(uri); } port.addExtensibilityElement(portExtension); } service.addPort(port); return port; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
SOAP12Address soap12Address = WSDLUtils.getExtension(port, SOAP12Address.class); if (soap12Address != null) { soap12Address.setLocationURI(getLocationURI());
SOAP12Address soap12Address = WSDLUtils.getExtension(port, SOAP12Address.class); if (soap12Address != null) { soap12Address.setLocationURI(getLocationURI());
} else { SOAP12Address address = new SOAP12AddressImpl(); address.setLocationURI(locationUri); port.addExtensibilityElement(address);
((SOAP12Address)newExt).setLocationURI(uri); newPort.addExtensibilityElement(newExt); } else {
((SOAP12Address)newExt).setLocationURI(uri); newPort.addExtensibilityElement(newExt); } else {