AddressingProperties reqProps = AddressingClientUtil.createDefaultProps(EventingConstants.SUBSCRIBE_ACTION, eventSourceURI);
reqProps.setMessageID(AddressingClientUtil.createMessageID());
SysmonUtil.setRequestProperties((BindingProvider)subscriptionPort, reqProps);
// build subscription payload
Subscribe request = new Subscribe();
// default delivery type with notification EPR
DeliveryType delivery = SysmonUtil.getDefaultDelivery();
request.setDelivery(delivery);
// receive endTo messages at the same port
request.setEndTo(delivery.getNotifyTo());
if (filterString != null)
{
// custom filter that applies to a certain hostname only
FilterType filter = SysmonUtil.wrapFilterString(filterString);