I think that sounds like a good proposal Raymond. I tried fixing the reference side but didn't meet immediate success because something else has gone wring somewhere.
Originally when we instigated Endpoints the service they pointed to was the leaf most service in the promoted case. This was because the leaf most service is where messages must be delivered to ultimately. This was change though because doing this messes up the endpoints concept of its position in the model and it starts getting URIs wrong. A change was made in the wire creation code to take account of the fact that endpoints not pointed to the promoted service and not the leaf most service. I can't though find that code in the new scheme of things. I can't actually find it in the old scheme of things either but am still looking. The net result is that currently the reference is getting the wrong binding interface contraction in the local optimization case and hence the otest failures. Regards Simon
