// If no binding has been specified this assertion does not apply.
if(binding == null)
return true;
Interface bindingInterface = binding.getInterface();
WSDLComponent parent = endpoint.getParent();
if(parent != null)
{
Service service = (Service)parent;
Interface serviceInterface = service.getInterface();