EndpointReferenceType sensorEpr = endpointReferences[i];
SensorSoapHttpBindingStub sensor = getSensorService( sensorEpr );
// build the request to subscribe to the sensor services' change notifications
Subscribe subscribeRequest = buildSubscribe( sensorEpr );
SubscribeResponse subscribeResponse = sensor.subscribe( subscribeRequest );
// the subscription request succeeded - remember the EPR to the new subscription in case we need to unsubscribe
m_subscriptions.add( subscribeResponse.getSubscriptionReference( ) );
}