/** * Obtain a multiplexed endpoint reference for the deployed service that contains the provided id * @param serviceQName identified the target service * @param portName identifies a particular port of the service, may be null * @param id that must be embedded in the returned reference * @param bus the current bus * @return a new reference or null if the target destination does not support destination mutiplexing */ public static EndpointReferenceType getEndpointReferenceWithId(QName serviceQName, String portName, String id, Bus bus) { EndpointReferenceType epr = null; MultiplexDestination destination = getMatchingMultiplexDestination(serviceQName, portName, bus); if (null != destination) { epr = destination.getAddressWithId(id); } return epr; }
/** * Obtain a multiplexed endpoint reference for the deployed service that contains the provided id * @param serviceQName identified the target service * @param portName identifies a particular port of the service, may be null * @param id that must be embedded in the returned reference * @param bus the current bus * @return a new reference or null if the target destination does not support destination mutiplexing */ public static EndpointReferenceType getEndpointReferenceWithId(QName serviceQName, String portName, String id, Bus bus) { EndpointReferenceType epr = null; MultiplexDestination destination = getMatchingMultiplexDestination(serviceQName, portName, bus); if (null != destination) { epr = destination.getAddressWithId(id); } return epr; }