protected synchronized boolean hasDecoupledEndpoint() {
return decoupledEndpoint != null;
}
protected static Configuration getPortConfiguration(Bus bus, EndpointReferenceType ref) {
Configuration busConfiguration = bus.getConfiguration();
String id = EndpointReferenceUtils.getServiceName(ref).toString()
+ "/" + EndpointReferenceUtils.getPortName(ref);
Configuration portConfiguration = busConfiguration
.getChild(PORT_CONFIGURATION_URI,
id);
if (portConfiguration == null) {
ConfigurationBuilder cb = ConfigurationBuilderFactory.getBuilder(null);
portConfiguration = cb.getConfiguration(PORT_CONFIGURATION_URI, id,
bus.getConfiguration());
if (null == portConfiguration) {
portConfiguration = cb.buildConfiguration(PORT_CONFIGURATION_URI, id,
bus.getConfiguration());
}
// add the additional provider
Port port = null;
try {
port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), ref);
} catch (WSDLException ex) {
throw new WebServiceException("Could not get port from wsdl", ex);
}
portConfiguration.getProviders().add(new WsdlPortProvider(port));
}
return portConfiguration;
}